1 |
commit: 295a86b2494085c4125761afddc962d6a66ebc09 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Aug 23 21:26:26 2021 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 25 07:35:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=295a86b2 |
7 |
|
8 |
net-misc/frr: Fix broken c-ares detection |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22085 |
11 |
Closes: https://bugs.gentoo.org/809728 |
12 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
13 |
Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org> |
14 |
|
15 |
net-misc/frr/files/frr-8.0-c-ares.patch | 19 +++++++++++++++++++ |
16 |
net-misc/frr/frr-8.0.ebuild | 5 ++++- |
17 |
2 files changed, 23 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/net-misc/frr/files/frr-8.0-c-ares.patch b/net-misc/frr/files/frr-8.0-c-ares.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..c313006e863 |
22 |
--- /dev/null |
23 |
+++ b/net-misc/frr/files/frr-8.0-c-ares.patch |
24 |
@@ -0,0 +1,19 @@ |
25 |
+https://bugs.gentoo.org/809728 |
26 |
+--- a/lib/subdir.am |
27 |
++++ b/lib/subdir.am |
28 |
+@@ -144,7 +144,6 @@ vtysh_scan += \ |
29 |
+ lib/log_vty.c \ |
30 |
+ lib/nexthop_group.c \ |
31 |
+ lib/plist.c \ |
32 |
+- lib/resolver.c \ |
33 |
+ lib/routemap.c \ |
34 |
+ lib/routemap_cli.c \ |
35 |
+ lib/spf_backoff.c \ |
36 |
+@@ -333,6 +332,7 @@ lib_libfrrsnmp_la_SOURCES = \ |
37 |
+ if CARES |
38 |
+ lib_LTLIBRARIES += lib/libfrrcares.la |
39 |
+ pkginclude_HEADERS += lib/resolver.h |
40 |
++vtysh_scan += lib/resolver.c |
41 |
+ endif |
42 |
+ |
43 |
+ lib_libfrrcares_la_CFLAGS = $(AM_CFLAGS) $(CARES_CFLAGS) |
44 |
|
45 |
diff --git a/net-misc/frr/frr-8.0.ebuild b/net-misc/frr/frr-8.0.ebuild |
46 |
index 57ef54e4692..6343f0f45e3 100644 |
47 |
--- a/net-misc/frr/frr-8.0.ebuild |
48 |
+++ b/net-misc/frr/frr-8.0.ebuild |
49 |
@@ -49,7 +49,10 @@ RDEPEND=" |
50 |
!net-misc/quagga |
51 |
" |
52 |
|
53 |
-PATCHES=( "${FILESDIR}"/${PN}-7.5-ipctl-forwarding.patch ) |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-7.5-ipctl-forwarding.patch |
56 |
+ "${FILESDIR}"/${P}-c-ares.patch |
57 |
+) |
58 |
|
59 |
src_prepare() { |
60 |
default |