mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
13
net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch
Normal file
13
net-dns/nsd/files/nsd-4.1.26-dnstap_noipv6_fix.patch
Normal 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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user