summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-10 17:56:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 15:19:27 +0000
commitb4087338be0955a8d82a835aecc5ad50dfa96f64 (patch)
tree4a999e39ef9bf68ecd238924a94f80831208d7e3 /meta/recipes-core/glib-2.0
parente30b8ddad23930880111cd33feefe3ffba3fd437 (diff)
downloadpoky-b4087338be0955a8d82a835aecc5ad50dfa96f64.tar.gz
glib-2.0: Fix hardcoded paths in checksums
The expansion by this function, recently added by the meson site handling code was causing hardcoded paths to become embedded in the tash hashes. Avoid this (and hence avoid eSDK failures which exposed this). (From OE-Core rev: 83899aad423cd36cea7ab2ea210feae5b3359823) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.62.4.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.62.4.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.62.4.bb
index 953fba501a..5e71c81cca 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.62.4.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.62.4.bb
@@ -29,6 +29,7 @@ def find_meson_cross_files(d):
29 if bb.data.inherits_class('native', d): 29 if bb.data.inherits_class('native', d):
30 return "" 30 return ""
31 31
32 corebase = d.getVar("COREBASE")
32 import collections 33 import collections
33 sitedata = siteinfo_data(d) 34 sitedata = siteinfo_data(d)
34 # filename -> found 35 # filename -> found
@@ -36,7 +37,7 @@ def find_meson_cross_files(d):
36 for path in d.getVar("FILESPATH").split(":"): 37 for path in d.getVar("FILESPATH").split(":"):
37 for element in sitedata: 38 for element in sitedata:
38 filename = os.path.join(path, "meson.cross.d", element) 39 filename = os.path.join(path, "meson.cross.d", element)
39 files[filename] = os.path.exists(filename) 40 files[filename.replace(corebase, "${COREBASE}")] = os.path.exists(filename)
40 41
41 items = ["--cross-file=" + k for k,v in files.items() if v] 42 items = ["--cross-file=" + k for k,v in files.items() if v]
42 d.appendVar("EXTRA_OEMESON", " " + " ".join(items)) 43 d.appendVar("EXTRA_OEMESON", " " + " ".join(items))