net-dns/nsd: Added upstream fix for USE="dnstap -ipv6" failure

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2018-12-05 11:24:20 +01:00
parent 76051c996b
commit bf7c8daa73
2 changed files with 16 additions and 6 deletions

View File

@@ -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;

View 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() {