Skip to contentSkip to conversation

binutils: remove nativesdk-perl dependency

PATCH New [email protected] 1 participant 1 message Feb 12, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binutils: remove nativesdk-perl dependency

From: Etienne Cordonnier <[email protected]>

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

---
 recipes-devtools/binutils/binutils_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-devtools/binutils/binutils_%.bbappend +7 -0
index 03e4ceb..e0868e9 100644
@@ -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 \
+"
Signature · 1 line
2.43.0