app-arch/pax: fix building w/newer glibc
authorMike Frysinger <vapier@gentoo.org>
Sat, 27 Feb 2016 18:54:09 +0000 (13:54 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 27 Feb 2016 18:54:43 +0000 (13:54 -0500)
app-arch/pax/files/pax-3.4-sysmacros.patch [new file with mode: 0644]
app-arch/pax/pax-3.4.12.16-r1.ebuild
app-arch/pax/pax-3.4.12.16.ebuild

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 (file)
index 0000000..3aede97
--- /dev/null
@@ -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
index 0e8133ff3ffc035830a63938d13877f3516f1f4a..a14e869a02b68b6482e5447743209aadcdf095bc 100644 (file)
@@ -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' \
index 973229e65c8c7f625e09e5bf79c1a51c4198a9d3..8d485e6dc3e701d0ac15e4d03e84743bcc6a79f3 100644 (file)
@@ -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
 }