pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/coreutils update to 5.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68e8d960403d
branches:  trunk
changeset: 469390:68e8d960403d
user:      recht <recht%pkgsrc.org@localhost>
date:      Sun Feb 22 21:32:18 2004 +0000

description:
update to 5.2.0

many fixes/new features, among them:

- nohup now always exits with status 127 when it finds an error,
  as POSIX requires; formerly it sometimes exited with status 1.

- Several programs (including cut, date, dd, env, hostname, nl, pr,
  stty, and tr) now always exit with status 1 when they find an error;
  formerly they sometimes exited with status 2.

- chgrp and chown now accept POSIX-mandated -L, -H, and -P options

- du now accepts -P (--no-dereference), for compatibility with du
  of NetBSD and for consistency with e.g., chown and chgrp

- date accepts a new option --rfc-2822, an alias for --rfc-822.

- `sha1sum --check' now accepts the BSD format for SHA1 message digests
  in addition to the BSD format for MD5 ones.

- md5sum --check now accepts the output of the BSD md5sum program, e.g.,
  MD5 (f) = d41d8cd98f00b204e9800998ecf8427e

- date -d DATE can now parse a DATE string like May-23-2003

- chown: `.' is no longer recognized as a separator in the OWNER:GROUP
  specifier on POSIX 1003.1-2001 systems.  If chown *was not* compiled
  on such a system, then it still accepts `.', by default.  If chown
  was compiled on a POSIX 1003.1-2001 system, then you may enable the
  old behavior by setting _POSIX2_VERSION=199209 in your environment.

(see NEWS for a complete list)

diffstat:

 sysutils/coreutils/Makefile         |    5 +-
 sysutils/coreutils/PLIST            |    6 +-
 sysutils/coreutils/distinfo         |   10 +-
 sysutils/coreutils/patches/patch-aa |    8 +-
 sysutils/coreutils/patches/patch-ab |  130 ------
 sysutils/coreutils/patches/patch-ac |  764 ------------------------------------
 6 files changed, 13 insertions(+), 910 deletions(-)

diffs (truncated from 973 to 300 lines):

diff -r 4256e8e3692c -r 68e8d960403d sysutils/coreutils/Makefile
--- a/sysutils/coreutils/Makefile       Sun Feb 22 21:21:43 2004 +0000
+++ b/sysutils/coreutils/Makefile       Sun Feb 22 21:32:18 2004 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2004/02/11 23:12:50 jmmv Exp $
+# $NetBSD: Makefile,v 1.15 2004/02/22 21:32:18 recht Exp $
 
-DISTNAME=      coreutils-5.0
-PKGREVISION=   4
+DISTNAME=      coreutils-5.2.0
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GNU:=coreutils/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 4256e8e3692c -r 68e8d960403d sysutils/coreutils/PLIST
--- a/sysutils/coreutils/PLIST  Sun Feb 22 21:21:43 2004 +0000
+++ b/sysutils/coreutils/PLIST  Sun Feb 22 21:32:18 2004 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2003/08/05 13:59:58 seb Exp $
+@comment $NetBSD: PLIST,v 1.3 2004/02/22 21:32:18 recht Exp $
+bin/${GNU_PROGRAM_PREFIX}[
 bin/${GNU_PROGRAM_PREFIX}basename
 bin/${GNU_PROGRAM_PREFIX}cat
 bin/${GNU_PROGRAM_PREFIX}chgrp
@@ -88,8 +89,6 @@
 bin/${GNU_PROGRAM_PREFIX}who
 bin/${GNU_PROGRAM_PREFIX}whoami
 bin/${GNU_PROGRAM_PREFIX}yes
-info/coreutils.info
-@comment belongs to libiconv: lib/charset.alias
 man/man1/${GNU_PROGRAM_PREFIX}basename.1
 man/man1/${GNU_PROGRAM_PREFIX}cat.1
 man/man1/${GNU_PROGRAM_PREFIX}chgrp.1
@@ -123,6 +122,7 @@
 man/man1/${GNU_PROGRAM_PREFIX}id.1
 man/man1/${GNU_PROGRAM_PREFIX}install.1
 man/man1/${GNU_PROGRAM_PREFIX}join.1
+man/man1/${GNU_PROGRAM_PREFIX}kill.1
 man/man1/${GNU_PROGRAM_PREFIX}link.1
 man/man1/${GNU_PROGRAM_PREFIX}ln.1
 man/man1/${GNU_PROGRAM_PREFIX}logname.1
diff -r 4256e8e3692c -r 68e8d960403d sysutils/coreutils/distinfo
--- a/sysutils/coreutils/distinfo       Sun Feb 22 21:21:43 2004 +0000
+++ b/sysutils/coreutils/distinfo       Sun Feb 22 21:32:18 2004 +0000
@@ -1,7 +1,5 @@
-$NetBSD: distinfo,v 1.4 2003/11/22 15:59:24 tron Exp $
+$NetBSD: distinfo,v 1.5 2004/02/22 21:32:18 recht Exp $
 
-SHA1 (coreutils-5.0.tar.bz2) = ce67aacedfc917a92b5be62dd32095393c2f220c
-Size (coreutils-5.0.tar.bz2) = 3952653 bytes
-SHA1 (patch-aa) = 352b6b8eeff29159ebdbae4929db75d243a19354
-SHA1 (patch-ab) = 02709d459c9d8b52b879feec4c7bae318e1538a4
-SHA1 (patch-ac) = 323a960e5506876f2222723f7b7dec1446c0c30c
+SHA1 (coreutils-5.2.0.tar.bz2) = cbfe111d30161520127f96980d069e0665c203b6
+Size (coreutils-5.2.0.tar.bz2) = 4242493 bytes
+SHA1 (patch-aa) = b5ee97f5ab19b4d7354c896036e9823feacc099a
diff -r 4256e8e3692c -r 68e8d960403d sysutils/coreutils/patches/patch-aa
--- a/sysutils/coreutils/patches/patch-aa       Sun Feb 22 21:21:43 2004 +0000
+++ b/sysutils/coreutils/patches/patch-aa       Sun Feb 22 21:32:18 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2003/04/10 13:18:36 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2004/02/22 21:32:18 recht Exp $
 
---- lib/Makefile.in.orig       2003-04-06 12:47:18.000000000 +0200
-+++ lib/Makefile.in    2003-04-06 12:48:17.000000000 +0200
-@@ -769,7 +769,7 @@
+--- lib/Makefile.in.orig       2004-02-08 21:12:49.000000000 +0100
++++ lib/Makefile.in    2004-02-21 10:58:58.000000000 +0100
+@@ -903,7 +903,7 @@
  
  install-data-am:
  
diff -r 4256e8e3692c -r 68e8d960403d sysutils/coreutils/patches/patch-ab
--- a/sysutils/coreutils/patches/patch-ab       Sun Feb 22 21:21:43 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,130 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2003/11/22 15:59:24 tron Exp $
-
---- lib/xmalloc.c.orig Thu Nov 21 21:39:59 2002
-+++ lib/xmalloc.c      Sat Nov 22 16:53:38 2003
-@@ -23,6 +23,7 @@
- 
- #if STDC_HEADERS
- # include <stdlib.h>
-+# include <string.h>
- #else
- void *calloc ();
- void *malloc ();
-@@ -43,6 +44,10 @@
- 
- /* The following tests require AC_PREREQ(2.54).  */
- 
-+#ifndef SIZE_MAX
-+# define SIZE_MAX ((size_t) -1)
-+#endif
-+
- #ifndef HAVE_MALLOC
- "you must run the autoconf test for a GNU libc compatible malloc"
- #endif
-@@ -58,6 +63,15 @@
- /* If non NULL, call this function when memory is exhausted. */
- void (*xalloc_fail_func) PARAMS ((void)) = 0;
- 
-+/* Return true if array of N objects, each of size S, cannot exist due
-+   to arithmetic overflow.  S must be nonzero.  */
-+
-+static inline int
-+array_size_overflow (size_t n, size_t s)
-+{
-+  return SIZE_MAX / s < n;
-+}
-+
- /* If XALLOC_FAIL_FUNC is NULL, or does return, display this message
-    before exiting when memory is exhausted.  Goes through gettext. */
- char const xalloc_msg_memory_exhausted[] = N_("memory exhausted");
-@@ -70,8 +84,20 @@
-   error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted));
-   /* The `noreturn' cannot be given to error, since it may return if
-      its first argument is 0.  To help compilers understand the
--     xalloc_die does terminate, call exit. */
--  exit (EXIT_FAILURE);
-+     xalloc_die does terminate, call abort.  */
-+  abort ();
-+}
-+
-+/* Allocate an array of N objects, each with S bytes of memory,
-+   dynamically, with error checking.  S must be nonzero.  */
-+
-+inline void *
-+xnmalloc (size_t n, size_t s)
-+{
-+  void *p;
-+  if (array_size_overflow (n, s) || ! (p = malloc (n * s)))
-+    xalloc_die ();
-+  return p;
- }
- 
- /* Allocate N bytes of memory dynamically, with error checking.  */
-@@ -79,10 +105,16 @@
- void *
- xmalloc (size_t n)
- {
--  void *p;
-+  return xnmalloc (n, 1);
-+}
- 
--  p = malloc (n);
--  if (p == 0)
-+/* Change the size of an allocated block of memory P to an array of N
-+   objects each of S bytes, with error checking.  S must be nonzero.  */
-+
-+inline void *
-+xnrealloc (void *p, size_t n, size_t s)
-+{
-+  if (array_size_overflow (n, s) || ! (p = realloc (p, n * s)))
-     xalloc_die ();
-   return p;
- }
-@@ -93,21 +125,39 @@
- void *
- xrealloc (void *p, size_t n)
- {
--  p = realloc (p, n);
--  if (p == 0)
--    xalloc_die ();
--  return p;
-+  return xnrealloc (p, n, 1);
- }
- 
--/* Allocate memory for N elements of S bytes, with error checking.  */
-+/* Allocate S bytes of zeroed memory dynamically, with error checking.
-+   There's no need for xnzalloc (N, S), since it would be equivalent
-+   to xcalloc (N, S).  */
-+
-+void *
-+xzalloc (size_t s)
-+{
-+  return memset (xmalloc (s), 0, s);
-+}
-+
-+/* Allocate zeroed memory for N elements of S bytes, with error
-+   checking.  S must be nonzero.  */
- 
- void *
- xcalloc (size_t n, size_t s)
- {
-   void *p;
--
--  p = calloc (n, s);
--  if (p == 0)
-+  /* Test for overflow, since some calloc implementations don't have
-+     proper overflow checks.  */
-+  if (array_size_overflow (n, s) || ! (p = calloc (n, s)))
-     xalloc_die ();
-   return p;
-+}
-+
-+/* Clone an object P of size S, with error checking.  There's no need
-+   for xnclone (P, N, S), since xclone (P, N * S) works without any
-+   need for an arithmetic overflow check.  */
-+
-+void *
-+xclone (void const *p, size_t s)
-+{
-+  return memcpy (xmalloc (s), p, s);
- }
diff -r 4256e8e3692c -r 68e8d960403d sysutils/coreutils/patches/patch-ac
--- a/sysutils/coreutils/patches/patch-ac       Sun Feb 22 21:21:43 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,764 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2003/11/05 11:54:47 tron Exp $
-
---- src/ls.c~  2003-03-20 00:01:51.000000000 +0100
-+++ src/ls.c   2003-11-05 00:34:17.000000000 +0100
-@@ -243,7 +243,7 @@
- 
- struct bin_str
-   {
--    int len;                  /* Number of bytes */
-+    size_t len;                       /* Number of bytes */
-     const char *string;               /* Pointer to the same */
-   };
- 
-@@ -265,15 +265,15 @@
- static void print_color_indicator (const char *name, mode_t mode, int linkok);
- static void put_indicator (const struct bin_str *ind);
- static int put_indicator_direct (const struct bin_str *ind);
--static int length_of_file_name_and_frills (const struct fileinfo *f);
-+static size_t length_of_file_name_and_frills (const struct fileinfo *f);
- static void add_ignore_pattern (const char *pattern);
- static void attach (char *dest, const char *dirname, const char *name);
- static void clear_files (void);
- static void extract_dirs_from_files (const char *dirname,
-                                    int ignore_dot_and_dot_dot);
- static void get_link_name (const char *filename, struct fileinfo *f);
--static void indent (int from, int to);
--static void init_column_info (void);
-+static void indent (size_t from, size_t to);
-+static size_t calculate_columns (int by_columns);
- static void print_current_files (void);
- static void print_dir (const char *name, const char *realname);
- static void print_file_name_and_frills (const struct fileinfo *f);
-@@ -319,10 +319,10 @@
- static struct fileinfo *files;  /* FIXME: rename this to e.g. cwd_file */
- 
- /* Length of block that `files' points to, measured in files.  */
--static int nfiles;  /* FIXME: rename this to e.g. cwd_n_alloc */
-+static size_t nfiles;  /* FIXME: rename this to e.g. cwd_n_alloc */
- 
- /* Index of first unused in `files'.  */
--static int files_index;  /* FIXME: rename this to e.g. cwd_n_used */
-+static size_t files_index;  /* FIXME: rename this to e.g. cwd_n_used */
- 
- /* When nonzero, in a color listing, color each symlink name according to the
-    type of file it points to.  Otherwise, color them according to the `ln'
-@@ -632,7 +632,7 @@
- 
- /* The number of chars per hardware tab stop.  Setting this to zero
-    inhibits the use of TAB characters for separating columns.  -T */
--static int tabsize;
-+static size_t tabsize;
- 
- /* Nonzero means we are listing the working directory because no
-    non-option arguments were given. */
-@@ -646,7 +646,7 @@
- /* The line length to use for breaking lines in many-per-line format.
-    Can be set with -w.  */
- 
--static int line_length;
-+static size_t line_length;
- 
- /* If nonzero, the file listing format requires that stat be called on
-    each file. */
-@@ -799,16 +799,16 @@
- /* Information about filling a column.  */
- struct column_info
- {
--  int valid_len;
--  int line_len;
--  int *col_arr;
-+  int valid_len;
-+  size_t line_len;
-+  size_t *col_arr;
- };
- 
- /* Array with information about column filledness.  */
- static struct column_info *column_info;
- 
- /* Maximum number of columns ever possible for this display.  */
--static int max_idx;
-+static size_t max_idx;
- 
- /* The minimum width of a colum is 3: 1 character for the name and 2
-    for the separating white space.  */
-@@ -904,18 +904,18 @@
- static void
- dired_dump_obstack (const char *prefix, struct obstack *os)
- {
--  int n_pos;
-+  size_t n_pos;
- 



Home | Main Index | Thread Index | Old Index