diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-11-01 03:02:41 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-11-01 03:02:41 +0200 |
commit | e32a7e93e5f494ad743e00972496b7261dcbc8c3 (patch) | |
tree | 44885e348269128c417e963d91e991cbf1eca266 /net-misc/bird | |
parent | net-misc/sipsak: Version bump; apply workaround for gcc-10 (diff) | |
download | gentoo-e32a7e93e5f494ad743e00972496b7261dcbc8c3.tar.gz gentoo-e32a7e93e5f494ad743e00972496b7261dcbc8c3.tar.bz2 gentoo-e32a7e93e5f494ad743e00972496b7261dcbc8c3.zip |
net-misc/bird: Add build fix for gcc-10
Closes: https://bugs.gentoo.org/706704
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'net-misc/bird')
-rw-r--r-- | net-misc/bird/bird-2.0.7.ebuild | 4 | ||||
-rw-r--r-- | net-misc/bird/files/bird-2.0.7-gcc10.patch | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/bird/bird-2.0.7.ebuild b/net-misc/bird/bird-2.0.7.ebuild index edc17f5b33c7..d2f563e29758 100644 --- a/net-misc/bird/bird-2.0.7.ebuild +++ b/net-misc/bird/bird-2.0.7.ebuild @@ -18,6 +18,10 @@ DEPEND="sys-devel/flex sys-devel/bison sys-devel/m4" +PATCHES=( + "${FILESDIR}/${P}-gcc10.patch" +) + src_configure() { econf \ --localstatedir="${EPREFIX}/var" \ diff --git a/net-misc/bird/files/bird-2.0.7-gcc10.patch b/net-misc/bird/files/bird-2.0.7-gcc10.patch new file mode 100644 index 000000000000..5ba3fdaef343 --- /dev/null +++ b/net-misc/bird/files/bird-2.0.7-gcc10.patch @@ -0,0 +1,12 @@ +diff -ruN bird-2.0.7.orig/nest/route.h bird-2.0.7/nest/route.h +--- bird-2.0.7.orig/nest/route.h 2019-10-16 13:45:52.000000000 +0300 ++++ bird-2.0.7/nest/route.h 2020-11-01 02:59:41.199775491 +0200 +@@ -458,7 +458,7 @@ + protocol-specific metric is availabe */ + + +-const char * rta_dest_names[RTD_MAX]; ++extern const char * rta_dest_names[RTD_MAX]; + + static inline const char *rta_dest_name(uint n) + { return (n < RTD_MAX) ? rta_dest_names[n] : "???"; } |