Skip to contentSkip to conversation

buildtools-extended-tarball: add ldd

PATCH New Lander Noterman 1 participant 1 message Sep 29

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildtools-extended-tarball: add ldd

uninative.bbclass decides whether to enable itself by comparing ldd --version against UNINATIVE_MAXGLIBCVERSION. buildtools-extended ships its own gcc and glibc, and native recipes built with it link against that glibc, but it ships no ldd, so the check reads the host's ldd instead. On a host whose glibc is newer than uninative's, uninative is disabled even though the build never uses the host glibc, and native sstate is then keyed to the host distro instead of "universal".

Ship ldd so the check sees the glibc the build actually uses.

---
 meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-extended-tarball.bb +1 -0
index bd4c19c7ea..c9b2881d50 100644
@@ -28,6 +28,7 @@ TOOLCHAIN_HOST_TASK += "\
     nativesdk-libtool \
     nativesdk-pkgconfig \
     nativesdk-glibc-utils \
+    nativesdk-ldd \
     nativesdk-glibc-gconvs \
     nativesdk-libxcrypt-dev \
     "
Signature · 1 line
2.55.0