[OE-core] [PATCH] glib-2.0: update ptest multilib fix

Jeremy A. Puhlman jpuhlman at mvista.com
Tue Mar 17 06:03:05 UTC 2020


From: Jeremy Puhlman <jpuhlman at mvista.com>

The updates to the tests are done in do_install instead of do_install_ptest,
so the changes need to consider ptest not being turned on.

Signed-off-by: Jeremy A. Puhlman <jpuhlman at mvista.com>
---
 meta/recipes-core/glib-2.0/glib.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index edecc51fdb..7ebed0e5fd 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -128,9 +128,11 @@ do_install_append_class-target () {
 			rm ${D}${datadir}/installed-tests/glib/gdbus-serialization.test
 		fi
 	fi
+	if [ -f ${D}${datadir}/installed-tests/glib/static-link.test ]; then
         if test "x${MLPREFIX}" != "x"; then
                 mv ${D}${datadir}/installed-tests/glib/static-link.test ${D}${datadir}/installed-tests/glib/${MLPREFIX}static-link.test
         fi
+	fi
 }
 
 # As we do not build python3 for windows, makes no sense to ship the script that's using it
-- 
2.13.3



More information about the Openembedded-core mailing list