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

This commit is contained in:
Mike Frysinger
2016-02-27 13:54:09 -05:00
parent 18c042c40c
commit d20b3532fd
3 changed files with 14 additions and 0 deletions

View File

@@ -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

View 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' \

View 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
}