Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/nsd/files/, net-dns/nsd/
Date: Wed, 05 Dec 2018 10:24:42
Message-Id: 1544005460.bf7c8daa7389acb3e77f1539ebe45f295af76544.polynomial-c@gentoo
1 commit: bf7c8daa7389acb3e77f1539ebe45f295af76544
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 5 10:24:20 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 5 10:24:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf7c8daa
7
8 net-dns/nsd: Added upstream fix for USE="dnstap -ipv6" failure
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch | 13 +++++++++++++
14 net-dns/nsd/nsd-4.1.26.ebuild | 9 +++------
15 2 files changed, 16 insertions(+), 6 deletions(-)
16
17 diff --git a/net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch b/net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch
18 new file mode 100644
19 index 00000000000..be19e337f3d
20 --- /dev/null
21 +++ b/net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch
22 @@ -0,0 +1,13 @@
23 +https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4213
24 +
25 +--- nsd-4.1.26/dnstap/dnstap.c
26 ++++ nsd-4.1.26/dnstap/dnstap.c
27 +@@ -319,7 +319,7 @@
28 + *has_port = 1;
29 + } else if (ss->ss_family == AF_INET) {
30 + #else
31 +- if (ss->ss_family == AF_INET) {
32 ++ if (ss->sin_family == AF_INET) {
33 + #endif /* INET6 */
34 + struct sockaddr_in *s = (struct sockaddr_in *) ss;
35 +
36
37 diff --git a/net-dns/nsd/nsd-4.1.26.ebuild b/net-dns/nsd/nsd-4.1.26.ebuild
38 index 5fe276b04a9..2d738583621 100644
39 --- a/net-dns/nsd/nsd-4.1.26.ebuild
40 +++ b/net-dns/nsd/nsd-4.1.26.ebuild
41 @@ -40,15 +40,12 @@ DEPEND="
42 systemd? ( virtual/pkgconfig )
43 "
44
45 -# dnstap fails to build without ipv6
46 -# See https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4213
47 -REQUIRED_USE="
48 - dnstap? ( ipv6 )
49 -"
50 -
51 PATCHES=(
52 # Fix the paths in the munin plugin to match our install
53 "${FILESDIR}"/nsd_munin_.patch
54 +
55 + # https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4213
56 + "${FILESDIR}"/${P}-dnstap_noipv6_fix.patch
57 )
58
59 src_prepare() {