1 |
commit: ce9cf468b74854dd0d12f3647c509b7e3700b179 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 23 04:45:27 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 23 04:46:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce9cf468 |
7 |
|
8 |
net-analyzer/nfdump: fix build on musl |
9 |
|
10 |
Closes: https://bugs.gentoo.org/853763 |
11 |
Thanks-to: CFuga <cfuga <AT> cfuga.mx> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-analyzer/nfdump/nfdump-1.6.24.ebuild | 6 +++++- |
15 |
1 file changed, 5 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-analyzer/nfdump/nfdump-1.6.24.ebuild b/net-analyzer/nfdump/nfdump-1.6.24.ebuild |
18 |
index abe553c93b29..db24ffe43a66 100644 |
19 |
--- a/net-analyzer/nfdump/nfdump-1.6.24.ebuild |
20 |
+++ b/net-analyzer/nfdump/nfdump-1.6.24.ebuild |
21 |
@@ -3,7 +3,7 @@ |
22 |
|
23 |
EAPI=8 |
24 |
|
25 |
-inherit autotools toolchain-funcs |
26 |
+inherit autotools flag-o-matic toolchain-funcs |
27 |
|
28 |
DESCRIPTION="A set of tools to collect and process netflow data" |
29 |
HOMEPAGE="https://github.com/phaag/nfdump" |
30 |
@@ -19,6 +19,7 @@ REQUIRED_USE="?? ( jnat nsel )" |
31 |
RDEPEND=" |
32 |
app-arch/bzip2 |
33 |
sys-libs/zlib |
34 |
+ elibc_musl? ( sys-libs/fts-standalone ) |
35 |
ftconv? ( net-analyzer/flow-tools ) |
36 |
nfpcapd? ( net-libs/libpcap ) |
37 |
nfprofile? ( net-analyzer/rrdtool ) |
38 |
@@ -54,6 +55,9 @@ src_prepare() { |
39 |
src_configure() { |
40 |
tc-export CC |
41 |
|
42 |
+ # bug #853763 |
43 |
+ use elibc_musl && append-libs "-lfts" |
44 |
+ |
45 |
# --without-ftconf is not handled well, bug #322201 |
46 |
econf \ |
47 |
$(use ftconv && echo "--enable-ftconv --with-ftpath=/usr") \ |