glib-2.0: fix install error for multilib
PATCH 1/1 glib-2.0: fix install error for multilib
A previous patch adds this `mv' command, but patch file, static-link.test might not even be there. So add a check to avoid do_install error in case of multilib.
Signed-off-by Chen Qi <[email protected]>
--- meta/recipes-core/glib-2.0/glib.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/glib-2.0/glib.inc +3 -1
@@ -129,7 +129,9 @@ do_install_append_class-target () { fi fi if test "x${MLPREFIX}" != "x"; then - mv ${D}${datadir}/installed-tests/glib/static-link.test ${D}${datadir}/installed-tests/glib/${MLPREFIX}static-link.test + if [ -e ${D}${datadir}/installed-tests/glib/static-link.test ]; then + mv ${D}${datadir}/installed-tests/glib/static-link.test ${D}${datadir}/installed-tests/glib/${MLPREFIX}static-link.test + fi fi }
Signature · 1 line
2.21.0