Skip to contentSkip to conversation

glib-2.0: show and error about --cross-file only when such file exists

PATCH Superseded Martin Jansa 1 participant 1 message Mar 5, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glib-2.0: show and error about --cross-file only when such file exists

---
 meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb +2 -1
index a2fa5345b4..4176dbd207 100644
@@ -41,7 +41,8 @@ def find_meson_cross_files(d):
             filename = os.path.normpath(os.path.join(path, "meson.cross.d", element))
             sanitized_path = filename.replace(thisdir, "${THISDIR}")
             if sanitized_path == filename:
-                bb.error("Cannot add '%s' to --cross-file, because it's not relative to THISDIR '%s' and sstate signature would contain this full path" % (filename, thisdir))
+                if os.path.exists(filename):
+                    bb.error("Cannot add '%s' to --cross-file, because it's not relative to THISDIR '%s' and sstate signature would contain this full path" % (filename, thisdir))
                 continue
             files[filename.replace(thisdir, "${THISDIR}")] = os.path.exists(filename)
 
Signature · 1 line
2.30.1