mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
9764897616
commit
fb29d189a2
@@ -15,13 +15,16 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL = "1"
|
|||||||
|
|
||||||
gconf_postinst() {
|
gconf_postinst() {
|
||||||
if [ "x$D" != "x" ]; then
|
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
|
fi
|
||||||
SCHEMA_LOCATION=/etc/gconf/schemas
|
|
||||||
|
SCHEMA_LOCATION=$D/etc/gconf/schemas
|
||||||
for SCHEMA in ${SCHEMA_FILES}; do
|
for SCHEMA in ${SCHEMA_FILES}; do
|
||||||
if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
|
if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
|
||||||
HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
|
HOME=$D/root gconftool-2 \
|
||||||
gconftool-2 \
|
|
||||||
--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
|
--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user