Index: branches/2019Q4/archivers/gcpio/Makefile =================================================================== --- branches/2019Q4/archivers/gcpio/Makefile (revision 517757) +++ branches/2019Q4/archivers/gcpio/Makefile (revision 517758) @@ -1,32 +1,33 @@ # $FreeBSD$ PORTNAME= cpio -PORTVERSION= 2.12 -PORTREVISION= 1 +PORTVERSION= 2.13 CATEGORIES= archivers MASTER_SITES= GNU PKGNAMEPREFIX= g MAINTAINER= naddy@FreeBSD.org COMMENT= GNU cpio copies files to and from archives LICENSE= GPLv3 + +TEST_DEPENDS= autom4te:devel/autoconf USES= cpe tar:bzip2 CPE_VENDOR= gnu GNU_CONFIGURE= yes CONFIGURE_ARGS= --program-prefix=g \ --with-rmt=/etc/rmt TEST_TARGET= check INFO= cpio OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls .include Index: branches/2019Q4/archivers/gcpio/distinfo =================================================================== --- branches/2019Q4/archivers/gcpio/distinfo (revision 517757) +++ branches/2019Q4/archivers/gcpio/distinfo (revision 517758) @@ -1,2 +1,3 @@ -SHA256 (cpio-2.12.tar.bz2) = 70998c5816ace8407c8b101c9ba1ffd3ebbecba1f5031046893307580ec1296e -SIZE (cpio-2.12.tar.bz2) = 1258605 +TIMESTAMP = 1573685109 +SHA256 (cpio-2.13.tar.bz2) = eab5bdc5ae1df285c59f2a4f140a98fc33678a0bf61bdba67d9436ae26b46f6d +SIZE (cpio-2.13.tar.bz2) = 1354559 Index: branches/2019Q4/archivers/gcpio/files/patch-po_Makefile.in.in =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-po_Makefile.in.in (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-po_Makefile.in.in (nonexistent) @@ -1,10 +0,0 @@ ---- po/Makefile.in.in.orig 2015-09-12 10:51:46 UTC -+++ po/Makefile.in.in -@@ -80,6 +80,7 @@ CATALOGS = @CATALOGS@ - POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot - POFILESDEPS_yes = $(POFILESDEPS_) - POFILESDEPS_no = -+PO_DEPENDS_ON_POT = - POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT)) - - DISTFILESDEPS_ = update-po Property changes on: branches/2019Q4/archivers/gcpio/files/patch-po_Makefile.in.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-src_global.c =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-src_global.c (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-src_global.c (nonexistent) @@ -1,12 +0,0 @@ ---- src/global.c.orig 2015-09-12 10:57:30 UTC -+++ src/global.c -@@ -187,6 +187,9 @@ bool to_stdout_option = false; - /* The name this program was run with. */ - char *program_name; - -+/* Extract files over symbolic links */ -+bool extract_over_symlinks; -+ - /* A pointer to either lstat or stat, depending on whether - dereferencing of symlinks is done for input files. */ - int (*xstat) (); Property changes on: branches/2019Q4/archivers/gcpio/files/patch-src_global.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-src_extern.h =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-src_extern.h (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-src_extern.h (nonexistent) @@ -1,10 +0,0 @@ ---- src/extern.h.orig 2015-09-12 10:57:30 UTC -+++ src/extern.h -@@ -96,6 +96,7 @@ extern char input_is_special; - extern char output_is_special; - extern char input_is_seekable; - extern char output_is_seekable; -+extern bool extract_over_symlinks; - extern int (*xstat) (); - extern void (*copy_function) (); - extern char *change_directory_option; Property changes on: branches/2019Q4/archivers/gcpio/files/patch-src_extern.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-src_copyin.c =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-src_copyin.c (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-src_copyin.c (nonexistent) @@ -1,78 +0,0 @@ ---- src/copyin.c.orig 2015-09-12 10:57:30 UTC -+++ src/copyin.c -@@ -695,6 +695,51 @@ copyin_link (struct cpio_file_stat *file - free (link_name); - } - -+ -+static int -+path_contains_symlink(char *path) -+{ -+ struct stat st; -+ char *slash; -+ char *nextslash; -+ -+ /* we got NULL pointer or empty string */ -+ if (!path || !*path) { -+ return false; -+ } -+ -+ slash = path; -+ -+ while ((nextslash = strchr(slash + 1, '/')) != NULL) { -+ slash = nextslash; -+ *slash = '\0'; -+ -+ if (lstat(path, &st) != 0) { -+ if (errno == ELOOP) { -+ /* ELOOP - too many symlinks */ -+ *slash = '/'; -+ return true; -+ } else if (errno == ENOMEM) { -+ /* No memory for lstat - terminate */ -+ xalloc_die(); -+ } else { -+ /* cannot lstat path - give up */ -+ *slash = '/'; -+ return false; -+ } -+ } -+ -+ if (S_ISLNK(st.st_mode)) { -+ *slash = '/'; -+ return true; -+ } -+ -+ *slash = '/'; -+ } -+ -+ return false; -+} -+ - static void - copyin_file (struct cpio_file_stat *file_hdr, int in_file_des) - { -@@ -1468,6 +1513,23 @@ process_copy_in () - { - /* Copy the input file into the directory structure. */ - -+ /* Can we write files over symlinks? */ -+ if (!extract_over_symlinks) -+ { -+ if (path_contains_symlink(file_hdr.c_name)) -+ { -+ /* skip the file */ -+ /* -+ fprintf(stderr, "Can't write over symlinks. Skipping %s\n", file_hdr.c_name); -+ tape_toss_input (in_file_des, file_hdr.c_filesize); -+ tape_skip_padding (in_file_des, file_hdr.c_filesize); -+ continue; -+ */ -+ /* terminate */ -+ error (PAXEXIT_FAILURE, 0, _("Can't write over symlinks: %s\n"), file_hdr.c_name); -+ } -+ } -+ - /* Do we need to rename the file? */ - if (rename_flag || rename_batch_file) - { Property changes on: branches/2019Q4/archivers/gcpio/files/patch-src_copyin.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-src_main.c =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-src_main.c (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-src_main.c (nonexistent) @@ -1,32 +0,0 @@ ---- src/main.c.orig 2015-09-12 10:57:30 UTC -+++ src/main.c -@@ -61,7 +61,8 @@ enum cpio_options { - TO_STDOUT_OPTION, - RENUMBER_INODES_OPTION, - IGNORE_DEVNO_OPTION, -- DEVICE_INDEPENDENT_OPTION -+ DEVICE_INDEPENDENT_OPTION, -+ EXTRACT_OVER_SYMLINKS - }; - - const char *program_authors[] = -@@ -243,6 +244,8 @@ static struct argp_option options[] = { - N_("Create leading directories where needed"), GRID+1 }, - {"no-preserve-owner", NO_PRESERVE_OWNER_OPTION, 0, 0, - N_("Do not change the ownership of the files"), GRID+1 }, -+ {"extract-over-symlinks", EXTRACT_OVER_SYMLINKS, 0, 0, -+ N_("Force writing over symbolic links"), GRID+1 }, - {"unconditional", 'u', NULL, 0, - N_("Replace all files unconditionally"), GRID+1 }, - {"sparse", SPARSE_OPTION, NULL, 0, -@@ -432,6 +435,10 @@ crc newc odc bin ustar tar (all-caps als - no_chown_flag = true; - break; - -+ case EXTRACT_OVER_SYMLINKS: /* --extract-over-symlinks */ -+ extract_over_symlinks = true; -+ break; -+ - case 'o': /* Copy-out mode. */ - if (copy_function != 0) - USAGE_ERROR ((0, 0, _("Mode already defined"))); Property changes on: branches/2019Q4/archivers/gcpio/files/patch-src_main.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-long.at =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-long.at (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-long.at (nonexistent) @@ -1,15 +0,0 @@ ---- tests/symlink-long.at.orig 2015-09-12 10:57:30 UTC -+++ tests/symlink-long.at -@@ -27,9 +27,11 @@ AT_CHECK([ - - # len(dirname) > READBUFSIZE - dirname= --for i in {1..52}; do -+i=1 -+while test $i -le 52; do - dirname="xxxxxxxxx/$dirname" - mkdir "$dirname" -+ i=`expr $i + 1` - done - ln -s "$dirname" x || AT_SKIP_TEST - Property changes on: branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-long.at ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-doc_cpio.1 =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-doc_cpio.1 (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-doc_cpio.1 (revision 517758) @@ -1,44 +1,41 @@ ---- doc/cpio.1.orig 2015-09-12 10:57:30 UTC +--- doc/cpio.1.orig 2018-06-21 07:12:05 UTC +++ doc/cpio.1 @@ -15,9 +15,9 @@ .\" along with GNU cpio. If not, see . - .TH CPIO 1 "December 1, 2014" "CPIO" "GNU CPIO" + .TH CPIO 1 "June 21, 2018" "CPIO" "GNU CPIO" .SH NAME -cpio \- copy files to and from archives +gcpio \- copy files to and from archives .SH SYNOPSIS -.B cpio +.B gcpio {\fB\-o\fR|\fB\-\-create\fR} [\fB\-0acvABLV\fR] [\fB\-C\fR \fIBYTES\fR] [\fB\-H\fR \fIFORMAT\fR] [\fB\-M\fR \fIMESSAGE\fR] [\fB\-O\fR [[\fIUSER\fB@\fR]\fIHOST\fB:\fR]\fIARCHIVE\fR] @@ -31,7 +31,7 @@ cpio \- copy files to and from archives [\fB\-\-force\-local\fR] [\fB\-\-rsh\-command=\fICOMMAND\fR] \fB<\fR \fIname-list\fR [\fB>\fR \fIarchive\fR] -.B cpio +.B gcpio {\fB\-i\fR|\fB\-\-extract\fR} [\fB\-bcdfmnrtsuvBSV\fR] [\fB\-C\fR \fIBYTES\fR] [\fB\-E\fR \fIFILE\fR] [\fB\-H\fR \fIFORMAT\fR] [\fB\-M\fR \fIMESSAGE\fR] [\fB\-R\fR [\fIUSER\fR][\fB:.\fR][\fIGROUP\fR]] -@@ -50,9 +50,10 @@ cpio \- copy files to and from archives - [\fB\-\-force\-local\fR] [\fB\-\-no\-absolute\-filenames\fR] [\fB\-\-sparse\fR] - [\fB\-\-only\-verify\-crc\fR] [\fB\-\-to\-stdout\fR] [\fB\-\-quiet\fR] +@@ -52,7 +52,7 @@ cpio \- copy files to and from archives [\fB\-\-rsh\-command=\fICOMMAND\fR] -+[\fB\-\-extract\-over\-symlinks\fR] [\fIpattern\fR...] [\fB<\fR \fIarchive\fR] -.B cpio +.B gcpio {\fB\-p\fR|\fB\-\-pass\-through\fR} [\fB\-0adlmuvLV\fR] [\fB\-R\fR [\fIUSER\fR][\fB:.\fR][\fIGROUP\fR]] [\fB\-\-null\fR] [\fB\-\-reset\-access\-time\fR] -@@ -63,7 +64,7 @@ cpio \- copy files to and from archives +@@ -63,7 +63,7 @@ cpio \- copy files to and from archives [\fB\-\-no\-preserve\-owner\fR] [\fB\-\-sparse\fR] \fIdestination-directory\fR \fB<\fR \fIname-list\fR -.B cpio +.B gcpio {\fB\-?\fR|\fB\-\-help\fR|\fB\-\-usage\fR|\fB\-\-version\fR} .SH NOTE This manpage is a short description of GNU \fBcpio\fR. For a detailed Index: branches/2019Q4/archivers/gcpio/files/patch-gnu_Makefile.in =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-gnu_Makefile.in (revision 517757) +++ branches/2019Q4/archivers/gcpio/files/patch-gnu_Makefile.in (revision 517758) @@ -1,11 +1,11 @@ ---- gnu/Makefile.in.orig 2015-09-12 11:11:14 UTC +--- gnu/Makefile.in.orig 2019-11-06 07:29:32 UTC +++ gnu/Makefile.in -@@ -2077,7 +2077,7 @@ inttypes.h: inttypes.in.h $(top_builddir +@@ -2129,7 +2129,7 @@ inttypes.h: inttypes.in.h $(top_builddir)/config.statu # avoid installing it. all-local: charset.alias ref-add.sed ref-del.sed -install-exec-local: install-exec-localcharset +install-exec-local: install-exec-localcharset: all-local if test $(GLIBC21) = no; then \ case '$(host_os)' in \ Index: branches/2019Q4/archivers/gcpio/files/patch-src_util.c =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-src_util.c (nonexistent) +++ branches/2019Q4/archivers/gcpio/files/patch-src_util.c (revision 517758) @@ -0,0 +1,23 @@ +https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=df55fb19be545e22d023950263ed5d0756edf81e + +--- src/util.c.orig 2019-11-03 15:07:23 UTC ++++ src/util.c +@@ -1140,8 +1140,16 @@ stat_to_cpio (struct cpio_file_stat *hdr, struct stat + hdr->c_nlink = st->st_nlink; + hdr->c_uid = CPIO_UID (st->st_uid); + hdr->c_gid = CPIO_GID (st->st_gid); +- hdr->c_rdev_maj = major (st->st_rdev); +- hdr->c_rdev_min = minor (st->st_rdev); ++ if (S_ISBLK (st->st_mode) || S_ISCHR (st->st_mode)) ++ { ++ hdr->c_rdev_maj = major (st->st_rdev); ++ hdr->c_rdev_min = minor (st->st_rdev); ++ } ++ else ++ { ++ hdr->c_rdev_maj = 0; ++ hdr->c_rdev_min = 0; ++ } + hdr->c_mtime = st->st_mtime; + hdr->c_filesize = st->st_size; + hdr->c_chksum = 0; Property changes on: branches/2019Q4/archivers/gcpio/files/patch-src_util.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-bad-length.at =================================================================== --- branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-bad-length.at (nonexistent) +++ branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-bad-length.at (revision 517758) @@ -0,0 +1,11 @@ +--- tests/symlink-bad-length.at.orig 2019-11-13 23:07:23 UTC ++++ tests/symlink-bad-length.at +@@ -44,7 +44,7 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + # but that could hurt backward compatibility. + + AT_CHECK([ +-base64 -d ARCHIVE.base64 > ARCHIVE || AT_SKIP_TEST ++b64decode -r ARCHIVE.base64 > ARCHIVE || AT_SKIP_TEST + TZ=UTC cpio -ntv < ARCHIVE 2>stderr + cat stderr | grep -v \ + -e 'stored filename length is out of range' \ Property changes on: branches/2019Q4/archivers/gcpio/files/patch-tests_symlink-bad-length.at ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2019Q4/archivers/gcpio/pkg-plist =================================================================== --- branches/2019Q4/archivers/gcpio/pkg-plist (revision 517757) +++ branches/2019Q4/archivers/gcpio/pkg-plist (revision 517758) @@ -1,27 +1,28 @@ bin/gcpio man/man1/gcpio.1.gz %%NLS%%share/locale/da/LC_MESSAGES/cpio.mo %%NLS%%share/locale/de/LC_MESSAGES/cpio.mo %%NLS%%share/locale/es/LC_MESSAGES/cpio.mo %%NLS%%share/locale/fi/LC_MESSAGES/cpio.mo %%NLS%%share/locale/fr/LC_MESSAGES/cpio.mo %%NLS%%share/locale/ga/LC_MESSAGES/cpio.mo %%NLS%%share/locale/gl/LC_MESSAGES/cpio.mo %%NLS%%share/locale/hr/LC_MESSAGES/cpio.mo %%NLS%%share/locale/hu/LC_MESSAGES/cpio.mo %%NLS%%share/locale/id/LC_MESSAGES/cpio.mo %%NLS%%share/locale/it/LC_MESSAGES/cpio.mo %%NLS%%share/locale/ja/LC_MESSAGES/cpio.mo %%NLS%%share/locale/ko/LC_MESSAGES/cpio.mo %%NLS%%share/locale/nl/LC_MESSAGES/cpio.mo %%NLS%%share/locale/pl/LC_MESSAGES/cpio.mo +%%NLS%%share/locale/pt/LC_MESSAGES/cpio.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/cpio.mo %%NLS%%share/locale/ro/LC_MESSAGES/cpio.mo %%NLS%%share/locale/ru/LC_MESSAGES/cpio.mo %%NLS%%share/locale/sr/LC_MESSAGES/cpio.mo %%NLS%%share/locale/sv/LC_MESSAGES/cpio.mo %%NLS%%share/locale/tr/LC_MESSAGES/cpio.mo %%NLS%%share/locale/uk/LC_MESSAGES/cpio.mo %%NLS%%share/locale/vi/LC_MESSAGES/cpio.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/cpio.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/cpio.mo Index: branches/2019Q4 =================================================================== --- branches/2019Q4 (revision 517757) +++ branches/2019Q4 (revision 517758) Property changes on: branches/2019Q4 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r517705