summaryrefslogtreecommitdiffstats
path: root/abs/core/cpio
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/cpio')
-rw-r--r--abs/core/cpio/PKGBUILD25
-rw-r--r--abs/core/cpio/cpio-2.9-gcc43.patch31
2 files changed, 56 insertions, 0 deletions
diff --git a/abs/core/cpio/PKGBUILD b/abs/core/cpio/PKGBUILD
new file mode 100644
index 0000000..9d1bbff
--- /dev/null
+++ b/abs/core/cpio/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: judd <jvinet@zeroflux.org>
+pkgname=cpio
+pkgver=2.9
+pkgrel=12
+pkgdesc="A tool to copy files into or out of a cpio or tar archive"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://www.gnu.org/software/cpio"
+groups=('base')
+depends=('glibc')
+source=(ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz \
+ cpio-2.9-gcc43.patch)
+md5sums=('2bb997a33555d4dc79d45d0cdf02cedd' '214864365e72328f5a4fd822bba55d74')
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ patch -Np1 -i $startdir/src/cpio-2.9-gcc43.patch
+ ./configure --prefix=/usr --mandir=/usr/man
+ make || return 1
+ make DESTDIR=${startdir}/pkg install
+ rm -f ${startdir}/pkg/usr/bin/mt ${startdir}/pkg/usr/man/man1/mt.1
+ mv ${startdir}/pkg/usr/bin ${startdir}/pkg/bin
+ rm -rf ${startdir}/pkg/usr/libexec
+}
diff --git a/abs/core/cpio/cpio-2.9-gcc43.patch b/abs/core/cpio/cpio-2.9-gcc43.patch
new file mode 100644
index 0000000..da9004a
--- /dev/null
+++ b/abs/core/cpio/cpio-2.9-gcc43.patch
@@ -0,0 +1,31 @@
+--- tar-1.19/lib/argp-fmtstream.h.gcc43 2007-09-28 15:11:36.000000000 +0200
++++ tar-1.19/lib/argp-fmtstream.h 2008-02-13 16:56:58.000000000 +0100
+@@ -198,7 +198,11 @@ extern int __argp_fmtstream_ensure (argp
+ #endif
+
+ #ifndef ARGP_FS_EI
+-#define ARGP_FS_EI extern inline
++# ifdef __GNUC_STDC_INLINE__
++# define ARGP_FS_EI extern inline __attribute__((__gnu_inline__))
++# else
++# define ARGP_FS_EI extern inline
++# endif
+ #endif
+
+ ARGP_FS_EI size_t
+diff -up tar-1.19/lib/argp.h.gcc43 tar-1.19/lib/argp.h
+--- tar-1.19/lib/argp.h.gcc43 2007-09-28 15:11:36.000000000 +0200
++++ tar-1.19/lib/argp.h 2008-02-13 16:55:36.000000000 +0100
+@@ -580,7 +580,11 @@ extern void *__argp_input (const struct
+ # endif
+
+ # ifndef ARGP_EI
+-# define ARGP_EI extern __inline__
++# if defined __GNUC_STDC_INLINE__
++# define ARGP_EI extern __inline__ __attribute__((__gnu_inline__))
++# else
++# define ARGP_EI extern __inline__
++# endif
+ # endif
+
+ ARGP_EI void