summaryrefslogtreecommitdiffstats
path: root/meta/classes/gconf.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-12-04 09:49:50 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-06 12:31:09 (GMT)
commitfb29d189a2beec5da8dba2761d0027df9260cf30 (patch)
treedd6f1b9a448014552ae19eb837e401b0a9bf536a /meta/classes/gconf.bbclass
parent97648976164e0efaf67c9928f85db5e7cea4378e (diff)
downloadpoky-fb29d189a2beec5da8dba2761d0027df9260cf30.tar.gz
gconf.bbclass: run postinstalls at rootfs time
(From OE-Core rev: 50b7f625cc2c4b9224726b11b6d4bd192209cc6e) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 7a3ee3c..38097bc 100644
--- a/meta/classes/gconf.bbclass
+++ b/meta/classes/gconf.bbclass
@@ -15,13 +15,16 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL = "1"
15 15
16gconf_postinst() { 16gconf_postinst() {
17if [ "x$D" != "x" ]; then 17if [ "x$D" != "x" ]; then
18 exit 1 18 export GCONF_BACKEND_DIR=${STAGING_LIBDIR_NATIVE}/GConf/2
19 export GCONF_CONFIG_SOURCE="xml::$D${sysconfdir}/gconf/gconf.xml.defaults"
20else
21 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
19fi 22fi
20SCHEMA_LOCATION=/etc/gconf/schemas 23
24SCHEMA_LOCATION=$D/etc/gconf/schemas
21for SCHEMA in ${SCHEMA_FILES}; do 25for SCHEMA in ${SCHEMA_FILES}; do
22 if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then 26 if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
23 HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ 27 HOME=$D/root gconftool-2 \
24 gconftool-2 \
25 --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null 28 --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
26 fi 29 fi
27done 30done