diff --git a/srcpkgs/openntpd/patches/resinit.patch b/srcpkgs/openntpd/patches/resinit.patch new file mode 100644 index 00000000000..7fe394c606c --- /dev/null +++ b/srcpkgs/openntpd/patches/resinit.patch @@ -0,0 +1,23 @@ +Reset transient resolver failures in glibc +https://github.com/openntpd-portable/openntpd-portable/issues/12 + +--- src/config.c.orig 2015-08-24 16:29:04.396307991 +0200 ++++ src/config.c 2015-08-24 16:29:27.791193789 +0200 +@@ -23,6 +23,7 @@ + #include + + #include ++#include + #include + #include + #include +@@ -132,6 +133,9 @@ + struct sockaddr_in6 *sa_in6; + struct ntp_addr *h, *hh = NULL; + ++#ifdef __GLIBC__ ++ res_init(); ++#endif + bzero(&hints, sizeof(hints)); + hints.ai_family = PF_UNSPEC; + hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template index 04ad9ba80cd..1776ff3362d 100644 --- a/srcpkgs/openntpd/template +++ b/srcpkgs/openntpd/template @@ -1,7 +1,7 @@ # Template file for 'openntpd' pkgname=openntpd version=5.7p4 -revision=7 +revision=8 build_pie=yes build_style=gnu-configure configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"