]> code.ossystems Code Review - openembedded-core.git/commitdiff
gconf.bbclass: run postinstalls at rootfs time
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 4 Dec 2012 09:49:50 +0000 (11:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2012 12:30:34 +0000 (12:30 +0000)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/gconf.bbclass

index 7a3ee3c28c4aada58e26eb3a89de21198a720d39..38097bc37a3d2609a5a20f497efa143bf2a12fe4 100644 (file)
@@ -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