From c12edf793614c80b18ea2fe7c9f9599d19bcfdc1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 25 Oct 2008 23:45:38 +0200 Subject: [PATCH] Added cpio-2.9 template. --HG-- extra : convert_revision : e2f6eca8b1f66fb869bdd7e307cb5d48254b5f44 --- templates/cpio-fix-build.diff | 33 +++++++++++++++++++++++++++++++++ templates/cpio.tmpl | 15 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 templates/cpio-fix-build.diff create mode 100644 templates/cpio.tmpl diff --git a/templates/cpio-fix-build.diff b/templates/cpio-fix-build.diff new file mode 100644 index 00000000000..305f26b41b9 --- /dev/null +++ b/templates/cpio-fix-build.diff @@ -0,0 +1,33 @@ +To make cpio build with gcc 4.3.x, patch from gobolinux. + +--- 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, + diff --git a/templates/cpio.tmpl b/templates/cpio.tmpl new file mode 100644 index 00000000000..33f19dfe94e --- /dev/null +++ b/templates/cpio.tmpl @@ -0,0 +1,15 @@ +# Template file for 'cpio' +pkgname=cpio +version=2.9 +patch_files="$pkgname-fix-build.diff" +distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version@.tar.gz" +build_style=gnu_configure +short_desc="GNU copy-in/out (cpio) with remote magnetic tape (rmt) support" +maintainer="Juan RP " +checksum=e58fe6654beea9dc9fbee115442c0cc3db864e061aded6af14eb34d12d6bb88e +long_desc=" + GNU cpio is a full-featured cpio command that can access remote and + local magnetic tapes, and both tar and cpio format archives in files or + on tapes." + +run_depends="glibc-2.8"