Skip to contentSkip to conversation

gconf.bbclass: Add proper RDEPENDS to packages with gconf postinststep.

PATCH New Peter Tworek 1 participant 1 message Jan 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/gconf.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/classes/gconf.bbclass +3 -0
index c1dbbe3..7bfa871 100644
@@ -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)
 
 }
Signature · 1 line
1.7.3.4