Skip to contentSkip to conversation

glib-2.0: fix install error for multilib

PATCH New Chen Qi 1 participant 1 message Mar 17, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

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.

---
 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
index edecc51fdb..4f99b86569 100644
@@ -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