All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] meson.bbclass: avoid unexpected operating-system names
@ 2020-04-15 22:30 Andreas M?ller
  2020-04-23 16:36 ` Andreas M?ller
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas M?ller @ 2020-04-15 22:30 UTC (permalink / raw)
  To: openembedded-core

For example 'linux-gnueabi' is not what meson consumers expect: See canonical
table of OS names for Meson (thanks Ross). Surprisingly this did not pop up
earlier but wrong system-name can break building as described in [1]

[1] https://lists.openembedded.org/g/openembedded-core/topic/meson_host_machine_system/73023862

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 meta/classes/meson.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 06034e8b47..167263f76c 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -68,6 +68,9 @@ def meson_operating_system(var, d):
     os = d.getVar(var)
     if "mingw" in os:
         return "windows"
+    # avoid e.g 'linux-gnueabi'
+    elif "linux" in os:
+        return "linux"
     else:
         return os
 
-- 
2.21.1


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

* Re: [PATCH] meson.bbclass: avoid unexpected operating-system names
  2020-04-15 22:30 [PATCH] meson.bbclass: avoid unexpected operating-system names Andreas M?ller
@ 2020-04-23 16:36 ` Andreas M?ller
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas M?ller @ 2020-04-23 16:36 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Apr 16, 2020 at 12:30 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>
> For example 'linux-gnueabi' is not what meson consumers expect: See canonical
> table of OS names for Meson (thanks Ross). Surprisingly this did not pop up
> earlier but wrong system-name can break building as described in [1]
>
> [1] https://lists.openembedded.org/g/openembedded-core/topic/meson_host_machine_system/73023862

Ping

* at least I consider it important: The issue fixed can cause
undetected misconfigurations
* yes meson can do better but this is not in the scope of this patch

Andreas

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

end of thread, other threads:[~2020-04-23 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 22:30 [PATCH] meson.bbclass: avoid unexpected operating-system names Andreas M?ller
2020-04-23 16:36 ` Andreas M?ller

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.