summaryrefslogtreecommitdiffstats
path: root/meta/classes/gconf.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-12-04 11:49:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-06 12:30:34 +0000
commit50b7f625cc2c4b9224726b11b6d4bd192209cc6e (patch)
tree41fadfa4ae5d53a7b1396444b871e0d6e24d257d /meta/classes/gconf.bbclass
parent5ba420bc0e282a1cbf000ce32034ad7ab15c01d5 (diff)
downloadopenembedded-core-contrib-50b7f625cc2c4b9224726b11b6d4bd192209cc6e.tar.gz
gconf.bbclass: run postinstalls at rootfs time
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/gconf.bbclass')
-rw-r--r--meta/classes/gconf.bbclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/gconf.bbclass b/meta/classes/gconf.bbclass
index 7a3ee3c28c..38097bc37a 100644
--- a/meta/classes/gconf.bbclass
+++ b/meta/classes/gconf.bbclass
@@ -15,13 +15,16 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL = "1"
gconf_postinst() {
if [ "x$D" != "x" ]; then
- exit 1
+ export GCONF_BACKEND_DIR=${STAGING_LIBDIR_NATIVE}/GConf/2
+ export GCONF_CONFIG_SOURCE="xml::$D${sysconfdir}/gconf/gconf.xml.defaults"
+else
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
fi
-SCHEMA_LOCATION=/etc/gconf/schemas
+
+SCHEMA_LOCATION=$D/etc/gconf/schemas
for SCHEMA in ${SCHEMA_FILES}; do
if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
- HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
- gconftool-2 \
+ HOME=$D/root gconftool-2 \
--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
fi
done