diff --git a/cpio/.md5sum b/cpio/.md5sum index b1281f0e..6b11ab7d 100644 --- a/cpio/.md5sum +++ b/cpio/.md5sum @@ -1 +1,2 @@ +c84cc915f9b6070077f36aa2ecefaa6f cpio-2.9-gcc43-inline.patch e387abfdae3a0b9a8a5f762db653a96d cpio-2.9.tar.bz2 diff --git a/cpio/Pkgfile b/cpio/Pkgfile index 03373a1c..9351be66 100644 --- a/cpio/Pkgfile +++ b/cpio/Pkgfile @@ -4,11 +4,13 @@ name=cpio version=2.9 -release=1 -source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) +release=2 +source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 + cpio-2.9-gcc43-inline.patch) build() { cd $name-$version + patch -p0 -i $SRC/cpio-2.9-gcc43-inline.patch ./configure --prefix=/usr \ --mandir=/usr/man \ --with-rmt=/usr/lib/tar/rmt \ diff --git a/cpio/cpio-2.9-gcc43-inline.patch b/cpio/cpio-2.9-gcc43-inline.patch new file mode 100644 index 00000000..156bfde4 --- /dev/null +++ b/cpio/cpio-2.9-gcc43-inline.patch @@ -0,0 +1,32 @@ +http://lists.gnu.org/archive/html/bug-cpio/2007-09/msg00002.html + +--- lib/argp.h.orig 2007-09-25 11:04:18.000000000 +0200 ++++ lib/argp.h 2007-09-25 11:06:24.000000000 +0200 +@@ -580,7 +580,11 @@ + # 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 +--- lib/argp-fmtstream.h.orig 2007-09-25 11:06:49.000000000 +0200 ++++ lib/argp-fmtstream.h 2007-09-25 11:07:35.000000000 +0200 +@@ -198,8 +198,12 @@ + #endif + + #ifndef ARGP_FS_EI ++#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 + __argp_fmtstream_write (argp_fmtstream_t __fs,