No rpmresolve for RPM 4 34/27034/1
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Sep 2014 12:02:15 +0000 (14:02 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 3 Sep 2014 12:02:15 +0000 (14:02 +0200)
RPM 4 doesn't support rpmresolve so we need to remove this feature to
build images.

Change-Id: I7ce60f3035d33b402ad866c57b1cf28914380275
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
classes/metatizen.bbclass [new file with mode: 0644]
conf/layer.conf

diff --git a/classes/metatizen.bbclass b/classes/metatizen.bbclass
new file mode 100644 (file)
index 0000000..144e993
--- /dev/null
@@ -0,0 +1,10 @@
+python () {
+    if bb.data.inherits_class('rootfs_rpm', d):
+        rootfsdepends = d.getVarFlag("do_rootfs", "depends", True)
+        rootfsdepends = rootfsdepends.replace("rpmresolve-native:do_populate_sysroot", "")
+        d.setVarFlag("do_rootfs", "depends", rootfsdepends)
+    if bb.data.inherits_class('image-live', d):
+        bootimgdepends = d.getVarFlag("do_bootimg", "depends", True)
+        bootimgdepends = bootimgdepends.replace(d.expand("${INITRD_IMAGE}:do_rootfs"), "")
+        d.setVarFlag("do_bootimg", "depends", bootimgdepends)
+}
index 390dbb5..6b73e0d 100644 (file)
@@ -51,4 +51,6 @@ PREFERRED_VERSION_libav = "9.13"
 
 PREFERRED_VERSION_linux-yocto = "3.14.4+git%"
 
-WESTONSTARTUP ??= "weston-common"
\ No newline at end of file
+WESTONSTARTUP ??= "weston-common"
+
+INHERIT += "metatizen"