commit:     ce9cf468b74854dd0d12f3647c509b7e3700b179
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 04:45:27 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 23 04:46:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce9cf468

net-analyzer/nfdump: fix build on musl

Closes: https://bugs.gentoo.org/853763
Thanks-to: CFuga <cfuga <AT> cfuga.mx>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/nfdump/nfdump-1.6.24.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/nfdump/nfdump-1.6.24.ebuild 
b/net-analyzer/nfdump/nfdump-1.6.24.ebuild
index abe553c93b29..db24ffe43a66 100644
--- a/net-analyzer/nfdump/nfdump-1.6.24.ebuild
+++ b/net-analyzer/nfdump/nfdump-1.6.24.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="A set of tools to collect and process netflow data"
 HOMEPAGE="https://github.com/phaag/nfdump";
@@ -19,6 +19,7 @@ REQUIRED_USE="?? ( jnat nsel )"
 RDEPEND="
        app-arch/bzip2
        sys-libs/zlib
+       elibc_musl? ( sys-libs/fts-standalone )
        ftconv? ( net-analyzer/flow-tools )
        nfpcapd? ( net-libs/libpcap )
        nfprofile? ( net-analyzer/rrdtool )
@@ -54,6 +55,9 @@ src_prepare() {
 src_configure() {
        tc-export CC
 
+       # bug #853763
+       use elibc_musl && append-libs "-lfts"
+
        # --without-ftconf is not handled well, bug #322201
        econf \
                $(use ftconv && echo "--enable-ftconv --with-ftpath=/usr") \

Reply via email to