From ceff4b7dc4e7048a4175ede7ffa1631b9f91ed18 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 26 Oct 2024 18:59:41 +0200 Subject: [PATCH] package/ltrace: mark as unavailable on musl Commit bf9583a50276f52edbc37d9f85df5f2cc7fdb5dc enabled elfutils on musl, as well as all its reverse dependencies, including ltrace. Turns out that even with elfutils fixed, ltrace doesn't build on musl. Fabrice proposed a patch to fix it, at: https://patchwork.ozlabs.org/project/buildroot/patch/20231104155857.110364-1-fontaine.fabrice@gmail.com/ but ltrace has no active upstream, and some aspects of the patch don't look correct. So err on the safe side and make ltrace unavailable for musl configurations. Fixes: http://autobuild.buildroot.org/results/a3a5c46e8562d3f091a9b4b205322168fbf9d16b Signed-off-by: Thomas Petazzoni (cherry picked from commit 859bd545821a838454577c4c1c9106837cda51cb) Signed-off-by: Peter Korsgaard --- package/ltrace/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/ltrace/Config.in b/package/ltrace/Config.in index 21d381db70..2dc969c4f1 100644 --- a/package/ltrace/Config.in +++ b/package/ltrace/Config.in @@ -15,6 +15,7 @@ config BR2_PACKAGE_LTRACE depends on BR2_USE_WCHAR # elfutils depends on !BR2_STATIC_LIBS # elfutils depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils + depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC depends on BR2_PACKAGE_LTRACE_ARCH_SUPPORTS select BR2_PACKAGE_ELFUTILS help @@ -25,7 +26,8 @@ config BR2_PACKAGE_LTRACE http://ltrace.org -comment "ltrace needs a toolchain w/ wchar, dynamic library, threads" +comment "ltrace needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads" depends on BR2_PACKAGE_LTRACE_ARCH_SUPPORTS depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \ - || !BR2_TOOLCHAIN_HAS_THREADS + || !BR2_TOOLCHAIN_HAS_THREADS \ + || !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)