[SOLVED] SFLphone packaging issue

General talk about packaging procedures and packages.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

[SOLVED] SFLphone packaging issue

Post by zAchAry »

I am trying to install SFLphone with the following SLKBUILD:

Code: Select all

pkgname=sflphone
pkgver=1.4.1
pkgrel=1salix
source=("https://projects.savoirfairelinux.com/attachments/download/14805/${pkgname}-${pkgver}.tar.gz")
url="http://sflphone.org/"


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"sflphone (SIP/IAX2 compatible softphone)"
"SFLphone is a robust, standards-compliant enterprise softphone, for"
"desktop and embedded systems. It is designed to handle several hundred"
"calls a day. SFLphone is available under the GNU GPLv3 license."
)


build() {
  cd $startdir/src/$pkgname-$pkgver

  # PJSIP
  cd $startdir/src/$pkgname-$pkgver/daemon/libs
  ./compile_pjsip.sh

  # daemon
  cd $startdir/src/$pkgname-$pkgver/daemon

  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --disable-ilbc \
    --without-zrtp
  make -j $numjobs || return 1
  make install DESTDIR=$startdir/pkg

  cd $startdir/src/$pkgname-$pkgver/gnome
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --with-video
  make -j $numjobs || return 1
  make install DESTDIR=$startdir/pkg
}
When I attempt to run it, I get this error:

Code: Select all

$ sflphone-client-gnome 

(sflphone-client-gnome:13319): GLib-GIO-ERROR **: Settings schema 'org.sflphone.SFLphone' is not installed

Trace/breakpoint trap
What should be added to the above SLKBUILD in order to install SFLphone properly?
Last edited by zAchAry on 10. Jan 2015, 23:18, edited 1 time in total.
Image
Help to make Slackware easier Donate to Salix
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: SFLphone packaging issue

Post by knome »

Looking here...

http://sflphone.org/download/stable-release

I'd deduce that sflphone-client-gnome is a separate package/build so try and find a SLKBUILD for that.
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: SFLphone packaging issue

Post by zAchAry »

No, all SFLphone flavors are in a one Tarball. I guess this has something to do with glib-compile-schemas command in doinst() but I am not familiar with it.
Image
Help to make Slackware easier Donate to Salix
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: SFLphone packaging issue

Post by knome »

zAchAry wrote:No, all SFLphone flavors are in a one Tarball. I guess this has something to do with glib-compile-schemas command in doinst() but I am not familiar with it.
Does this help?...

https://projects.savoirfairelinux.com/p ... w_to_build
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: SFLphone packaging issue

Post by zAchAry »

I did not create a file in /etc/dbus-1/session.d/, as instructed, so I do not know.

I would like a solution that would apply to SLKBUILD script itself.

Code: Select all

$ GSETTINGS_SCHEMA_DIR=/home/localhost/sflphone_install/share/glib-2.0/schemas /usr/bin/sflphone-client-gnome

(sflphone-client-gnome:17581): GLib-GIO-ERROR **: Settings schema 'org.sflphone.SFLphone' is not installed

Trace/breakpoint trap
Image
Help to make Slackware easier Donate to Salix
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: SFLphone packaging issue

Post by laprjns »

zAchAry wrote:I would like a solution that would apply to SLKBUILD script itself.
How about this:
https://aur.archlinux.org/packages/sflp ... mments=all
Scroll down to comment by alium and try putting the post install function in the doinst section of your skbuild.

BTW, this answer was in the second hit of a google search on "Settings schema 'org.sflphone.SFLphone' is not installed"
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: SFLphone packaging issue

Post by zAchAry »

Thank you for your help folks!
Here is a working SLKBUILD.

Code: Select all

pkgname=sflphone
pkgver=1.4.1
pkgrel=1salix
source=("https://projects.savoirfairelinux.com/attachments/download/14805/${pkgname}-${pkgver}.tar.gz")
url="http://www.sflphone.org/"


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"sflphone (SIP/IAX2 compatible softphone)"
"gslapt is a graphical package manager for slackware and slackware"
"based distributions that uses the slapt-get command line interface"
"package management tool."
""
"Homepage: http://software.jaos.org/"
""
"Please translate:"
"http://software.jaos.org/git/gslapt/tree/po"
)


build() {
  cd $startdir/src/$pkgname-$pkgver

  # PJSIP
  cd $startdir/src/$pkgname-$pkgver/daemon/libs
  ./compile_pjsip.sh

  # daemon
  cd $startdir/src/$pkgname-$pkgver/daemon

  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --disable-ilbc \
    --without-zrtp
  make -j $numjobs || return 1
  make install DESTDIR=$startdir/pkg

  # Gnome client
  cd $startdir/src/$pkgname-$pkgver/gnome
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --with-video
  make -j $numjobs || return 1
  make install DESTDIR=$startdir/pkg
}

#package() {
#  cd $startdir/src/$pkgname-$pkgver/daemon
#  make DESTDIR="${pkgdir}" install
#  mkdir pkg/usr/lib/sflphone/audio
#  mv pkg/usr/lib/sflphone/codecs/ pkg/usr/lib/sflphone/audio/
#
#  cd $startdir/src/$pkgname-$pkgver/gnome
#  make DESTDIR=pkg install
#}

doinst() {
	# update the mime desktop database
	if [ -x usr/bin/update-desktop-database ]; then
		usr/bin/update-desktop-database -q
	fi
	# update schemas
	if [ -x usr/bin/glib-compile-schemas ]; then
		usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
	fi
	# update icon cache
	if [ -x usr/bin/gtk-update-icon-cache ]; then
		usr/bin/gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
	fi
}

Image
Help to make Slackware easier Donate to Salix
Post Reply