[OE-core] [PATCH 35/36] nativesdk.bbclass: add a /bin/sh RPROVIDES
Alexander Kanavin
alexander.kanavin at linux.intel.com
Mon Feb 13 15:06:05 UTC 2017
nativesdk-* rpm packages all require /bin/sh because postinst scriptlets
are run with it. We can either teach rpm4 and dnf to ignore that dependency
(a lot of non-upstreamable work), or add auto-satisfy the dependency
in each package. I've chosen to do the latter.
Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
meta/classes/nativesdk.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index a97f5a7114d..a050fe548ff 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -97,3 +97,7 @@ do_packagedata[stamp-extra-info] = ""
USE_NLS = "${SDKUSE_NLS}"
OLDEST_KERNEL = "${SDK_OLDEST_KERNEL}"
+
+python populate_packages_prepend() {
+ d.appendVar(d.expand('RPROVIDES_${PN}'), ' /bin/sh')
+}
--
2.11.0
More information about the Openembedded-core
mailing list