diff options
author | tcely <tcely@users.noreply.github.com> | 2018-09-05 10:13:25 -0400 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-09-05 14:14:30 +0000 |
commit | ca2544311541b5fc97e7cf13a330520f56812d72 (patch) | |
tree | ba3865d3669c135ead5750463c57a0a6fb108af1 /community/knot | |
parent | 75b1809cce331aa599a9e300f7f0ddc6a5b44d66 (diff) | |
download | aports-ca2544311541b5fc97e7cf13a330520f56812d72.tar.bz2 aports-ca2544311541b5fc97e7cf13a330520f56812d72.tar.xz |
community/knot: patch test_net to listen on IPv4 loopback
Without this TravisCI builds fail on test_net with signal 6.
contrib/test_net........................FAILED \
3, 5, 9, 11-12, 14-18, 21-23, 33, 35-48, 50-62, 68, 74-83, 85 \
(killed by signal 6)
Diffstat (limited to 'community/knot')
-rw-r--r-- | community/knot/APKBUILD | 4 | ||||
-rw-r--r-- | community/knot/test_net.patch | 16 |
2 files changed, 19 insertions, 1 deletions
diff --git a/community/knot/APKBUILD b/community/knot/APKBUILD index 229e67a252..27dcafcdbe 100644 --- a/community/knot/APKBUILD +++ b/community/knot/APKBUILD @@ -5,7 +5,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=knot pkgver=2.7.2 -pkgrel=0 +pkgrel=1 pkgdesc="An high-performance authoritative-only DNS server" url="https://www.knot-dns.cz" arch="all" @@ -24,6 +24,7 @@ subpackages="$pkgname-libs $pkgname-openrc " source="https://secure.nic.cz/files/knot-dns/$pkgname-$pkgver.tar.xz + test_net.patch knotd.confd knotd.initd " @@ -90,5 +91,6 @@ utils() { } sha512sums="e09f8a38e975ff4f90db59db9ae8a6baaca9b0cbc9c2ecd37225febfe718b7c2038ae45481ed830dc66f2b70d8312266e2dc7cb54a0aa0fdc02c87ca42bac96d knot-2.7.2.tar.xz +39503d16603eaff04cb34de97bff987952818d229ccb5b190567198505ece8077efdf230d5402e69ca4ab8acb282c53bfaaf495360dc11191c985a48fbb61318 test_net.patch 471d3c639a8235ba09491c99d36c0a4f1074d6055ccfd3807be02a30d3ed5bbe69a84f0414ea7810db6bbc1e38f5837108e5744fc59f949ed78a262a7de4597e knotd.confd 979f06a83dd4326920a682f8190319577faf904e0e379b3c55e0420eb43dcb55d86c6727015634fa0c2dff1dddac43bbd5a216ff04f217ad91d670eb899dbefa knotd.initd" diff --git a/community/knot/test_net.patch b/community/knot/test_net.patch new file mode 100644 index 0000000000..70a1ba751d --- /dev/null +++ b/community/knot/test_net.patch @@ -0,0 +1,16 @@ +diff --git a/tests/contrib/test_net.c b/tests/contrib/test_net.c +index 95833625e..ff028eb99 100644 +--- a/tests/contrib/test_net.c ++++ b/tests/contrib/test_net.c +@@ -40,10 +40,7 @@ const int TIMEOUT_SHORT = 500; + static struct sockaddr_storage addr_local(void) + { + struct sockaddr_storage addr = { 0 }; +- struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr; +- +- addr6->sin6_family = AF_INET6; +- addr6->sin6_addr = in6addr_loopback; ++ sockaddr_set(&addr, AF_INET, "127.0.0.1", 0); + + return addr; + } |