diff -r 333964c621f1 -r cb59d6afeb61 openpkg/tar.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openpkg/tar.patch Tue Jan 06 23:40:39 2009 +0100 @@ -0,0 +1,109 @@ +Index: Makefile.in +--- Makefile.in.orig 2007-10-10 13:00:22 +0200 ++++ Makefile.in 2007-10-17 08:40:12 +0200 +@@ -485,7 +485,7 @@ + target_alias = @target_alias@ + ACLOCAL_AMFLAGS = -I m4 + EXTRA_DIST = ChangeLog.1 PORTS +-SUBDIRS = doc lib rmt src scripts po tests ++SUBDIRS = doc lib src + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +Index: lib/argp-help.c +--- lib/argp-help.c.orig 2007-09-28 15:11:36 +0200 ++++ lib/argp-help.c 2007-10-17 08:40:12 +0200 +@@ -570,8 +570,7 @@ + return val; + } + +-static inline int +-__attribute__ ((always_inline)) ++static int + hol_entry_long_iterate (const struct hol_entry *entry, + int (*func)(const struct argp_option *opt, + const struct argp_option *real, +Index: src/compare.c +--- src/compare.c.orig 2007-08-26 10:56:55 +0200 ++++ src/compare.c 2007-10-17 08:40:12 +0200 +@@ -278,7 +278,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 2007-10-05 19:46:49 +0200 ++++ src/create.c 2007-10-17 08:40:12 +0200 +@@ -1696,7 +1696,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) + { + readlink_diag (p); +Index: src/incremen.c +--- src/incremen.c.orig 2007-10-01 23:19:55 +0200 ++++ src/incremen.c 2007-10-17 08:40:12 +0200 +@@ -526,6 +526,7 @@ + children = CHANGED_CHILDREN; + but changed to: */ + free (name_buffer); ++ if (dirp) + free (dirp); + return NULL; + } +Index: src/tar.c +--- src/tar.c.orig 2007-09-26 23:36:58 +0200 ++++ src/tar.c 2007-10-17 08:40:12 +0200 +@@ -20,6 +20,7 @@ + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + #include ++#include + + #include + #include +Index: src/utf8.c +--- src/utf8.c.orig 2007-06-27 15:30:32 +0200 ++++ src/utf8.c 2007-10-17 08:40:12 +0200 +@@ -22,6 +22,9 @@ + #include "common.h" + #ifdef HAVE_ICONV_H + # include ++#else ++# define iconv_t void * ++# define ICONV_CONST const + #endif + + #ifndef ICONV_CONST +Index: src/xheader.c +--- src/xheader.c.orig 2007-06-27 15:30:32 +0200 ++++ src/xheader.c 2007-10-17 08:40:12 +0200 +@@ -27,6 +27,10 @@ + + #include + ++#ifndef SIZE_MAX ++# define SIZE_MAX ((size_t) -1) ++#endif ++ + 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)); +Index: lib/strerror.c +--- lib/strerror.c.orig 2007-09-28 15:11:37 +0200 ++++ lib/strerror.c 2007-10-18 00:55:28 +0200 +@@ -23,6 +23,7 @@ + + # include + # include ++# include + + # undef strerror +