From 1a46aee930b971bb789292c9f2add7120d6ab6c3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 21 Jun 2008 12:14:07 +0000 Subject: [PATCH] Clifford Wolf: Hotfixed tar and cpio for gcc-43 [2008060621405891530] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@9057 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/cpio/hotfix-gcc43.patch | 33 ++++++++++++++++++++++++++++ package/base/tar/hotfix-gcc43.patch | 33 ++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 package/base/cpio/hotfix-gcc43.patch create mode 100644 package/base/tar/hotfix-gcc43.patch diff --git a/package/base/cpio/hotfix-gcc43.patch b/package/base/cpio/hotfix-gcc43.patch new file mode 100644 index 000000000..94de7ed4d --- /dev/null +++ b/package/base/cpio/hotfix-gcc43.patch @@ -0,0 +1,33 @@ + +see 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, diff --git a/package/base/tar/hotfix-gcc43.patch b/package/base/tar/hotfix-gcc43.patch new file mode 100644 index 000000000..94de7ed4d --- /dev/null +++ b/package/base/tar/hotfix-gcc43.patch @@ -0,0 +1,33 @@ + +see 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,