summaryrefslogtreecommitdiffstats
path: root/meta/classes/gconf.bbclass
diff options
context:
space:
mode:
authorPeter Tworek <tworaz666@gmail.com>2012-02-01 08:32:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-02 18:26:50 +0000
commit31997ae9188302f276241266590a1ae0f4316c3f (patch)
tree87b4abe06b7bff3df1f583d06f02185c1ab6209e /meta/classes/gconf.bbclass
parent969661790df0e6f18617b8e867011dcc9504eb36 (diff)
downloadopenembedded-core-31997ae9188302f276241266590a1ae0f4316c3f.tar.gz
openembedded-core-31997ae9188302f276241266590a1ae0f4316c3f.tar.bz2
openembedded-core-31997ae9188302f276241266590a1ae0f4316c3f.zip
gconf.bbclass: Add proper RDEPENDS to packages with gconf postinststep.
Right now gconf bbclass adds both postinst and prerm steps, but it does not ensure that packages involved have gconf in RDEPENDS. This can lead to a situation where postinst/prerm steps fail because gconftool-2 is not installed. Signed-off-by: Peter Tworek <tworaz666@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gconf.bbclass')
-rw-r--r--meta/classes/gconf.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/gconf.bbclass b/meta/classes/gconf.bbclass
index c1dbbe30dc..7bfa871bd2 100644
--- a/meta/classes/gconf.bbclass
+++ b/meta/classes/gconf.bbclass
@@ -56,5 +56,8 @@ python populate_packages_append () {
prerm = '#!/bin/sh\n'
prerm += d.getVar('gconf_prerm', 1)
d.setVar('pkg_prerm_%s' % pkg, prerm)
+ rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
+ rdepends += " gconf"
+ d.setVar("RDEPENDS_%s" % pkg, rdepends)
}