diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2011-11-06 22:10:00 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-11-06 22:10:00 -0600 |
commit | d10103611402fe742ed2ac84adb6c8499488e958 (patch) | |
tree | 701805edf933127a56400bb820b0a5bc90c31963 /system/dconf | |
parent | 9e3d4761a1a3b7fafb705b519cdd90fc7e45ade1 (diff) | |
download | slackbuilds-d10103611402fe742ed2ac84adb6c8499488e958.tar.gz |
system/dconf: Create the gio module cache during postinstall
Thanks to disturbed1 on LQ for the tip.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/dconf')
-rw-r--r-- | system/dconf/dconf.SlackBuild | 2 | ||||
-rw-r--r-- | system/dconf/doinst.sh | 4 |
2 files changed, 5 insertions, 1 deletions
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 + |