dev-debug/sysdig: don't try to link against libanl on musl

libanl is an empty stub library since glibc-2.34 and does not exist
on musl. Since sysdig uses c-ares and therefore does not even need
glibc's async name lookups, we can safely remove it when building
on musl.

Bug: https://bugs.gentoo.org/929227
Bug: https://bugs.gentoo.org/929907
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/36237
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2024-05-20 11:52:38 -04:00
committed by Mike Gilbert
parent 637ef57e26
commit 844fbd1e96
2 changed files with 25 additions and 3 deletions
@@ -0,0 +1,16 @@
Remove libanl from list of linked libraries as it is not needed at all
and does not exist on musl.
--- libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/CMakeLists.txt~ 2022-03-25 09:50:03.000000000 +0000
+++ libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/CMakeLists.txt 2024-04-13 13:40:53.222240196 +0000
@@ -230,8 +230,7 @@ if(NOT WIN32)
if(NOT MUSL_OPTIMIZED_BUILD)
list(APPEND SINSP_LIBRARIES
- rt
- anl)
+ rt)
endif()
else()
+9 -3
View File
@@ -46,9 +46,15 @@ DEPEND="${RDEPEND}
PDEPEND="modules? ( =dev-debug/scap-driver-${PV}* )"
src_prepare() {
# manually apply patch to falcosecurity-libs dependency
pushd "${WORKDIR}" && \
eapply -p0 "${FILESDIR}/${PV}-libs-gcc13.patch" && \
# manually apply patches to falcosecurity-libs dependency
pushd "${WORKDIR}"
# gcc13 needs explicit <cstdint>
eapply -p0 "${FILESDIR}/${PV}-libs-gcc13.patch" || die
# musl has no libanl (#929227)
if [ ${ELIBC} == "musl" ] ; then
eapply -p0 "${FILESDIR}/${PV}-libs-no-libanl.patch" || die
fi
popd
# force C++14 standard for libs & main