1 |
commit: e32a7e93e5f494ad743e00972496b7261dcbc8c3 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 1 01:02:41 2020 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 1 01:02:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e32a7e93 |
7 |
|
8 |
net-misc/bird: Add build fix for gcc-10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706704 |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
12 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
13 |
|
14 |
net-misc/bird/bird-2.0.7.ebuild | 4 ++++ |
15 |
net-misc/bird/files/bird-2.0.7-gcc10.patch | 12 ++++++++++++ |
16 |
2 files changed, 16 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/bird/bird-2.0.7.ebuild b/net-misc/bird/bird-2.0.7.ebuild |
19 |
index edc17f5b33c..d2f563e2975 100644 |
20 |
--- a/net-misc/bird/bird-2.0.7.ebuild |
21 |
+++ b/net-misc/bird/bird-2.0.7.ebuild |
22 |
@@ -18,6 +18,10 @@ DEPEND="sys-devel/flex |
23 |
sys-devel/bison |
24 |
sys-devel/m4" |
25 |
|
26 |
+PATCHES=( |
27 |
+ "${FILESDIR}/${P}-gcc10.patch" |
28 |
+) |
29 |
+ |
30 |
src_configure() { |
31 |
econf \ |
32 |
--localstatedir="${EPREFIX}/var" \ |
33 |
|
34 |
diff --git a/net-misc/bird/files/bird-2.0.7-gcc10.patch b/net-misc/bird/files/bird-2.0.7-gcc10.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..5ba3fdaef34 |
37 |
--- /dev/null |
38 |
+++ b/net-misc/bird/files/bird-2.0.7-gcc10.patch |
39 |
@@ -0,0 +1,12 @@ |
40 |
+diff -ruN bird-2.0.7.orig/nest/route.h bird-2.0.7/nest/route.h |
41 |
+--- bird-2.0.7.orig/nest/route.h 2019-10-16 13:45:52.000000000 +0300 |
42 |
++++ bird-2.0.7/nest/route.h 2020-11-01 02:59:41.199775491 +0200 |
43 |
+@@ -458,7 +458,7 @@ |
44 |
+ protocol-specific metric is availabe */ |
45 |
+ |
46 |
+ |
47 |
+-const char * rta_dest_names[RTD_MAX]; |
48 |
++extern const char * rta_dest_names[RTD_MAX]; |
49 |
+ |
50 |
+ static inline const char *rta_dest_name(uint n) |
51 |
+ { return (n < RTD_MAX) ? rta_dest_names[n] : "???"; } |