diff mbox series

[meta-darwin] binutils: remove nativesdk-perl dependency

Message ID 20250212131455.4094351-1-ecordonnier@snap.com
State New
Headers show
Series [meta-darwin] binutils: remove nativesdk-perl dependency | expand

Commit Message

Etienne Cordonnier Feb. 12, 2025, 1:14 p.m. UTC
From: Etienne Cordonnier <ecordonnier@snap.com>

This was added in scarthgap 5.0.6 ( https://github.com/yoctoproject/poky/commit/e1958af36c9bb27f683b82a13e91f17f4cb64858 ).
Add this workaround until there is a proper fix.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 recipes-devtools/binutils/binutils_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/recipes-devtools/binutils/binutils_%.bbappend b/recipes-devtools/binutils/binutils_%.bbappend
index 03e4ceb..e0868e9 100644
--- a/recipes-devtools/binutils/binutils_%.bbappend
+++ b/recipes-devtools/binutils/binutils_%.bbappend
@@ -15,3 +15,10 @@  INSANE_SKIP:nativesdk-binutils = "debug-files"
 
 # nativesdk-binutils's libctf doesn't compile. disable it
 PACKAGECONFIG[libctf] = "--enable-libctf=yes,--enable-libctf=no"
+
+# perl tries to call readelf, which does not exist on darwin (it would need
+# to call objdump instead but the detection logic does not work for some reason)
+RDEPENDS:gprofng:class-nativesdk:remove = " nativesdk-perl-module-bignum \
+                                     nativesdk-perl-module-bigint \
+                                     nativesdk-perl-module-math-bigint \
+"