From a0918c133f02ed45ba169a54d0ff0128256fea57 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 9 May 2015 18:59:32 +0200 Subject: [PATCH] openntpd: unbreak musl build: WAIT_ANY -> -1 in waitpid(2). --- srcpkgs/openntpd/patches/portability.patch | 11 +++++++++++ srcpkgs/openntpd/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/openntpd/patches/portability.patch diff --git a/srcpkgs/openntpd/patches/portability.patch b/srcpkgs/openntpd/patches/portability.patch new file mode 100644 index 00000000000..8e9f7077c82 --- /dev/null +++ b/srcpkgs/openntpd/patches/portability.patch @@ -0,0 +1,11 @@ +--- src/constraint.c.orig 2015-05-09 18:58:56.300462567 +0200 ++++ src/constraint.c 2015-05-09 18:59:02.979453950 +0200 +@@ -257,7 +257,7 @@ constraint_check_child(void) + pid_t pid; + + do { +- pid = waitpid(WAIT_ANY, &status, WNOHANG); ++ pid = waitpid(-1, &status, WNOHANG); + if (pid <= 0) + continue; + diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template index 8d9318ba566..523a1aad8f2 100644 --- a/srcpkgs/openntpd/template +++ b/srcpkgs/openntpd/template @@ -1,7 +1,7 @@ # Template file for 'openntpd' pkgname=openntpd version=5.7p4 -revision=2 +revision=3 build_pie=yes build_style=gnu-configure configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"