diff --git a/dev-debug/sysdig/files/0.29.3-libs-no-libanl.patch b/dev-debug/sysdig/files/0.29.3-libs-no-libanl.patch new file mode 100644 index 0000000000000..16563aee8ca03 --- /dev/null +++ b/dev-debug/sysdig/files/0.29.3-libs-no-libanl.patch @@ -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() diff --git a/dev-debug/sysdig/sysdig-0.29.3-r2.ebuild b/dev-debug/sysdig/sysdig-0.29.3-r2.ebuild index 7262049544d99..64902719ed6b9 100644 --- a/dev-debug/sysdig/sysdig-0.29.3-r2.ebuild +++ b/dev-debug/sysdig/sysdig-0.29.3-r2.ebuild @@ -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 + 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