diff options
author | Peter Tworek <tworaz666@gmail.com> | 2012-02-01 08:32:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-02 18:26:50 +0000 |
commit | 31997ae9188302f276241266590a1ae0f4316c3f (patch) | |
tree | 87b4abe06b7bff3df1f583d06f02185c1ab6209e | |
parent | 969661790df0e6f18617b8e867011dcc9504eb36 (diff) | |
download | openembedded-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>
-rw-r--r-- | meta/classes/gconf.bbclass | 3 |
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) } |