summaryrefslogtreecommitdiff
path: root/archivers/gtar-base
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-09-27 16:12:04 +0000
committerwiz <wiz@pkgsrc.org>2004-09-27 16:12:04 +0000
commitbf6eb384e037cbb8978b92ea32a521e8f0cbefb1 (patch)
tree3b7fc1e293a2573c6790f95c94909e201b33cd1d /archivers/gtar-base
parenta7aac7f87b839ef5338f25d56fa0bbe884db20e3 (diff)
downloadpkgsrc-bf6eb384e037cbb8978b92ea32a521e8f0cbefb1.tar.gz
Update gtar packages to 1.14:
XXX: man page not updated (didn't find new version of suse gtar man page which we're using in the package) version 1.14 - Sergey Poznyakoff, 2004-05-11 * Added support for POSIX.1-2001 and ustar archive formats. * New option --format allows to select the output archive format * The default output format can be selected at configuration time by presetting the environment variable DEFAULT_ARCHIVE_FORMAT. Allowed values are GNU, V7, OLDGNU and POSIX. * New option --strip-path allows to cut off a given number of path elements from the name of the file being extracted. * New options --index-file, --no-overwrite-dir. The --overwrite-dir option is now the default; use --no-overwrite-dir if you prefer the previous default behavior. * The semantics of -o option is changed. When extracting, it does the same as --no-same-owner GNU tar option. This is compatible with UNIX98 tar. Otherwise, its effect is the same as that of --old-archive option. This latter is deprecated and will be removed in future. * New option --check-links prints a message if not all links are dumped for a file being archived. This corresponds to the UNIX98 -l option. The current semantics of the -l option is retained for compatibility with previous releases, however such usage is strongly deprecated as the option will change to its UNIX98 semantics in the future releases. * New option --occurrence[=N] can be used in conjunction with one of the subcommands --delete, --diff, --extract or --list when a list of files is given either on the command line or via -T option. This option instructs tar to process only the Nth occurrence of each named file. N defaults to 1, so `tar -x -f archive --occurrence filename' extracts the first occurrence of `filename' from `archive' and terminates without scanning to the end of the archive. * New option --pax-option allows to control the handling of POSIX keywords in `pax' extended headers. It is equivalent to `pax' -o option. * --incremental and --listed-incremental options work correctly on individual files, as well as on directories. * New scripts: backup (replaces old level-0 and level-1) and restore. The scripts are compiled and installed if --enable-backup-scripts option is given to configure. * By default tar searches "rmt" utility in "$prefix/libexec/rmt", which is consistent with the location where the version of "rmt" included in the package is installed. Previous versions of tar used "/etc/rmt". To install "rmt" to its traditional location, run configure with option --libexecdir=/etc. Otherwise, if you already have rmt installed and wish to use it, instead of the shipped in version, set the variable DEFAULT_RMT_COMMAND to the full path name of the utility, e.g. ./configure DEFAULT_RMT_COMMAND=/etc/rmt. Notice also that the full path name of the "rmt" utility to use can be set at runtime, by giving option --rmt-command to tar. * Removed obsolete command line options: ** --absolute-paths superseded by --absolute-names ** --block-compress is not needed any longer ** --block-size superseded by --blocking-factor ** --modification-time superseded by --touch ** --read-full-blocks superseded by --read-full-records ** --record-number superseded by --block-number ** --version-control superseded by --backup * New message translations fi (Finnish), gl (Galician), hr (Croatian), hu (Hungarian), ms (Malaysian), nb (Norwegian), ro (Romanian), sk (Slovak), zh_CN (Chinese simplified), zh_TW (Chinese traditional). The code 'no' for Norwegian (Bokmål) has been withdrawn; use 'nb' instead.
Diffstat (limited to 'archivers/gtar-base')
-rw-r--r--archivers/gtar-base/Makefile20
-rw-r--r--archivers/gtar-base/PLIST13
-rw-r--r--archivers/gtar-base/distinfo17
-rw-r--r--archivers/gtar-base/files/gtar.15
-rw-r--r--archivers/gtar-base/patches/patch-aa27
-rw-r--r--archivers/gtar-base/patches/patch-ab40
-rw-r--r--archivers/gtar-base/patches/patch-ac6
-rw-r--r--archivers/gtar-base/patches/patch-ae27
-rw-r--r--archivers/gtar-base/patches/patch-af35
-rw-r--r--archivers/gtar-base/patches/patch-ag38
10 files changed, 82 insertions, 146 deletions
diff --git a/archivers/gtar-base/Makefile b/archivers/gtar-base/Makefile
index 89451ccdff1..60d6c189374 100644
--- a/archivers/gtar-base/Makefile
+++ b/archivers/gtar-base/Makefile
@@ -1,22 +1,20 @@
-# $NetBSD: Makefile,v 1.36 2004/06/02 23:20:55 heinz Exp $
+# $NetBSD: Makefile,v 1.37 2004/09/27 16:12:04 wiz Exp $
#
-DISTNAME= tar-1.13.25
-PKGNAME= gtar-base-1.13.25
-PKGREVISION= 2
+DISTNAME= tar-1.14
+PKGNAME= gtar-base-1.14
SVR4_PKGNAME= gtarb
CATEGORIES= archivers
-MASTER_SITES= ftp://alpha.gnu.org/gnu/tar/ \
- ftp://ftp.sunsite.org.uk/Mirrors/alpha.gnu.org/gnu/tar/ \
- ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/tar/
+MASTER_SITES= ${MASTER_SITE_GNU:=tar/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/tar/tar.html
COMMENT= The GNU tape archiver with remote magnetic tape support
-PKG_INSTALLATION_TYPES= overwrite pkgviews
BUILD_USES_MSGFMT= YES
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
USE_BUILDLINK3= YES
USE_PKGLOCALEDIR= YES
GNU_CONFIGURE= YES
@@ -37,6 +35,9 @@ CONFIGURE_ARGS+= --program-prefix=${GTAR_PROGRAM_PREFIX}
.endif
CONFIGURE_ARGS+= --with-catgets
+# lie to configure about gettext -- it does not need GNU gettext
+CONFIGURE_ENV+= gt_cv_func_gnugettext2_libintl=yes
+
PLIST_SUBST+= GTAR_PROGRAM_PREFIX=${GTAR_PROGRAM_PREFIX}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
BUILD_DEFS+= GTAR_PROGRAM_PREFIX
@@ -49,9 +50,6 @@ PLIST_SUBST+= GTAR_LINK=""
PLIST_SUBST+= GTAR_LINK="@comment "
.endif
-post-patch:
- @${TOUCH} ${WRKSRC}/po/fr.po
-
post-install:
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
${INSTALL_DATA} ${FILESDIR}/gtar.1 \
diff --git a/archivers/gtar-base/PLIST b/archivers/gtar-base/PLIST
index 0a6cc36fa77..fd21750aea7 100644
--- a/archivers/gtar-base/PLIST
+++ b/archivers/gtar-base/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2004/04/05 18:38:43 reed Exp $
+@comment $NetBSD: PLIST,v 1.7 2004/09/27 16:12:04 wiz Exp $
bin/${GTAR_PROGRAM_PREFIX}tar
${GTAR_LINK}bin/gtar
man/man1/${GTAR_PROGRAM_PREFIX}tar.1
@@ -7,17 +7,26 @@ ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/et/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/fi/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/gl/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/hr/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/hu/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/id/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/it/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/ko/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/ms/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/nb/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/tar.mo
-${PKGLOCALEDIR}/locale/no/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/pt/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/ro/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/sl/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/tar.mo
+${PKGLOCALEDIR}/locale/zh_TW/LC_MESSAGES/tar.mo
diff --git a/archivers/gtar-base/distinfo b/archivers/gtar-base/distinfo
index 5b7cb18f5c3..f1ce407ae0a 100644
--- a/archivers/gtar-base/distinfo
+++ b/archivers/gtar-base/distinfo
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.9 2004/04/24 23:19:27 tv Exp $
+$NetBSD: distinfo,v 1.10 2004/09/27 16:12:04 wiz Exp $
-SHA1 (tar-1.13.25.tar.gz) = d27fda27af621a1182bff289d4bfc7b37019effe
-Size (tar-1.13.25.tar.gz) = 1312227 bytes
-SHA1 (patch-aa) = 607455dae33416396ed9589e74179a097f89adbf
-SHA1 (patch-ab) = 676a9ad625166d052ba8430c4ee19651c25c6451
-SHA1 (patch-ac) = 88f1c52efcad98dfb6688d9184b50f1e8aabe31d
-SHA1 (patch-ae) = c91b7225146d6dd18031a5ebaa69993904c5c078
-SHA1 (patch-af) = 2a5eff3022bcc279131dcd1144fe9c8a7acebecb
-SHA1 (patch-ag) = fdb46bf9c32ae6df32c6569f12e9232217f53506
+SHA1 (tar-1.14.tar.gz) = 484d3ac9c15a598f2ee110155d87b3daecc7b13c
+Size (tar-1.14.tar.gz) = 1485633 bytes
+SHA1 (patch-aa) = df97e08202682939f329f33222540b46ed6baa36
+SHA1 (patch-ab) = 416495f330cb7614eb466547bc468213213e3a90
+SHA1 (patch-ac) = 41d4153b44b5852664401d9be3a0b0a4ef4984eb
+SHA1 (patch-ae) = 428a5a263dd889e09c0d5404eb8d4fe5dbeeb61d
+SHA1 (patch-ag) = 3cb3f8ed288a141896e65410c453b15578943ab3
diff --git a/archivers/gtar-base/files/gtar.1 b/archivers/gtar-base/files/gtar.1
index 72c1c291fa0..18736655852 100644
--- a/archivers/gtar-base/files/gtar.1
+++ b/archivers/gtar-base/files/gtar.1
@@ -1,5 +1,5 @@
.\"
-.\" $NetBSD: gtar.1,v 1.3 2002/11/20 16:57:55 bouyer Exp $
+.\" $NetBSD: gtar.1,v 1.4 2004/09/27 16:12:04 wiz Exp $
.\" @(#)tar.1 1.13.25 2000/12/14 Werner;
.\" from SuSe tar-1.13.25-45.src.rpm
.TH TAR 1 "14 December 2000" "Version 1.13.25"
@@ -63,7 +63,7 @@ tar \- The GNU version of the tar archiving utility
.I directory1 \fR[\fP directory2\fR,\fP \fR...\fP directoryN \fR]
.SH DESCRIPTION
.LP
-This manual page documents the GNU version of
+This manual page documents the GNU version 1.13.25 of
.BR tar ,
an archiving program designed to store and extract files from
an archive file known as a
@@ -263,4 +263,3 @@ reported as a bug in our defect tracking system.
If you really want to understand tar, then you should run info and read the
tar info pages, or use the info mode in emacs.
-
diff --git a/archivers/gtar-base/patches/patch-aa b/archivers/gtar-base/patches/patch-aa
index 775f82547ba..3ccf3f645af 100644
--- a/archivers/gtar-base/patches/patch-aa
+++ b/archivers/gtar-base/patches/patch-aa
@@ -1,22 +1,13 @@
-$NetBSD: patch-aa,v 1.5 2002/11/20 16:57:55 bouyer Exp $
+$NetBSD: patch-aa,v 1.6 2004/09/27 16:12:04 wiz Exp $
---- src/Makefile.in.orig Wed Sep 26 22:34:33 2001
-+++ src/Makefile.in Sun Nov 17 18:04:11 2002
-@@ -103,7 +103,7 @@
-
- AUTOMAKE_OPTIONS = gnits
- bin_PROGRAMS = tar
--libexec_PROGRAMS = @RMT@
-+libexec_PROGRAMS =
- EXTRA_PROGRAMS = rmt
-
- noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
-@@ -127,7 +127,7 @@
- CONFIG_CLEAN_FILES =
- EXTRA_PROGRAMS = rmt$(EXEEXT)
+--- src/Makefile.in.orig 2004-05-11 10:13:27.000000000 +0200
++++ src/Makefile.in
+@@ -44,7 +44,7 @@ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+ host_triplet = @host@
bin_PROGRAMS = tar$(EXEEXT)
-libexec_PROGRAMS = @RMT@
+libexec_PROGRAMS =
- PROGRAMS = $(bin_PROGRAMS) $(libexec_PROGRAMS)
-
- am_rmt_OBJECTS = rmt.$(OBJEXT)
+ EXTRA_PROGRAMS = rmt$(EXEEXT)
+ subdir = src
+ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
diff --git a/archivers/gtar-base/patches/patch-ab b/archivers/gtar-base/patches/patch-ab
index 52f50f5bc01..28a3640f086 100644
--- a/archivers/gtar-base/patches/patch-ab
+++ b/archivers/gtar-base/patches/patch-ab
@@ -1,40 +1,40 @@
-$NetBSD: patch-ab,v 1.8 2002/11/20 16:57:55 bouyer Exp $
+$NetBSD: patch-ab,v 1.9 2004/09/27 16:12:04 wiz Exp $
---- src/tar.c.orig Fri Sep 21 02:11:27 2001
-+++ src/tar.c Sun Nov 17 18:24:55 2002
-@@ -136,6 +136,7 @@
- NEWER_MTIME_OPTION,
+--- src/tar.c.orig 2004-05-10 13:49:19.000000000 +0200
++++ src/tar.c
+@@ -196,6 +196,7 @@ enum
NO_ANCHORED_OPTION,
NO_IGNORE_CASE_OPTION,
+ NO_OVERWRITE_DIR_OPTION,
+ NO_UNLINK_FIRST_OPTION,
NO_WILDCARDS_OPTION,
NO_WILDCARDS_MATCH_SLASH_OPTION,
NULL_OPTION,
-@@ -233,6 +234,7 @@
+@@ -292,6 +293,7 @@ static struct option long_options[] =
{"no-recursion", no_argument, &recursion_option, 0},
{"no-same-owner", no_argument, &same_owner_option, -1},
{"no-same-permissions", no_argument, &same_permissions_option, -1},
+ {"no-unlink-first", no_argument, NULL, NO_UNLINK_FIRST_OPTION},
- {"numeric-owner", no_argument, &numeric_owner_option, 1},
+ {"numeric-owner", no_argument, 0, NUMERIC_OWNER_OPTION},
+ {"occurrence", optional_argument, 0, OCCURRENCE_OPTION},
{"old-archive", no_argument, 0, 'o'},
- {"one-file-system", no_argument, 0, 'l'},
-@@ -266,6 +268,7 @@
+@@ -327,6 +329,7 @@ static struct option long_options[] =
{"touch", no_argument, 0, 'm'},
{"uncompress", no_argument, 0, 'Z'},
{"ungzip", no_argument, 0, 'z'},
+ {"unlink", no_argument, 0, 'U'},
{"unlink-first", no_argument, 0, 'U'},
{"update", no_argument, 0, 'u'},
- {"use-compress-program", required_argument, 0, USE_COMPRESS_PROGRAM_OPTION},
-@@ -327,6 +330,7 @@
+ {"utc", no_argument, 0, UTC_OPTION },
+@@ -390,6 +393,7 @@ Operation modifiers:\n\
--overwrite overwrite existing files when extracting\n\
- --overwrite-dir overwrite directory metadata when extracting\n\
+ --no-overwrite-dir preserve metadata of existing directories\n\
-U, --unlink-first remove each file prior to extracting over it\n\
+ --no-unlink-first don't remove each file prior to extracting\n\
--recursive-unlink empty hierarchies prior to extracting directory\n\
-S, --sparse handle sparse files efficiently\n\
-O, --to-stdout extract files to standard output\n\
-@@ -510,6 +514,7 @@
+@@ -604,6 +608,7 @@ decode_options (int argc, char **argv)
owner_option = -1;
group_option = -1;
@@ -42,14 +42,14 @@ $NetBSD: patch-ab,v 1.8 2002/11/20 16:57:55 bouyer Exp $
backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX");
-@@ -843,6 +848,10 @@
-
- case 'U':
+@@ -916,6 +921,10 @@ decode_options (int argc, char **argv)
old_files_option = UNLINK_FIRST_OLD_FILES;
-+ break;
-+
+ break;
+
+ case NO_UNLINK_FIRST_OPTION:
+ old_files_option = 0;
++ break;
++
+ case UTC_OPTION:
+ utc_option = true;
break;
-
- case 'v':
diff --git a/archivers/gtar-base/patches/patch-ac b/archivers/gtar-base/patches/patch-ac
index bb9318f9f6d..d982644ed1c 100644
--- a/archivers/gtar-base/patches/patch-ac
+++ b/archivers/gtar-base/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.4 2004/04/24 23:07:53 tv Exp $
+$NetBSD: patch-ac,v 1.5 2004/09/27 16:12:04 wiz Exp $
---- src/system.h.orig Sat Apr 24 19:05:49 2004
+--- src/system.h.orig 2004-05-11 10:11:49.000000000 +0200
+++ src/system.h
-@@ -309,6 +309,9 @@ extern int errno;
+@@ -282,6 +282,9 @@ extern int errno;
#if MAJOR_IN_MKDEV
# include <sys/mkdev.h>
diff --git a/archivers/gtar-base/patches/patch-ae b/archivers/gtar-base/patches/patch-ae
index 90ca861f880..50dfc2bcddf 100644
--- a/archivers/gtar-base/patches/patch-ae
+++ b/archivers/gtar-base/patches/patch-ae
@@ -1,21 +1,18 @@
-$NetBSD: patch-ae,v 1.4 2002/11/20 16:57:55 bouyer Exp $
+$NetBSD: patch-ae,v 1.5 2004/09/27 16:12:04 wiz Exp $
---- Makefile.in.orig Wed Sep 26 22:35:05 2001
-+++ Makefile.in Sun Nov 17 18:32:32 2002
-@@ -102,10 +102,15 @@
- rmt_LDADD = @rmt_LDADD@
- tar_LDADD = @tar_LDADD@
-
-+OPSYS!= uname -s
- AUTOMAKE_OPTIONS = gnits dist-bzip2 dist-shar
+--- Makefile.in.orig 2004-05-11 10:13:22.000000000 +0200
++++ Makefile.in
+@@ -229,7 +229,12 @@ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = ChangeLog.1 PORTS
--SUBDIRS = doc intl lib m4 src scripts po tests
+-SUBDIRS = doc lib src scripts po tests
++OPSYS!= uname -s
+.if ${OPSYS} == "Darwin"
-+SUBDIRS = intl lib m4 src scripts tests
++SUBDIRS = lib src scripts tests
+.else
-+SUBDIRS = intl lib m4 src scripts po tests
++SUBDIRS = lib src scripts po tests
+.endif
- subdir = .
- ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
- mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
diff --git a/archivers/gtar-base/patches/patch-af b/archivers/gtar-base/patches/patch-af
deleted file mode 100644
index cf2e85e49ce..00000000000
--- a/archivers/gtar-base/patches/patch-af
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-af,v 1.1 2002/11/20 16:57:55 bouyer Exp $
-This is based on, tar-dots.patch from RedHat tar-1.13.25-4.7.1.src.rpm, and
-http://www.security.nnov.ru/files/archive/tar-1.13.19.patch
-
---- src/misc.c.orig Mon Nov 11 15:09:06 2002
-+++ src/misc.c Mon Nov 11 15:14:34 2002
-@@ -203,17 +203,25 @@
- {
- char const *p = name + FILESYSTEM_PREFIX_LEN (name);
-
-+ if (ISSLASH (*p)) return 1;
- for (;;)
- {
-- if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
-+ if (p[0] == '.' && p[1] == '.' && (!p[2] || ISSLASH (p[2])))
- return 1;
-
- do
- {
-- if (! *p++)
-+ if (! *p)
- return 0;
- }
-- while (! ISSLASH (*p));
-+ while (! ISSLASH (*p++));
-+
-+ do
-+ {
-+ if (! *p++)
-+ return 0;
-+ }
-+ while ( ISSLASH (*p));
- }
- }
-
diff --git a/archivers/gtar-base/patches/patch-ag b/archivers/gtar-base/patches/patch-ag
index f276b9178b9..14d33bb4a09 100644
--- a/archivers/gtar-base/patches/patch-ag
+++ b/archivers/gtar-base/patches/patch-ag
@@ -1,10 +1,9 @@
-$NetBSD: patch-ag,v 1.1 2002/11/20 16:57:55 bouyer Exp $
-This include tar-1.13.19-absolutenames.patch, from RedHat tar-1.13.25-4.7.1.src.rpm
+$NetBSD: patch-ag,v 1.2 2004/09/27 16:12:04 wiz Exp $
---- src/extract.c.orig Sun Nov 17 18:35:32 2002
-+++ src/extract.c Sun Nov 17 18:35:09 2002
-@@ -180,7 +180,11 @@
- mode = current_stat_info->st_mode ^ invert_permissions;
+--- src/extract.c.orig 2004-04-05 09:23:51.000000000 +0200
++++ src/extract.c
+@@ -182,7 +182,11 @@ set_mode (char const *file_name,
+ mode = cur_info->st_mode ^ invert_permissions;
}
+#if (defined (__NetBSD__) && NetBSD > 199706 && !defined(NetBSD1_2))
@@ -15,7 +14,7 @@ This include tar-1.13.19-absolutenames.patch, from RedHat tar-1.13.25-4.7.1.src.
chmod_error_details (file_name, mode);
}
-@@ -216,7 +220,12 @@
+@@ -222,7 +226,12 @@ set_stat (char const *file_name,
{
struct utimbuf utimbuf;
@@ -28,7 +27,7 @@ This include tar-1.13.19-absolutenames.patch, from RedHat tar-1.13.25-4.7.1.src.
{
/* We do the utime before the chmod because some versions of utime are
broken and trash the modes of the file. */
-@@ -229,6 +238,7 @@
+@@ -235,6 +244,7 @@ set_stat (char const *file_name,
/* FIXME: incremental_option should set ctime too, but how? */
@@ -36,7 +35,7 @@ This include tar-1.13.19-absolutenames.patch, from RedHat tar-1.13.25-4.7.1.src.
if (incremental_option)
utimbuf.actime = stat_info->st_atime;
else
-@@ -237,6 +247,16 @@
+@@ -243,6 +253,16 @@ set_stat (char const *file_name,
utimbuf.modtime = stat_info->st_mtime;
if (utime (file_name, &utimbuf) < 0)
@@ -53,24 +52,3 @@ This include tar-1.13.19-absolutenames.patch, from RedHat tar-1.13.25-4.7.1.src.
utime_error (file_name);
else
{
-@@ -1019,10 +1039,19 @@
- {
- struct stat st1, st2;
- int e;
-+ size_t skiplinkcrud;
-+
-+ if (absolute_names_option)
-+ skiplinkcrud = 0;
-+ else {
-+ skiplinkcrud = FILESYSTEM_PREFIX_LEN (current_link_name);
-+ while (ISSLASH (current_link_name[skiplinkcrud]))
-+ skiplinkcrud++;
-+ }
-
- /* MSDOS does not implement links. However, djgpp's link() actually
- copies the file. */
-- status = link (current_link_name, CURRENT_FILE_NAME);
-+ status = link (current_link_name + skiplinkcrud, CURRENT_FILE_NAME);
-
- if (status == 0)
- {