From d10103611402fe742ed2ac84adb6c8499488e958 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 6 Nov 2011 22:10:00 -0600 Subject: [PATCH] system/dconf: Create the gio module cache during postinstall Thanks to disturbed1 on LQ for the tip. Signed-off-by: Robby Workman --- system/dconf/dconf.SlackBuild | 2 +- system/dconf/doinst.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/system/dconf/dconf.SlackBuild b/system/dconf/dconf.SlackBuild index 7bb27ad1c7..b54dcaa008 100644 --- a/system/dconf/dconf.SlackBuild +++ b/system/dconf/dconf.SlackBuild @@ -99,7 +99,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh +sed "s,@LIBDIR@,/usr/lib${LIBDIRSUFFIX}," $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/dconf/doinst.sh b/system/dconf/doinst.sh index 6b275a50c2..62e237fc36 100644 --- a/system/dconf/doinst.sh +++ b/system/dconf/doinst.sh @@ -3,3 +3,7 @@ if [ -x etc/rc.d/rc.messagebus ]; then chroot . /etc/rc.d/rc.messagebus reload fi +# Try to run these. If they fail, no biggie. +chroot . /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ 1> /dev/null 2> /dev/null +chroot . /usr/bin/gio-querymodules @LIBDIR@/gio/modules/ 1> /dev/null 2> /dev/null +