app-admin/fam: fix build w/newer glibc #580702
authorMike Frysinger <vapier@gentoo.org>
Wed, 7 Dec 2016 05:03:34 +0000 (00:03 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Dec 2016 05:08:31 +0000 (00:08 -0500)
app-admin/fam/fam-2.7.0-r7.ebuild
app-admin/fam/files/fam-2.7.0-sysmacros.patch [new file with mode: 0644]

index f85d60d736780638e7d24fdb99909577d51da63f..166061bae0053a742e31b3eddedbd5fe11abf29b 100644 (file)
@@ -28,6 +28,8 @@ src_prepare() {
        EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${S}"/${P}/debian/patches
        sed -i configure.ac -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die
 
+       epatch "${FILESDIR}"/${P}-sysmacros.patch #580702
+
        eautoreconf
        multilib_copy_sources
 }
diff --git a/app-admin/fam/files/fam-2.7.0-sysmacros.patch b/app-admin/fam/files/fam-2.7.0-sysmacros.patch
new file mode 100644 (file)
index 0000000..ac42dca
--- /dev/null
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/580702
+
+fix build with newer glibc where sys/sysmacros.h isn't implicitly included
+by sys/types.h
+
+--- a/src/DNotify.c++
++++ b/src/DNotify.c++
+@@ -32,6 +32,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <libgen.h>