commit:     d44615da815563b029843855df7ed220a85e17c4
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  7 05:03:34 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Dec  7 05:08:31 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d44615da

app-admin/fam: fix build w/newer glibc #580702

 app-admin/fam/fam-2.7.0-r7.ebuild             |  2 ++
 app-admin/fam/files/fam-2.7.0-sysmacros.patch | 15 +++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/app-admin/fam/fam-2.7.0-r7.ebuild 
b/app-admin/fam/fam-2.7.0-r7.ebuild
index f85d60d..166061b 100644
--- a/app-admin/fam/fam-2.7.0-r7.ebuild
+++ b/app-admin/fam/fam-2.7.0-r7.ebuild
@@ -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
index 00000000..ac42dca
--- /dev/null
+++ b/app-admin/fam/files/fam-2.7.0-sysmacros.patch
@@ -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>

Reply via email to