You are not logged in.

#1 2007-09-27 02:12:12

hdoria
Forum Fellow
From: Brazil
Registered: 2007-06-28
Posts: 52
Website

Help with PKGBUILD and gconf schemas

Im trying to make a PKGBUILD for guake,. The package is created correctly but everytime i run "guake" i get a erro saying: gconf error: Have you installed guake.schemas properly?

Heres my PKBGUILD:

pkgname=guake-svn
pkgver=90
pkgrel=1
pkgdesc="drop-down terminal for the GNOME desktop"
url="http://guake-gnome-vte.sourceforge.net/"
depends=('gnome-desktop' 'gnome-common' 'intltool' 'autoconf' 'python>=2.5' 'gconf' 'libxinerama')
makedepends=('subversion')
source=()
md5sums=()
arch=('i686' 'x86_64')
license=('GPL')
conflicts=('guake')
provides=('guake')
#install=guake.install

_svntrunk=https://guake-gnome-vte.svn.sourceforge.net/svnroot/guake-gnome-vte/trunk/
_svnmod=guake-gnome-vte

build() {

        cd $startdir/src

        mkdir -p ~/.subversion; touch ~/.subversion/servers
        msg "Connecting to the SVN server...."
        svn co $_svntrunk $_svnmod -r $pkgver

        [ -d ./$_svnmod-build ] && rm -fr ./$_svnmod-build
        cp -r ./$_svnmod ./$_svnmod-build
        cd ./$_svnmod-build/

        msg "SVN checkout done or server timeout"
        msg "Starting make..."

        ./autogen.sh --prefix=/usr
        make || return 1
        make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install

        mkdir -p ${startdir}/pkg/usr/share/gconf/schemas
        gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/guake.schemas ${startdir}/pkg/etc/gconf/schemas/*.schemas
        rm -f ${startdir}/pkg/etc/gconf/schemas/*.schemas
}

Whats wrong?

Offline

#2 2007-09-27 03:47:16

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Help with PKGBUILD and gconf schemas

You need to use gconfpkg to install the schemas.  To do this, you need a .install file.  Here's a PKGBUILD and guake.install that seem to work for me.

PKGBUILD (slight difference from yours - note the install= line and --sysconfdir=/etc as a configure argument)

pkgname=guake-svn
pkgver=90
pkgrel=1
pkgdesc="drop-down terminal for the GNOME desktop"
url="http://guake-gnome-vte.sourceforge.net/"
depends=('gnome-desktop' 'gnome-common' 'intltool' 'autoconf' 'python>=2.5' 'gconf' 'libxinerama')
makedepends=('subversion')
source=()
md5sums=()
arch=('i686' 'x86_64')
license=('GPL')
conflicts=('guake')
provides=('guake')
install=guake.install

_svntrunk=https://guake-gnome-vte.svn.sourceforge.net/svnroot/guake-gnome-vte/trunk/
_svnmod=guake-gnome-vte

build() {

        cd $startdir/src

        mkdir -p ~/.subversion; touch ~/.subversion/servers
        msg "Connecting to the SVN server...."
        svn co $_svntrunk $_svnmod -r $pkgver

        [ -d ./$_svnmod-build ] && rm -fr ./$_svnmod-build
        cp -r ./$_svnmod ./$_svnmod-build
        cd ./$_svnmod-build/

        msg "SVN checkout done or server timeout"
        msg "Starting make..."

        ./autogen.sh --prefix=/usr --sysconfdir=/etc
        make || return 1
        make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install

        mkdir -p ${startdir}/pkg/usr/share/gconf/schemas
        gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/guake.schemas ${startdir}/pkg/etc/gconf/schemas/*.schemas
        rm -rf ${startdir}/pkg/etc/gconf
}

guake.install

# arg 1:  the new package version
post_install() {
  gconfpkg --install guake
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  gconfpkg --install guake
}

# arg 1:  the old package version
pre_remove() {
  gconfpkg --uninstall guake
}

op=$1
shift
$op $

Offline

#3 2007-09-27 03:48:21

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Help with PKGBUILD and gconf schemas

I'd say, have a look at Gnome-related PKGBUILDs and especially their .install files.

edit: yeah, right. guess who's late ;]

Last edited by byte (2007-09-27 03:49:09)


1000

Offline

#4 2007-09-27 03:59:26

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Help with PKGBUILD and gconf schemas

byte wrote:

edit: yeah, right. guess who's late ;]

lol. sorry byte.  I didn't know the answer myself, so I started by looking inside the gconf package with pacman -Ql gconf | grep bin and playing with the bins.  Lots of times when I see users with problems I use it as an opportunity to learn something, and then I get carried away and write .install files for people when they could look it up themselves.  XD

Offline

#5 2007-09-27 12:26:51

hdoria
Forum Fellow
From: Brazil
Registered: 2007-06-28
Posts: 52
Website

Re: Help with PKGBUILD and gconf schemas

Hi,

Thank you for the reply. Guake is running now, but i still have a problem and some questions:

I can run guake now, but when i press F12 key the guake terminal dont shows up. Do you got this problem too?

Why did you used the --sysconfig option and how you figured that you had to use it?

Offline

#6 2007-09-27 12:59:08

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Help with PKGBUILD and gconf schemas

I used --sysconfig because the schema was appearing in $startdir/pkg/usr/etc/gconf/schemas instead of $startdir/pkg/etc/gconf/schemas.  I knew to use it due to experience - I've seen this enough times to know what ./configure wanted. wink  I added the flag, tested, and it worked, so yay! smile

In my short test of guake I also found that F12 didn't pop up the console.  I didn't look into it though, so I don't have any suggestions.

Offline

#7 2007-10-04 17:00:18

hdoria
Forum Fellow
From: Brazil
Registered: 2007-06-28
Posts: 52
Website

Re: Help with PKGBUILD and gconf schemas

Offline

Board footer

Powered by FluxBB