meson: drop redundant patch
PATCH 1/1 meson: drop redundant patch
This patch disables the debian-detection to use the correct $libdir by default on that platform. However in cross builds this is always overridden to be $prefix/lib, and all recipes that inherit meson pass the correct libdir explicitly.
--- meta/recipes-devtools/meson/meson.inc | 1 - ...01-is_debianlike-always-return-False.patch | 26 ------------------- 2 files changed, 27 deletions(-) delete mode 100644 meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patch
meta/recipes-devtools/meson/meson.inc +0 -1
@@ -13,7 +13,6 @@ SRC_URI = "https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P file://disable-rpath-handling.patch \ file://0001-Make-CPU-family-warnings-fatal.patch \ file://0002-Support-building-allarch-recipes-again.patch \ - file://0001-is_debianlike-always-return-False.patch \ " SRC_URI[sha256sum] = "5add789c953d984b500858b2851ee3d7add0460cf1a6f852f0a721af17384e13"
meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From 667b9ede638677fb37911306937ea62f05897581 Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin <[email protected]> -Date: Mon, 18 Oct 2021 15:55:59 +0200 -Subject: [PATCH] is_debianlike(): always return False - -Otherwise, host contamination happens. - -Upstream-Status: Inappropriate [oe-core specific] -Signed-off-by: Alexander Kanavin <[email protected]> ---- - mesonbuild/mesonlib/universal.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py -index d670d04..47d1b52 100644 ---- a/mesonbuild/mesonlib/universal.py -+++ b/mesonbuild/mesonlib/universal.py -@@ -651,7 +651,7 @@ def is_cygwin() -> bool: - - - def is_debianlike() -> bool: -- return os.path.isfile('/etc/debian_version') -+ return False - - - def is_dragonflybsd() -> bool:
Signature · 1 line
2.25.1
Sorry, I have to say no. The offending is_debianlike function is still in place, and I would not want to battle cryptic errors again if it is taken in use somewhere else. The correct fix is to drop the function itself.
Alex
Quoted 79 lines · Ross Burton
This patch disables the debian-detection to use the correct $libdir by default on that platform. However in cross builds this is always overridden to be $prefix/lib, and all recipes that inherit meson pass the correct libdir explicitly.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/meson/meson.inc | 1 - ...01-is_debianlike-always-return-False.patch | 26 ------------------- 2 files changed, 27 deletions(-) delete mode 100644
meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patchmeta/recipes-devtools/meson/meson.inc +0
-0@@ -13,7 +13,6 @@ SRC_URI = "https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P
file://disable-rpath-handling.patch \ file://0001-Make-CPU-family-warnings-fatal.patch \ file://0002-Support-building-allarch-recipes-again.patch \ - file://0001-is_debianlike-always-return-False.patch \ "SRC_URI[sha256sum] =
"5add789c953d984b500858b2851ee3d7add0460cf1a6f852f0a721af17384e13"diff --git
a/meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patchb/meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patchdeleted file mode 100644
index 83c4782a61..0000000000
---a/meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patch+++/dev/nullmeta/recipes-devtools/meson/meson.inc +0
-14@@ -1,26 +0,0 @@ -From 667b9ede638677fb37911306937ea62f05897581 Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin <[email protected]> -Date: Mon, 18 Oct 2021 15:55:59 +0200 -Subject: [PATCH] is_debianlike(): always return False - -Otherwise, host contamination happens. - -Upstream-Status: Inappropriate [oe-core specific] -Signed-off-by: Alexander Kanavin <[email protected]> ---- - mesonbuild/mesonlib/universal.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/mesonbuild/mesonlib/universal.py
b/mesonbuild/mesonlib/universal.pymeta/recipes-devtools/meson/meson.inc +0
-13-index d670d04..47d1b52 100644 ---- a/mesonbuild/mesonlib/universal.py -+++ b/mesonbuild/mesonlib/universal.py -@@ -651,7 +651,7 @@ def is_cygwin() -> bool: - - - def is_debianlike() -> bool: -- return os.path.isfile('/etc/debian_version') -+ return False - - - def is_dragonflybsd() -> bool: --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#158616):
https://lists.openembedded.org/g/openembedded-core/message/158616
Mute This Topic: https://lists.openembedded.org/mt/87266402/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 11 lines · Ross Burton
This patch disables the debian-detection to use the correct $libdir by default on that platform. However in cross builds this is always overridden to be $prefix/lib, and all recipes that inherit meson pass the correct libdir explicitly.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/meson/meson.inc | 1 - ...01-is_debianlike-always-return-False.patch | 26 ------------------- 2 files changed, 27 deletions(-) delete mode 100644 meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patch
We build native things which are meson based. Do we want native tool libdir paths depending on the existence of /etc/debian_version ? It was some reason like that this was added as we found it doing 'fun' changes depending on the host. Not sure I really want to debug that again...
Cheers,
Richard
Quoted 13 lines · Richard Purdie
Quoted 11 lines · Ross Burton
This patch disables the debian-detection to use the correct $libdir by default on that platform. However in cross builds this is always overridden to be $prefix/lib, and all recipes that inherit meson pass the correct libdir explicitly.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/meson/meson.inc | 1 - ...01-is_debianlike-always-return-False.patch | 26 ------------------- 2 files changed, 27 deletions(-) delete mode 100644 meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patch
Quoted 4 lines
We build native things which are meson based. Do we want native tool libdir paths depending on the existence of
/etc/debian_version? It was some reason like that this was added as we found it doing 'fun' changes depending on the host. Not sure I really want to debug that again...
Sure, and they pass --libdir. I did a build of Sato and nothing moved, so I'm struggling to find the actual problem here.
Ross
Quoted 15 lines · Ross Burton
Quoted 13 lines · Richard Purdie
Quoted 11 lines · Ross Burton
This patch disables the debian-detection to use the correct $libdir by default on that platform. However in cross builds this is always overridden to be $prefix/lib, and all recipes that inherit meson pass the correct libdir explicitly.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/meson/meson.inc | 1 - ...01-is_debianlike-always-return-False.patch | 26 ------------------- 2 files changed, 27 deletions(-) delete mode 100644 meta/recipes-devtools/meson/meson/0001-is_debianlike-always-return-False.patch
Quoted 7 lines
Quoted 4 lines
We build native things which are meson based. Do we want native tool libdir paths depending on the existence of
/etc/debian_version? It was some reason like that this was added as we found it doing 'fun' changes depending on the host. Not sure I really want to debug that again...Sure, and they pass --libdir. I did a build of Sato and nothing moved, so I'm struggling to find the actual problem here.
Did we start setting libdir for native builds after that change merged?
I've spent half the last week chasing phantom issues so I'm just not feeling keen on doing it with yet another issue but I guess we can queue this and wait for something to break...
Cheers,
Richard
Quoted 11 lines · Richard Purdie
Quoted 2 lines
Sure, and they pass --libdir. I did a build of Sato and nothing moved, so I'm struggling to find the actual problem here.
Did we start setting libdir for native builds after that change merged?
I've spent half the last week chasing phantom issues so I'm just not feeling
keen on doing it with yet another issue but I guess we can queue this and wait
for something to break...
The actual problem was something entirely different and nothing to do with libdirs that was added in 0.59.2 and removed in 0.60.x:
https://github.com/mesonbuild/meson/commit/142b741384347dd31ee2008726b3b3d237e2588f
Once again, given that the offending is_debianlike() function is still in place and upstream may add more (broken) uses of it, I do not want this patch removed.
Alex