summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-10-20 15:18:29 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-10-20 15:22:52 -0700
commitd83856cd755550eaa3c6cec3902b0e301dda1f39 (patch)
treef18f3eb2b004f7b08f71aa92b25787b9e959868c /net-misc/cfengine
parentapp-emulation/rkt: remove old version 1.27.0 (diff)
downloadgentoo-d83856cd755550eaa3c6cec3902b0e301dda1f39.tar.gz
gentoo-d83856cd755550eaa3c6cec3902b0e301dda1f39.tar.bz2
gentoo-d83856cd755550eaa3c6cec3902b0e301dda1f39.zip
net-misc/cfengine: compile-fix for glibc-2.25
Closes: https://bugs.gentoo.org/612658 Package-Manager: Portage-2.3.8, Repoman-2.3.3 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net-misc/cfengine')
-rw-r--r--net-misc/cfengine/cfengine-3.6.2.ebuild1
-rw-r--r--net-misc/cfengine/files/cfengine-3.6.2-sysmacros.patch19
2 files changed, 20 insertions, 0 deletions
diff --git a/net-misc/cfengine/cfengine-3.6.2.ebuild b/net-misc/cfengine/cfengine-3.6.2.ebuild
index a4e5ae6c7db..025728ee43e 100644
--- a/net-misc/cfengine/cfengine-3.6.2.ebuild
+++ b/net-misc/cfengine/cfengine-3.6.2.ebuild
@@ -40,6 +40,7 @@ S="${WORKDIR}/${MY_P}"
src_prepare() {
default
epatch "${FILESDIR}/${P}-ifconfig.patch"
+ epatch "${FILESDIR}/${P}-sysmacros.patch"
eautoreconf
}
diff --git a/net-misc/cfengine/files/cfengine-3.6.2-sysmacros.patch b/net-misc/cfengine/files/cfengine-3.6.2-sysmacros.patch
new file mode 100644
index 00000000000..7aa8e277925
--- /dev/null
+++ b/net-misc/cfengine/files/cfengine-3.6.2-sysmacros.patch
@@ -0,0 +1,19 @@
+Fixes compile on glibc-2.25
+
+Fixes: https://bugs.gentoo.org/612658
+--- cfengine-3.6.2.orig/libutils/platform.h 2014-09-25 04:53:31.000000000 -0700
++++ cfengine-3.6.2/libutils/platform.h 2017-10-20 15:11:15.676360363 -0700
+@@ -360,12 +360,13 @@ void globfree(glob_t *pglob);
+
+ #ifdef __linux__
+ # if defined(__GLIBC__) || defined(__BIONIC__)
+ # include <net/route.h>
+ # include <netinet/in.h>
+ # include <netinet/ip.h>
++# include <sys/sysmacros.h>
+ # else
+ # include <linux/route.h>
+ # include <linux/in.h>
+ # include <linux/ip.h>
+ # endif
+ #endif