All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] glib-2.0: call os.path.normpath on THISDIR
@ 2021-03-02 19:32 Martin Jansa
  2021-03-05 10:53 ` [OE-core] " Peter Kjellerstedt
       [not found] ` <16696CDA6651CD2C.16425@lists.openembedded.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Martin Jansa @ 2021-03-02 19:32 UTC (permalink / raw)
  To: openembedded-core; +Cc: anibal.limon, geoffhp, Martin Jansa

* some build environments have relative paths in THISDIR, e.g. from OEROOT set in:
  https://github.com/96boards/oe-rpb-manifest/blob/1e3345c26c56f77f3a15a3978f412a25955d2606/conf/bblayers.conf#L4
  and then the paths in filename normalized in:
  filename = os.path.normpath(os.path.join(path, meson.cross.d, element))
  don't match.

* COREBASE used here before didn't have this issue because the value is already
  normalized when set in:
  meta/conf/layer.conf:COREBASE = '${@os.path.normpath("${LAYERDIR}/../")}'

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb
index 882a89da7a..a2fa5345b4 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb
@@ -31,7 +31,7 @@ def find_meson_cross_files(d):
     if bb.data.inherits_class('native', d):
         return ""
 
-    thisdir = d.getVar("THISDIR")
+    thisdir = os.path.normpath(d.getVar("THISDIR"))
     import collections
     sitedata = siteinfo_data(d)
     # filename -> found
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-05 21:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 19:32 [PATCH] glib-2.0: call os.path.normpath on THISDIR Martin Jansa
2021-03-05 10:53 ` [OE-core] " Peter Kjellerstedt
     [not found] ` <16696CDA6651CD2C.16425@lists.openembedded.org>
2021-03-05 11:20   ` Peter Kjellerstedt
2021-03-05 11:50     ` Martin Jansa
2021-03-05 15:52       ` Peter Kjellerstedt
2021-03-05 17:54         ` Richard Purdie
2021-03-05 20:21           ` Peter Kjellerstedt
2021-03-05 21:19             ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.