Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#679 - package errors in gtodo-0.14 package
Attached to Project:
Arch Linux
Opened by Qball Cow (qball) - Saturday, 03 April 2004, 11:50 GMT
Last edited by Damir Perisa (damir.perisa) - Tuesday, 13 April 2004, 17:02 GMT
Opened by Qball Cow (qball) - Saturday, 03 April 2004, 11:50 GMT
Last edited by Damir Perisa (damir.perisa) - Tuesday, 13 April 2004, 17:02 GMT
|
DetailsIt doesn't depend on gnome-vfs. but gtodo 0.14 does.
It doesn't install the schemas files correctly. |
This task depends upon
It's just a standard schemas .install.
-Ben
i'm sorry not to have taken the pkg 1:1 from staging - the thing is that i had it locally too, and had thinked that it's the same as yours --- unfortunately it wasn't - my mistake
i changed the PKGBUILD to this:
# $Id: PKGBUILD,v 1.2 2004/03/18 00:21:29 damir Exp $
# Maintainer: Damir Perisa <damir.perisa@bluewin.ch>
# Contributor: Ben <ben@benmazer.net>
pkgname=gtodo
pkgver=0.14
pkgrel=2
pkgdesc="A gtk2 todo list manager"
url="http://gtodo.qballcow.nl"
depends=('gtk2' 'gconf' 'libxml2' 'gnome-vfs')
source=(http://twtelecom.dl.sourceforge.net/sourceforge/gtodo/gtodo-$pkgver.tar.gz)
schemas=(
'opt/gnome/etc/gconf/schemas/gtodo.schemas'
)
post_install() {
for schema in "${schemas[@]}" ; do
GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
done
}
build() {
[ "$GNOMEDIR" = "" ] && source /etc/profile.d/gnome.sh
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt/gnome
make || return 1
make prefix=$startdir/pkg/opt/gnome install
}
md5sums=('51f5d71c51374931a24cce1839402457')
but unfortunately since gnome was updated, i cannnot build the last part right:
GCONF_CONFIG_SOURCE=xml::/opt/gnome/etc/gconf/gconf.xml.defaults /opt/gnome/bin/gconftool-2 --makefile-install-rule ./gtodo.schemas
Attached schema `/schemas/apps/gtodo/view/show-category-column' to key `/apps/gtodo/view/show-category-column'
Installed schema `/schemas/apps/gtodo/view/show-category-column' for locale `C'
Attached schema `/schemas/apps/gtodo/view/last-category' to key `/apps/gtodo/view/last-category'
Installed schema `/schemas/apps/gtodo/view/last-category' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/do_notification' to key `/apps/gtodo/prefs/do_notification'
Installed schema `/schemas/apps/gtodo/prefs/do_notification' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/notify_in_minutes' to key `/apps/gtodo/prefs/notify_in_minutes'
Installed schema `/schemas/apps/gtodo/prefs/notify_in_minutes' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/restore-size' to key `/apps/gtodo/prefs/restore-size'
Installed schema `/schemas/apps/gtodo/prefs/restore-size' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/restore-position' to key `/apps/gtodo/prefs/restore-position'
Installed schema `/schemas/apps/gtodo/prefs/restore-position' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/show-tooltip' to key `/apps/gtodo/prefs/show-tooltip'
Installed schema `/schemas/apps/gtodo/prefs/show-tooltip' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/ask-delete-category' to key `/apps/gtodo/prefs/ask-delete-category'
Installed schema `/schemas/apps/gtodo/prefs/ask-delete-category' for locale `de'
Installed schema `/schemas/apps/gtodo/prefs/ask-delete-category' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/show-due-column' to key `/apps/gtodo/prefs/show-due-column'
Installed schema `/schemas/apps/gtodo/prefs/show-due-column' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/auto-purge' to key `/apps/gtodo/prefs/auto-purge'
Installed schema `/schemas/apps/gtodo/prefs/auto-purge' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/auto-purge-days' to key `/apps/gtodo/prefs/auto-purge-days'
Installed schema `/schemas/apps/gtodo/prefs/auto-purge-days' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/due-days' to key `/apps/gtodo/prefs/due-days'
Installed schema `/schemas/apps/gtodo/prefs/due-days' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/due-in-days-color' to key `/apps/gtodo/prefs/due-in-days-color'
Installed schema `/schemas/apps/gtodo/prefs/due-in-days-color' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/due-today-color' to key `/apps/gtodo/prefs/due-today-color'
Installed schema `/schemas/apps/gtodo/prefs/due-today-color' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/due-color' to key `/apps/gtodo/prefs/due-color'
Installed schema `/schemas/apps/gtodo/prefs/due-color' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/size-x' to key `/apps/gtodo/prefs/size-x'
Installed schema `/schemas/apps/gtodo/prefs/size-x' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/size-y' to key `/apps/gtodo/prefs/size-y'
Installed schema `/schemas/apps/gtodo/prefs/size-y' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/pos-x' to key `/apps/gtodo/prefs/pos-x'
Installed schema `/schemas/apps/gtodo/prefs/pos-x' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/pos-y' to key `/apps/gtodo/prefs/pos-y'
Installed schema `/schemas/apps/gtodo/prefs/pos-y' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/hide-due' to key `/apps/gtodo/prefs/hide-due'
Installed schema `/schemas/apps/gtodo/prefs/hide-due' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/hide-nodate' to key `/apps/gtodo/prefs/hide-nodate'
Installed schema `/schemas/apps/gtodo/prefs/hide-nodate' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/sort-type' to key `/apps/gtodo/prefs/sort-type'
Installed schema `/schemas/apps/gtodo/prefs/sort-type' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/sort-order' to key `/apps/gtodo/prefs/sort-order'
Installed schema `/schemas/apps/gtodo/prefs/sort-order' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/hide-done' to key `/apps/gtodo/prefs/hide-done'
Installed schema `/schemas/apps/gtodo/prefs/hide-done' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/hl-due' to key `/apps/gtodo/prefs/hl-due'
Installed schema `/schemas/apps/gtodo/prefs/hl-due' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/hl-today' to key `/apps/gtodo/prefs/hl-today'
Installed schema `/schemas/apps/gtodo/prefs/hl-today' for locale `C'
Attached schema `/schemas/apps/gtodo/prefs/hl-indays' to key `/apps/gtodo/prefs/hl-indays'
Installed schema `/schemas/apps/gtodo/prefs/hl-indays' for locale `C'
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo": Permission denied
Failed to write "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/%gconf.xml": Failed to open "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/%gconf.xml.new": No such file or directory
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo": Permission denied
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/prefs": No such file or directory
Failed to write "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/prefs/%gconf.xml": Failed to open "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/prefs/%gconf.xml.new": No such file or directory
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo": Permission denied
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/view": No such file or directory
Failed to write "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/view/%gconf.xml": Failed to open "/opt/gnome/etc/gconf/gconf.xml.defaults/schemas/apps/gtodo/view/%gconf.xml.new": No such file or directory
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo": Permission denied
Failed to write "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/%gconf.xml": Failed to open "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/%gconf.xml.new": No such file or directory
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo": Permission denied
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/prefs": No such file or directory
Failed to write "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/prefs/%gconf.xml": Failed to open "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/prefs/%gconf.xml.new": No such file or directory
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo": Permission denied
Could not make directory "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/view": No such file or directory
Failed to write "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/view/%gconf.xml": Failed to open "/opt/gnome/etc/gconf/gconf.xml.defaults/apps/gtodo/view/%gconf.xml.new": No such file or directory
Error syncing config data: Failed to write some configuration data to disk
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/home/damir/cvsARCH/extra/office/gtodo/src/gtodo-0.14'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/damir/cvsARCH/extra/office/gtodo/src/gtodo-0.14'
make: *** [install-recursive] Error 1
==> ERROR: Build Failed. Aborting...
i'm going to work on this next week ... but if you know directly what's wrong, i would be very thankfull for any hint
thanx in advance
Damir
# Maintainer: damir <damir@archlinux.org>
# Contributor: Ben <ben@benmazer.net>
pkgname=gtodo
pkgver=0.14
pkgrel=2
pkgdesc="A gtk2 todo list manager"
url="http://gtodo.qballcow.nl"
depends=('gtk2' 'gconf' 'libxml2')
makedepends=('intltool>=0.21')
source=(http://dl.sourceforge.net/sourceforge/gtodo/gtodo-$pkgver.tar.gz)
build() {
[ "$GNOMEDIR" = "" ] && source /etc/profile.d/gnome.sh
cd $startdir/src/$pkgname-$pkgver
./configure \
--disable-schemas-install \
--prefix=/opt/gnome
make || return 1
make DESTDIR=$startdir/pkg install
}
md5sums=('51f5d71c51374931a24cce1839402457')
export GCONF_DISABLE_SCHEMA_INSTALL=1
For the postinstall script, you could borrow something from this:
http://schoolbak.dyndns.org/~jan/archlinux/gconf.functions
If the package comes with OMF files, please fix the source using something like the scrollkeeper_fixsource function in this file:
http://schoolbak.dyndns.org/~jan/archlinux/scrollkeeper/scrollkeeper.functions
This causes the package not to rebuild your scrollkeeper db. You have to run it before the ./configure line since this patches Makefile.in files.
./configure --enable-schema-install=yes works to get the schemas not installed :X
The code that creates this mess is this piece in configure:
if test x$schemas_install = xtrue; then
GCONF_SCHEMAS_INSTALL_TRUE=
GCONF_SCHEMAS_INSTALL_FALSE='#'
else
GCONF_SCHEMAS_INSTALL_TRUE='#'
GCONF_SCHEMAS_INSTALL_FALSE=
fi
Either patch/sed the configure script or work with reversed logic when creating this package. Place a big warning around it, so when a next version is released you'll notice you have to check if it's still reverse logic.
patches are welcome.