mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-arch/pax: fix building w/newer glibc
This commit is contained in:
12
app-arch/pax/files/pax-3.4-sysmacros.patch
Normal file
12
app-arch/pax/files/pax-3.4-sysmacros.patch
Normal 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
|
||||
@@ -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' \
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user