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:28:27 +0000 |
commit | cd5225adfda73110da1fe7226839f9b7dc30dc78 (patch) | |
tree | 5725d283993e918b3e3583dda31764ed05595362 /meta | |
parent | 7bc766b9f843e11a043080d4cbb2b9c33929ff43 (diff) | |
download | poky-cd5225adfda73110da1fe7226839f9b7dc30dc78.tar.gz |
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.
(From OE-Core rev: 31997ae9188302f276241266590a1ae0f4316c3f)
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')
-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 () { | |||
56 | prerm = '#!/bin/sh\n' | 56 | prerm = '#!/bin/sh\n' |
57 | prerm += d.getVar('gconf_prerm', 1) | 57 | prerm += d.getVar('gconf_prerm', 1) |
58 | d.setVar('pkg_prerm_%s' % pkg, prerm) | 58 | d.setVar('pkg_prerm_%s' % pkg, prerm) |
59 | rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or "" | ||
60 | rdepends += " gconf" | ||
61 | d.setVar("RDEPENDS_%s" % pkg, rdepends) | ||
59 | 62 | ||
60 | } | 63 | } |