]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu.inc: Remove empty egg-info directories before running meson
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 25 Oct 2021 14:07:14 +0000 (16:07 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 2 Nov 2021 16:40:35 +0000 (00:40 +0800)
This is the same solution that has been applied to meson.bbclass to
allow building with meson after it has been updated to a new
version. It needs to be applied here as well since qemu uses meson
without inheriting meson.bbclass.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9d05227e910d3f374ba7a9763ff2584b9e40db61)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/qemu/qemu.inc

index 4c94060222a064916000ea2d568d44b85d7cc586..d51a1b0007d977a758b58802ae8281e8f666ed88 100644 (file)
@@ -9,7 +9,7 @@ LICENSE = "GPLv2 & LGPLv2.1"
 RDEPENDS:${PN}-ptest = "bash"
 
 require qemu-targets.inc
-inherit pkgconfig ptest
+inherit pkgconfig ptest python3-dir
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
                     file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
@@ -122,7 +122,11 @@ do_configure:prepend:class-native() {
 }
 
 do_configure() {
-    ${S}/configure ${EXTRA_OECONF}
+       # This is taken from meson.bbclass to avoid errors when updating to a
+       # new version of meson.
+       rmdir ${STAGING_LIBDIR_NATIVE}/${PYTHON_DIR}/site-packages/*.egg-info 2>/dev/null || :
+
+       ${S}/configure ${EXTRA_OECONF}
 }
 do_configure[cleandirs] += "${B}"