1 |
commit: 4a295fd356b468d49f7b4e611b0d9d116f32b0f4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 17 00:39:12 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 17 00:39:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a295fd3 |
7 |
|
8 |
net-analyzer/vnstat: fix 1.17 with GCC 10 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/vnstat/vnstat-1.17-r1.ebuild | 11 ++++++++++- |
13 |
1 file changed, 10 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/net-analyzer/vnstat/vnstat-1.17-r1.ebuild b/net-analyzer/vnstat/vnstat-1.17-r1.ebuild |
16 |
index fceff0f93ca..8aa25d8a327 100644 |
17 |
--- a/net-analyzer/vnstat/vnstat-1.17-r1.ebuild |
18 |
+++ b/net-analyzer/vnstat/vnstat-1.17-r1.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=7 |
21 |
|
22 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/teemutoivola.asc |
23 |
-inherit toolchain-funcs verify-sig |
24 |
+inherit flag-o-matic toolchain-funcs verify-sig |
25 |
|
26 |
DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage" |
27 |
HOMEPAGE="https://humdi.net/vnstat/" |
28 |
@@ -43,6 +43,15 @@ src_prepare() { |
29 |
src/common.h || die |
30 |
} |
31 |
|
32 |
+src_configure() { |
33 |
+ tc-export CC |
34 |
+ |
35 |
+ # Fails to build with GCC 10 |
36 |
+ append-flags -fcommon |
37 |
+ |
38 |
+ default |
39 |
+} |
40 |
+ |
41 |
src_compile() { |
42 |
emake ${PN} ${PN}d $(usex gd ${PN}i '') |
43 |
} |