From de1a3565737fd0225e6e7904567ffe2cf32fe8a6 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 21 Mar 2020 16:01:47 +0100 Subject: [PATCH] app-misc/dateutils: Remove glibc-specific include Closes: https://bugs.gentoo.org/713182 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: David Seifert --- app-misc/dateutils/dateutils-0.4.6.ebuild | 2 ++ .../dateutils-0.4.6-unportable-sys-sysctl_h.patch | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 app-misc/dateutils/files/dateutils-0.4.6-unportable-sys-sysctl_h.patch diff --git a/app-misc/dateutils/dateutils-0.4.6.ebuild b/app-misc/dateutils/dateutils-0.4.6.ebuild index 0c4b76cb20e9..7b12131bfecd 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 000000000000..dc310ea7812c --- /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 + #include + #include +-#include + #include + #if defined WITH_SCMVER + # include -- 2.26.2