[oe-commits] Peter Tworek : gconf.bbclass: Add proper RDEPENDS to packages with gconf postinststep.

git at git.openembedded.org git at git.openembedded.org
Thu Feb 2 18:28:48 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 31997ae9188302f276241266590a1ae0f4316c3f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=31997ae9188302f276241266590a1ae0f4316c3f

Author: Peter Tworek <tworaz666 at gmail.com>
Date:   Wed Feb  1 08:32:04 2012 +0100

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 at gmail.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 c1dbbe3..7bfa871 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)
 
 }





More information about the Openembedded-commits mailing list