diff -r 71503088f51b -r f880f219c566 openpkg/tar.patch --- a/openpkg/tar.patch Tue Jul 31 12:12:54 2012 +0200 +++ b/openpkg/tar.patch Tue Jul 31 12:23:42 2012 +0200 @@ -1,7 +1,7 @@ Index: Makefile.in ---- Makefile.in.orig 2010-03-10 11:52:09.000000000 +0100 -+++ Makefile.in 2010-03-10 18:28:13.000000000 +0100 -@@ -899,7 +899,7 @@ +--- Makefile.in.orig 2011-03-12 10:50:13.000000000 +0100 ++++ Makefile.in 2011-07-31 17:41:03.000000000 +0200 +@@ -1028,7 +1028,7 @@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = ChangeLog.1 Make.rules @@ -11,21 +11,23 @@ prev_change_log = ChangeLog.CVS changelog_dir = . Index: gnu/argp-help.c ---- gnu/argp-help.c.orig 2010-03-10 11:50:33.000000000 +0100 -+++ gnu/argp-help.c 2010-03-10 18:26:15.000000000 +0100 -@@ -571,8 +571,7 @@ +--- gnu/argp-help.c.orig 2011-03-12 10:14:26.000000000 +0100 ++++ gnu/argp-help.c 2011-07-31 17:44:24.000000000 +0200 +@@ -571,10 +571,7 @@ return val; } -static inline int +-#if __GNUC__ >= 3 -__attribute__ ((always_inline)) +-#endif +static int hol_entry_long_iterate (const struct hol_entry *entry, int (*func)(const struct argp_option *opt, const struct argp_option *real, Index: gnu/strerror.c ---- gnu/strerror.c.orig 2010-03-10 11:50:43.000000000 +0100 -+++ gnu/strerror.c 2010-03-10 18:26:15.000000000 +0100 +--- gnu/strerror.c.orig 2011-03-12 10:14:33.000000000 +0100 ++++ gnu/strerror.c 2011-07-31 17:41:03.000000000 +0200 @@ -25,6 +25,7 @@ # include @@ -34,33 +36,9 @@ # if GNULIB_defined_ESOCK /* native Windows platforms */ # if HAVE_WINSOCK2_H -Index: src/compare.c ---- src/compare.c.orig 2010-01-26 12:28:09.000000000 +0100 -+++ src/compare.c 2010-03-10 18:26:15.000000000 +0100 -@@ -277,7 +277,7 @@ - size_t len = strlen (current_stat_info.link_name); - char *linkbuf = alloca (len + 1); - -- int status = readlink (current_stat_info.file_name, linkbuf, len + 1); -+ int status = readlink (current_stat_info.file_name, linkbuf, len); - - if (status < 0) - { -Index: src/create.c ---- src/create.c.orig 2010-03-09 13:52:41.000000000 +0100 -+++ src/create.c 2010-03-10 18:26:15.000000000 +0100 -@@ -1690,7 +1690,7 @@ - if (linklen != st->stat.st_size || linklen + 1 == 0) - xalloc_die (); - buffer = (char *) alloca (linklen + 1); -- size = readlink (p, buffer, linklen + 1); -+ size = readlink (p, buffer, linklen); - if (size < 0) - { - file_removed_diag (p, top_level, readlink_diag); Index: src/tar.c ---- src/tar.c.orig 2010-03-09 13:52:41.000000000 +0100 -+++ src/tar.c 2010-03-10 18:26:15.000000000 +0100 +--- src/tar.c.orig 2010-10-24 20:07:55.000000000 +0200 ++++ src/tar.c 2011-07-31 17:41:03.000000000 +0200 @@ -20,6 +20,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ @@ -70,8 +48,8 @@ #include #include Index: src/utf8.c ---- src/utf8.c.orig 2010-01-26 12:30:20.000000000 +0100 -+++ src/utf8.c 2010-03-10 18:26:15.000000000 +0100 +--- src/utf8.c.orig 2010-01-22 18:18:15.000000000 +0100 ++++ src/utf8.c 2011-07-31 17:41:03.000000000 +0200 @@ -22,6 +22,9 @@ #include "common.h" #ifdef HAVE_ICONV_H @@ -83,8 +61,8 @@ #ifndef ICONV_CONST Index: src/xheader.c ---- src/xheader.c.orig 2010-02-12 11:03:09.000000000 +0100 -+++ src/xheader.c 2010-03-10 18:26:15.000000000 +0100 +--- src/xheader.c.orig 2010-11-27 12:18:49.000000000 +0100 ++++ src/xheader.c 2011-07-31 17:41:03.000000000 +0200 @@ -26,6 +26,10 @@ #include "common.h" @@ -93,6 +71,6 @@ +# define SIZE_MAX ((size_t) -1) +#endif + + static void xheader_init (struct xheader *xhdr); static bool xheader_protected_pattern_p (char const *pattern); static bool xheader_protected_keyword_p (char const *keyword); - static void xheader_set_single_keyword (char *) __attribute__ ((noreturn));