summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-03-21 16:01:47 +0100
committerDavid Seifert <soap@gentoo.org>2020-03-21 16:01:47 +0100
commitde1a3565737fd0225e6e7904567ffe2cf32fe8a6 (patch)
tree03133302c8b7aeed03b2f79fc384fef7a474520c
parentnet-p2p/ctorrent: Add missing <sys/types.h> include (diff)
downloadgentoo-de1a3565737fd0225e6e7904567ffe2cf32fe8a6.tar.gz
gentoo-de1a3565737fd0225e6e7904567ffe2cf32fe8a6.tar.bz2
gentoo-de1a3565737fd0225e6e7904567ffe2cf32fe8a6.zip
app-misc/dateutils: Remove glibc-specific <sys/sysctl.h> include
Closes: https://bugs.gentoo.org/713182 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r--app-misc/dateutils/dateutils-0.4.6.ebuild2
-rw-r--r--app-misc/dateutils/files/dateutils-0.4.6-unportable-sys-sysctl_h.patch10
2 files changed, 12 insertions, 0 deletions
diff --git a/app-misc/dateutils/dateutils-0.4.6.ebuild b/app-misc/dateutils/dateutils-0.4.6.ebuild
index 0c4b76cb20e..7b12131bfec 100644
--- a/app-misc/dateutils/dateutils-0.4.6.ebuild
+++ b/app-misc/dateutils/dateutils-0.4.6.ebuild
@@ -17,6 +17,8 @@ DEPEND="app-arch/xz-utils
# bug 429810
RDEPEND="!sys-fabric/dapl"
+PATCHES=( "${FILESDIR}"/${P}-unportable-sys-sysctl_h.patch )
+
src_compile() {
emake CFLAGS="${CFLAGS}"
}
diff --git a/app-misc/dateutils/files/dateutils-0.4.6-unportable-sys-sysctl_h.patch b/app-misc/dateutils/files/dateutils-0.4.6-unportable-sys-sysctl_h.patch
new file mode 100644
index 00000000000..dc310ea7812
--- /dev/null
+++ b/app-misc/dateutils/files/dateutils-0.4.6-unportable-sys-sysctl_h.patch
@@ -0,0 +1,10 @@
+--- a/build-aux/yuck.c
++++ b/build-aux/yuck.c
+@@ -65,7 +65,6 @@
+ #include <sys/wait.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+-#include <sys/sysctl.h>
+ #include <time.h>
+ #if defined WITH_SCMVER
+ # include <yuck-scmver.h>