From 484f778d507f36038efd370f4c4832900dc7faa8 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 5 Aug 2019 01:18:51 +0000 Subject: system/heirloom-pax: Fix build for major/minor move Signed-off-by: Samuel Holland --- system/heirloom-pax/APKBUILD | 6 ++++-- system/heirloom-pax/sysmacros.patch | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 system/heirloom-pax/sysmacros.patch (limited to 'system') diff --git a/system/heirloom-pax/APKBUILD b/system/heirloom-pax/APKBUILD index af918e06f..7b91e0235 100644 --- a/system/heirloom-pax/APKBUILD +++ b/system/heirloom-pax/APKBUILD @@ -12,7 +12,8 @@ depends="" makedepends="bsd-compat-headers bzip2-dev zlib-dev" replaces="pax" subpackages="$pkgname-doc" -source="https://distfiles.adelielinux.org/source/${pkgname}-$pkgver.tar.xz" +source="https://distfiles.adelielinux.org/source/${pkgname}-$pkgver.tar.xz + sysmacros.patch" build() { cd "$builddir" @@ -31,4 +32,5 @@ package() { mv "$pkgdir"/usr/bin/cpio "$pkgdir"/usr/5bin/cpio } -sha512sums="7b0ad20cc51b5bcec9c07e84c603e4891f636944f6f6bd13d3decb0e9d6b23d6164b663468ee2293b37721aae20334774f4e56fd8541ffceee934050e819b642 heirloom-pax-1.0.tar.xz" +sha512sums="7b0ad20cc51b5bcec9c07e84c603e4891f636944f6f6bd13d3decb0e9d6b23d6164b663468ee2293b37721aae20334774f4e56fd8541ffceee934050e819b642 heirloom-pax-1.0.tar.xz +bcc12138ebed707e165a1ac5dac815acd85770974e19f62610e0fe32a96879fb1173fc4e7beafde12b7bc1ed03f2751b2839eeb3ccacbe209d8cbcfe0307eac3 sysmacros.patch" diff --git a/system/heirloom-pax/sysmacros.patch b/system/heirloom-pax/sysmacros.patch new file mode 100644 index 000000000..3a4feb996 --- /dev/null +++ b/system/heirloom-pax/sysmacros.patch @@ -0,0 +1,14 @@ +--- heirloom-pax-1.0/cpio/cpio.c ++++ heirloom-pax-1.0/cpio/cpio.c +@@ -91,9 +91,9 @@ + #include + #include + +-#ifdef _AIX ++#ifndef major + #include +-#endif /* _AIX */ ++#endif /* !major */ + + #ifndef major + #include -- cgit v1.2.3-60-g2f50