pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/doc Update gcpio to 2.5. Based on patches submitted b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a6d958f2f8d
branches:  trunk
changeset: 476323:6a6d958f2f8d
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Jun 06 21:29:33 2004 +0000

description:
Update gcpio to 2.5.  Based on patches submitted by reed@ in PR pkg/20799
and sketch@ in PR pkg/22851.

Also apply a patch from Debian Linux to fix the ustar problem (Debian
bug #238177).  Reported by Christian Weisgerber on tech-pkg@.

Changes:
  * bug fixes from Debian, Red Hat, and SuSE GNU/Linux Distribution patches
  * --rsh-command option

diffstat:

 archivers/gcpio/DESCR            |   3 ++
 archivers/gcpio/Makefile         |  13 +++++++----
 archivers/gcpio/distinfo         |  15 ++++++++-----
 archivers/gcpio/patches/patch-aa |  11 ++++++++-
 archivers/gcpio/patches/patch-ab |   8 +++---
 archivers/gcpio/patches/patch-ac |  13 +----------
 archivers/gcpio/patches/patch-ad |  12 ++++++++++
 archivers/gcpio/patches/patch-ae |  15 +++++++++++++
 archivers/gcpio/patches/patch-af |  45 ++++++++++++++++++++++++++++++++++++++++
 doc/TODO                         |   3 +-
 10 files changed, 108 insertions(+), 30 deletions(-)

diffs (230 lines):

diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/DESCR
--- a/archivers/gcpio/DESCR     Sun Jun 06 19:48:38 2004 +0000
+++ b/archivers/gcpio/DESCR     Sun Jun 06 21:29:33 2004 +0000
@@ -1,3 +1,6 @@
 GNU cpio, originally shipped as NetBSD's "cpio" up to version 1.3, is a
 full-featured cpio command that can access remote and local magnetic tapes,
 and both tar and cpio format archives in files or on tapes.
+
+This package does not include the mt (control magnetic tape drive
+operation) or rmt commands.
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/Makefile
--- a/archivers/gcpio/Makefile  Sun Jun 06 19:48:38 2004 +0000
+++ b/archivers/gcpio/Makefile  Sun Jun 06 21:29:33 2004 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2004/03/11 18:03:49 xtraeme Exp $
+# $NetBSD: Makefile,v 1.21 2004/06/06 21:29:33 minskim Exp $
 #
 
-DISTNAME=       cpio-2.4.2
-PKGNAME=       gcpio-2.4.2
-PKGREVISION=   1
+DISTNAME=       cpio-2.5
+PKGNAME=       g${DISTNAME}
 CATEGORIES=    archivers
 MASTER_SITES=   ${MASTER_SITE_GNU:=cpio/}
 
@@ -13,12 +12,16 @@
 
 USE_BUILDLINK3=        yes
 GNU_CONFIGURE= yes
-LIBS+=         -lgnumalloc
+USE_MAKEINFO=  yes
 
 INFO_FILES=    cpio.info
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "NetBSD"
+LIBS+=         -lgnumalloc
+.endif
+
 .if defined(GNU_PROGRAM_PREFIX)
 CONFIGURE_ARGS+=       --program-prefix=${GNU_PROGRAM_PREFIX}
 .endif
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/distinfo
--- a/archivers/gcpio/distinfo  Sun Jun 06 19:48:38 2004 +0000
+++ b/archivers/gcpio/distinfo  Sun Jun 06 21:29:33 2004 +0000
@@ -1,7 +1,10 @@
-$NetBSD: distinfo,v 1.4 2003/03/16 00:17:23 wiz Exp $
+$NetBSD: distinfo,v 1.5 2004/06/06 21:29:33 minskim Exp $
 
-SHA1 (cpio-2.4.2.tar.gz) = 88e557b2e14ad7b575554473e4ef4624a993b71f
-Size (cpio-2.4.2.tar.gz) = 185281 bytes
-SHA1 (patch-aa) = 36f3287ea0a64ac0eb085335ef0ab6661e1458c7
-SHA1 (patch-ab) = aa50963702198b42345aa906f387b89adad2b9b0
-SHA1 (patch-ac) = 372b5fe8bb22a609c22089c78f67387e66436372
+SHA1 (cpio-2.5.tar.gz) = d5908ee20484f092e591a430620feec33060528c
+Size (cpio-2.5.tar.gz) = 185480 bytes
+SHA1 (patch-aa) = 2d6b714be46f26782b1a6e6af47710c6e20f50b8
+SHA1 (patch-ab) = e3529142851ebe87b6df37ab33571209512b0f17
+SHA1 (patch-ac) = 404dcc134a0c8b9007a3efdc8caf6b36efcf125b
+SHA1 (patch-ad) = 854df599fa330ae2b07ab6cae4c2a1f2e0988ff5
+SHA1 (patch-ae) = 5de604f8278756e1ef8d4b72f9cd7638cb0496ab
+SHA1 (patch-af) = d42ed286fa508dc2be2415614412cac8929f19f8
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/patches/patch-aa
--- a/archivers/gcpio/patches/patch-aa  Sun Jun 06 19:48:38 2004 +0000
+++ b/archivers/gcpio/patches/patch-aa  Sun Jun 06 21:29:33 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.4 2003/03/16 00:17:24 wiz Exp $
+$NetBSD: patch-aa,v 1.5 2004/06/06 21:29:33 minskim Exp $
 
 --- Makefile.in.orig   Wed Dec 20 11:28:30 1995
 +++ Makefile.in
@@ -14,6 +14,15 @@
  
  
  # Where to install the cpio and mt executables.
+@@ -101,7 +101,7 @@
+ SRCS = copyin.c copyout.c copypass.c defer.c dstring.c global.c \
+ main.c tar.c util.c error.c getopt.c getopt1.c filemode.c version.c \
+ rtapelib.c dirname.c idcache.c makepath.c xmalloc.c stripslash.c \
+-userspec.c xstrdup.c bcopy.c fnmatch.c mkdir.c strdup.c
++userspec.c xstrdup.c bcopy.c fnmatch.c mkdir.c
+ OBJS = copyin.o copyout.o copypass.o defer.o dstring.o global.o \
+ main.o tar.o util.o error.o getopt.o getopt1.o filemode.o version.o \
+ $(RTAPELIB) dirname.o idcache.o makepath.o xmalloc.o stripslash.o \
 @@ -117,17 +117,14 @@
  configure configure.in mkinstalldirs install-sh $(MT_SRCS) rmt.c tcexparg.c \
  alloca.c cpio.texi cpio.info texinfo.tex
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/patches/patch-ab
--- a/archivers/gcpio/patches/patch-ab  Sun Jun 06 19:48:38 2004 +0000
+++ b/archivers/gcpio/patches/patch-ab  Sun Jun 06 21:29:33 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.3 2003/03/16 00:17:24 wiz Exp $
+$NetBSD: patch-ab,v 1.4 2004/06/06 21:29:33 minskim Exp $
 
---- configure.orig     Thu Dec 26 15:00:22 2002
-+++ configure  Thu Dec 26 15:01:33 2002
-@@ -2117,6 +2117,7 @@
+--- configure.orig     2001-08-29 22:37:00.000000000 -0500
++++ configure
+@@ -2118,6 +2118,7 @@ s%@LDFLAGS@%$LDFLAGS%g
  s%@LIBS@%$LIBS%g
  s%@exec_prefix@%$exec_prefix%g
  s%@prefix@%$prefix%g
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/patches/patch-ac
--- a/archivers/gcpio/patches/patch-ac  Sun Jun 06 19:48:38 2004 +0000
+++ b/archivers/gcpio/patches/patch-ac  Sun Jun 06 21:29:33 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.2 1998/08/07 10:35:48 agc Exp $
+$NetBSD: patch-ac,v 1.3 2004/06/06 21:29:33 minskim Exp $
 
 --- filetypes.h.orig   Sun Jul 19 01:53:46 1992
 +++ filetypes.h        Thu Mar  5 13:20:46 1998
@@ -8,14 +8,3 @@
  #endif
 -int lstat ();
 -int stat ();
---- main.c.orig        Wed Nov 30 19:24:21 1994
-+++ main.c     Thu Mar  5 13:22:28 1998
-@@ -492,7 +492,7 @@
-   bzero (zeros_512, 512);
- }
- 
--void
-+int
- main (argc, argv)
-      int argc;
-      char *argv[];
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/gcpio/patches/patch-ad  Sun Jun 06 21:29:33 2004 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1 2004/06/06 21:29:33 minskim Exp $
+
+--- error.c.orig       2001-12-05 22:52:45.000000000 -0600
++++ error.c
+@@ -68,7 +68,6 @@ static char *
+ private_strerror (errnum)
+      int errnum;
+ {
+-  extern char *sys_errlist[];
+   extern int sys_nerr;
+ 
+   if (errnum > 0 && errnum <= sys_nerr)
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/gcpio/patches/patch-ae  Sun Jun 06 21:29:33 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.1 2004/06/06 21:29:33 minskim Exp $
+
+--- mkdir.c.orig       2001-12-05 22:54:41.000000000 -0600
++++ mkdir.c
+@@ -51,8 +51,8 @@ extern int errno;
+ 
+ int
+ mkdir (dpath, dmode)
+-     char *dpath;
+-     int dmode;
++     const char *dpath;
++     unsigned int dmode;
+ {
+   int cpid, status;
+   struct stat statbuf;
diff -r 77e563bca36d -r 6a6d958f2f8d archivers/gcpio/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/gcpio/patches/patch-af  Sun Jun 06 21:29:33 2004 +0000
@@ -0,0 +1,45 @@
+$NetBSD: patch-af,v 1.1 2004/06/06 21:29:33 minskim Exp $
+
+--- tar.c.orig 2004-03-15 19:58:03.504727318 +0100
++++ tar.c      2004-03-15 19:59:41.803936327 +0100
+@@ -27,6 +27,7 @@
+ #include "tarhdr.h"
+ 
+ static void to_oct ();
++static void to_oct_no_nul ();
+ static char *stash_tar_linkname ();
+ static char *stash_tar_filename ();
+ 
+@@ -97,8 +98,8 @@
+   to_oct (file_hdr->c_mode, 8, tar_hdr->mode);
+   to_oct (file_hdr->c_uid, 8, tar_hdr->uid);
+   to_oct (file_hdr->c_gid, 8, tar_hdr->gid);
+-  to_oct (file_hdr->c_filesize, 12, tar_hdr->size);
+-  to_oct (file_hdr->c_mtime, 12, tar_hdr->mtime);
++  to_oct_no_nul (file_hdr->c_filesize, 12, tar_hdr->size);
++  to_oct_no_nul (file_hdr->c_mtime, 12, tar_hdr->mtime);
+ 
+   switch (file_hdr->c_mode & CP_IFMT)
+     {
+@@ -446,6 +447,21 @@
+     where[--digits] = ' ';
+ }
+ 
++/* Convert a number into a string of octal digits.
++   Convert long VALUE into a DIGITS-digit field at WHERE,
++   including a trailing space.  DIGITS==2 means
++   1 digit, and a space.
++*/
++
++static void
++to_oct_no_nul (value, digits, where)
++     register long value;
++     register int digits;
++     register char *where;
++{
++  to_oct (value, digits + 1, where);
++}
++
+ /* Return
+    2 if BUF is a valid POSIX tar header (the checksum is correct
+    and it has the "ustar" magic string),
diff -r 77e563bca36d -r 6a6d958f2f8d doc/TODO
--- a/doc/TODO  Sun Jun 06 19:48:38 2004 +0000
+++ b/doc/TODO  Sun Jun 06 21:29:33 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO,v 1.1816 2004/06/06 09:41:50 recht Exp $
+$NetBSD: TODO,v 1.1817 2004/06/06 21:29:33 minskim Exp $
 
 Suggested new packages
 ======================
@@ -231,7 +231,6 @@
        o fsviewer-0.2.5
        o gauche-0.8
        o gcc-3.4.0 [pkgsrc-wip]
-       o gcpio-2.5 [pkg/20799]
        o gcvs-1.0-1
        o gdb-6.1 [pkgsrc-wip]
        o generator-0.35



Home | Main Index | Thread Index | Old Index