net-dns/nsd: Added upstream fix for USE="dnstap -ipv6" failure
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 5 Dec 2018 10:24:20 +0000 (11:24 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 5 Dec 2018 10:24:20 +0000 (11:24 +0100)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch [new file with mode: 0644]
net-dns/nsd/nsd-4.1.26.ebuild

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
new file mode 100644 (file)
index 0000000..be19e33
--- /dev/null
@@ -0,0 +1,13 @@
+https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4213
+
+--- nsd-4.1.26/dnstap/dnstap.c
++++ nsd-4.1.26/dnstap/dnstap.c
+@@ -319,7 +319,7 @@
+               *has_port = 1;
+       } else if (ss->ss_family == AF_INET) {
+ #else
+-      if (ss->ss_family == AF_INET) {
++      if (ss->sin_family == AF_INET) {
+ #endif /* INET6 */
+               struct sockaddr_in *s = (struct sockaddr_in *) ss;
+ 
index 5fe276b04a995517ad8446aa4ab9d968c0b16178..2d738583621db194bc2c24caa11f016c3ed98de3 100644 (file)
@@ -40,15 +40,12 @@ DEPEND="
        systemd? ( virtual/pkgconfig )
 "
 
-# dnstap fails to build without ipv6
-# See https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4213
-REQUIRED_USE="
-       dnstap? ( ipv6 )
-"
-
 PATCHES=(
        # Fix the paths in the munin plugin to match our install
        "${FILESDIR}"/nsd_munin_.patch
+
+       # https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4213
+       "${FILESDIR}"/${P}-dnstap_noipv6_fix.patch
 )
 
 src_prepare() {