]> code.ossystems Code Review - openembedded-core.git/commitdiff
gconf.bbclass: Add proper RDEPENDS to packages with gconf postinststep.
authorPeter Tworek <tworaz666@gmail.com>
Wed, 1 Feb 2012 07:32:04 +0000 (08:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Feb 2012 18:26:50 +0000 (18:26 +0000)
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>
meta/classes/gconf.bbclass

index c1dbbe30dce86e62e86970a1218fb190dcbf8003..7bfa871bd2ffb4a049b5b183a10c08b14a77142f 100644 (file)
@@ -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)
 
 }