commit:     d20b3532fd462cf2c5e46f02fe71fa03610dc2e6
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 27 18:54:09 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Feb 27 18:54:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d20b3532

app-arch/pax: fix building w/newer glibc

 app-arch/pax/files/pax-3.4-sysmacros.patch | 12 ++++++++++++
 app-arch/pax/pax-3.4.12.16-r1.ebuild       |  1 +
 app-arch/pax/pax-3.4.12.16.ebuild          |  1 +
 3 files changed, 14 insertions(+)

diff --git a/app-arch/pax/files/pax-3.4-sysmacros.patch 
b/app-arch/pax/files/pax-3.4-sysmacros.patch
new file mode 100644
index 0000000..3aede97
--- /dev/null
+++ b/app-arch/pax/files/pax-3.4-sysmacros.patch
@@ -0,0 +1,12 @@
+not all C libs pull in this header via sys/types.h for major()/etc...
+
+--- a/src/extern.h
++++ b/src/extern.h
+@@ -38,6 +38,7 @@
+  */
+ 
+ #include <sys/cdefs.h>
++#include <sys/sysmacros.h>
+ 
+ /*
+  * ar_io.c

diff --git a/app-arch/pax/pax-3.4.12.16-r1.ebuild 
b/app-arch/pax/pax-3.4.12.16-r1.ebuild
index 0e8133f..a14e869 100644
--- a/app-arch/pax/pax-3.4.12.16-r1.ebuild
+++ b/app-arch/pax/pax-3.4.12.16-r1.ebuild
@@ -26,6 +26,7 @@ src_prepare() {
        rpm_spec_epatch ../${PN}.spec
        epatch "${FILESDIR}"/pax-3.4-x32.patch
        epatch "${FILESDIR}"/pax-3.4-fix-fts-includes.patch
+       epatch "${FILESDIR}"/pax-3.4-sysmacros.patch
        sed -i configure.in \
                -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
                -e '/AC_PROG_RANLIB/a AC_PROG_MKDIR_P' \

diff --git a/app-arch/pax/pax-3.4.12.16.ebuild 
b/app-arch/pax/pax-3.4.12.16.ebuild
index 973229e..8d485e6 100644
--- a/app-arch/pax/pax-3.4.12.16.ebuild
+++ b/app-arch/pax/pax-3.4.12.16.ebuild
@@ -25,6 +25,7 @@ S=${WORKDIR}/${MY_P}
 src_prepare() {
        rpm_spec_epatch ../${PN}.spec
        epatch "${FILESDIR}"/pax-3.4-x32.patch
+       epatch "${FILESDIR}"/pax-3.4-sysmacros.patch
        sed -i configure.in -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die
        eautoreconf
 }

Reply via email to