Commit graph

60 commits

Author SHA1 Message Date
asau
c9dade7154 Conflicts with gnuls (misc/gnuls), as noted by Mihkel Ader in PR 41876.
Bump revision.
2009-08-12 13:36:06 +00:00
joerg
7228bca06e Fix build on DragonFly. From YONETANI Tomokazu in PR 41366. 2009-06-12 15:09:46 +00:00
dholland
4cfef9f8ea Hack around misuse of math.h. From Heath Caldwell in PR 41350.
Nominally a build fix, but bump PKGREVISION as a precaution.
2009-05-17 23:11:21 +00:00
tron
5c8a5414e1 Add build fix for Solaris taken from
http://www.nabble.com/coreutils-6.12-fails-to-build-on-Solaris-td20137586.html
as suggested by Tim Zingelman in private e-mail.
2008-12-02 10:16:30 +00:00
tron
3b78baf1a5 Update "coreutils" package to version 6.12. Changes since version 6.11:
- chcon, runcon: --help output now includes the bug-reporting address
- cp -p copies permissions more portably.  For example, on MacOS X 10.5,
  "cp -p some-fifo some-file" no longer fails while trying to copy the
  permissions from the some-fifo argument.
- id with no options now prints the SELinux context only when invoked
  with no USERNAME argument.
- id and groups once again print the AFS-specific nameless group-ID (PAG).
  Printing of such large-numbered, kernel-only (not in /etc/group) group-IDs
  was suppressed in 6.11 due to ignorance that they are useful.
- uniq: avoid subtle field-skipping malfunction due to isblank misuse.
  In some locales on some systems, isblank(240) (aka &nbsp) is nonzero.
  On such systems, uniq --skip-fields=N would fail to skip the proper
  number of fields for some inputs.
- tac: avoid segfault with --regex (-r) and multiple files, e.g.,
  "echo > x; tac -r x x".
- install once again sets SELinux context, when possible
2008-10-29 22:34:18 +00:00
tnn
68c71b7daf Reach over from misc/gnuls to sysutils/coreutils for common logic and
patches. Updates gnuls to 6.11 and makes it track coreutils.
2008-05-15 20:01:03 +00:00
tron
26c774fd7c Update "coreutils" package to version 6.11. Changes since version 6.10:
- "cp -fR fifo E" now succeeds with an existing E.  Before this fix, using
  -fR to copy a fifo or "special" file onto an existing file would fail
  with EEXIST.  Now, it once again unlinks the destination before trying
  to create the destination file.  [bug introduced in coreutils-5.90]
- dd once again works with unnecessary options like if=/dev/stdin and
  of=/dev/stdout.  [bug introduced in fileutils-4.0h]
- id now uses getgrouplist, when possible.  This results in
  much better performance when there are many users and/or groups.
- ls no longer segfaults on files in /proc when linked with an older version
  of libselinux.  E.g., ls -l /proc/sys would dereference a NULL pointer.
- md5sum would segfault for invalid BSD-style input, e.g.,
  echo 'MD5 (' | md5sum -c -  Now, md5sum ignores that line.
  sha1sum, sha224sum, sha384sum, and sha512sum are affected, too.
  [bug introduced in coreutils-5.1.0]
- md5sum -c would accept a NUL-containing checksum string like "abcd\0..."
  and would unnecessarily read and compute the checksum of the named file,
  and then compare that checksum to the invalid one: guaranteed to fail.
  Now, it recognizes that the line is not valid and skips it.
  sha1sum, sha224sum, sha384sum, and sha512sum are affected, too.
  [bug present in the original version, in coreutils-4.5.1, 1995]
- "mkdir -Z x dir" no longer segfaults when diagnosing invalid context "x"
  mkfifo and mknod would fail similarly.  Now they're fixed.
- mv would mistakenly unlink a destination file before calling rename,
  when the destination had two or more hard links.  It no longer does that.
  [bug introduced in coreutils-5.3.0]
- "paste -d'\' file" no longer overruns memory (heap since coreutils-5.1.2,
  stack before then) [bug present in the original version, in 1992]
- "pr -e" with a mix of backspaces and TABs no longer corrupts the heap
  [bug present in the original version, in 1992]
- "ptx -F'\' long-file-name" would overrun a malloc'd buffer and corrupt
  the heap.  That was triggered by a lone backslash (or odd number of them)
  at the end of the option argument to --flag-truncation=STRING (-F),
  --word-regexp=REGEXP (-W), or --sentence-regexp=REGEXP (-S).
- "rm -r DIR" would mistakenly declare to be "write protected" -- and
  prompt about -- full DIR-relative names longer than MIN (PATH_MAX, 8192).
- "rmdir --ignore-fail-on-non-empty" detects and ignores the failure
  in more cases when a directory is empty.
- "seq -f % 1" would issue the erroneous diagnostic "seq: memory exhausted"
  rather than reporting the invalid string format.
  [bug introduced in coreutils-6.0]
- join now verifies that the inputs are in sorted order.  This check can
  be turned off with the --nocheck-order option.
- sort accepts the new option --sort=WORD, where WORD can be one of
  general-numeric, month, numeric or random.  These are equivalent to the
  options --general-numeric-sort/-g, --month-sort/-M, --numeric-sort/-n
  and --random-sort/-R, resp.
- id and groups work around an AFS-related bug whereby those programs
  would print an invalid group number, when given no user-name argument.
- ls --color no longer outputs unnecessary escape sequences
- seq gives better diagnostics for invalid formats.
- install, mkdir, rmdir and split now write --verbose output to stdout,
  not to stderr.
2008-05-13 09:22:46 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
tnn
cd15aa65a3 Conflict with sysutils/mktemp iff ${GNU_PROGRAM_PREFIX} == "" 2008-03-08 01:09:50 +00:00
tnn
db2fe5ff53 Update to coreutils-6.10.
New tools:
* gmktemp - GNU implementation of mktemp(1)
* gchcon  - change the SELinux security context of a file
* gruncon - run a program in a different SELinux security context

Programs now default disabled by upstream (thus not installed):
* ghostname
* gsu (XXX: could make this a PKG_OPTION if requested)

Also assorted bugfixes.
2008-03-08 01:06:52 +00:00
wiz
542e619325 Standardize statvfs test. From Sergey Svishchev. 2007-12-02 12:55:08 +00:00
tron
4b7031b19d Don't try to use ACLs under Mac OS X Leopard. acl_get_fd(3) return ENOENT
all the time which causes "gcp" and "gmv" to complain a lot.
Bump package revision because of this fix.
2007-11-26 15:40:45 +00:00
tron
5321b4a2c4 Simply check for Mac OS X Leopard. 2007-11-26 09:35:39 +00:00
tron
6b9661cc2b Use work around from "bug-gnulib" mailing list to fix build problem
under Mac OS X Leopard.
2007-11-26 00:52:32 +00:00
tron
7e3aed184e Override the auto detection of a "thread-safe mkdir -p" (whatever that is)
to "${MKDIR}". "configure" will otherwise decide to use "gmkdir -p" if an
older version of the "coreutils" package is already installed. But during
the install stage the old "gmkdir" binary will have been removed by
"pkg_delete" and the installation fails.
2007-07-19 09:07:43 +00:00
tnn
4218988cea Update to coreutils-6.9 and reset maintainer to tech-pkg@
This is a major update from 5.2.1 and the ChangeLog is far too long to
include here. The update includes many bugfixes, POSIX.1 conformance fixes,
various GNU extensions to command line syntax, translations and some new
tools: gbase64, gsha224sum, gsha256sum, gsha384sum, gsha512sum, gshuf.
2007-07-18 11:25:19 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
wiz
a4354ee7ad Some teTeX2-removal cleanup. 2006-08-14 08:39:51 +00:00
minskim
fa5157ed20 Remove references to teTeX1. 2006-05-13 03:44:23 +00:00
jlam
ea5f9f80b6 Strip ${PKGLOCALEDIR} from PLISTs of packages that already obey
PKGLOCALEDIR and which install their locale files directly under
${PREFIX}/${PKGLOCALEDIR} and sort the PLIST file entries.  From now
on, pkgsrc/mk/plist/plist-locale.awk will automatically handle
transforming the PLIST to refer to the correct locale directory.
2006-04-17 07:07:11 +00:00
jlam
1cf9796f3c BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete. Replace with
USE_TOOLS+=msgfmt.
2006-04-13 18:23:29 +00:00
jlam
90bc26e8c2 List info files directly in the PLIST and honor PKG{INFO,MAN}DIR. 2006-04-07 19:54:16 +00:00
wiz
1e2c1bec14 pkglint cleanup. Fix CONFLICTS pattern to include [0-9] at the end. 2006-03-12 12:37:30 +00:00
wiz
e66223304a Fix graphviz CONFLICTS line -- gpr was renamed to
gvpr in 1.12. Closes PR 33093 by Joern Clausen.
2006-03-12 12:36:01 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
joerg
c746cd1e56 In ls.c, use d_type field only, if DTTOIF is defined as well.
In paste.c, do real boundary checks and consider NULL FILE pointers as
closed files. This replaces use of global dummy FILEs, which is not
possible on DragonFly, since FILE is incompletly.
In configure, include stdio.h when checking for __fpending, since
the prototype is defined there on DragonFly.
2006-01-09 22:45:08 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
tron
a8e8d82674 Change version check to figure out whether NetBSD supports the statvfs(2)
systen call. We now assumes that it only exists in NetBSD 2.99.x and
newer. This will avoid build problems under the upcoming NetBSD 2.1
release. Mark this package as unusable for NetBSD-2.0[D-H]-* (a few
very old NetBSD-current versions which have statvfs(2) but a version
number smaller than 2.99.x).
2005-08-28 09:07:21 +00:00
jlam
3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
hubertf
d5559270da The 'readlink' conflict is only in teTeX 1 & 2, not in 3 ("kpsereadlink").
Adjust CONFLICTS.
2005-04-02 20:38:45 +00:00
tv
c9a384ec9a Make build and run on Interix:
* Add check for sync(2) and setgroups(3), and don't use these if they
  don't exist on the host.

* Interix has a ... Special ... way of doing the "su" thing.

* Implement Interix-specific portion of mountlist.c.
2005-03-21 14:44:08 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
minskim
54f55b7988 Use ROOT_USER instead of hardcoding root. 2004-12-28 08:55:31 +00:00
adam
f93adc306b Fixed PLIST to include locale 2004-12-06 16:00:57 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
tron
00cc25d2c4 Make this build under NetBSD 2.0D and above with statvfs(2).
This fixes PR pkg/25475 Kibum Han.
2004-05-18 19:07:57 +00:00
snj
a20d0f029c Convert to buildlink3. 2004-04-25 03:33:12 +00:00
recht
071dd1da05 update to 5.2.1
** Bug fixes

  mv could mistakenly fail to preserve hard links when moving two
  or more arguments between partitions.

  `cp --sparse=always F /dev/hdx' no longer tries to use lseek to create
  holes in the destination.

  nohup now sets the close-on-exec flag for its copy of the stderr file
  descriptor.  This avoids some nohup-induced hangs.  For example, before
  this change, if you ran `ssh localhost', then `nohup sleep 600 </dev/null &',
  and then exited that remote shell, the ssh session would hang until the
  10-minute sleep terminated.  With the fixed nohup, the ssh session
  terminates immediately.

  `expr' now conforms to POSIX better:

    Integers like -0 and 00 are now treated as zero.

    The `|' operator now returns 0, not its first argument, if both
    arguments are null or zero.  E.g., `expr "" \| ""' now returns 0,
    not the empty string.

    The `|' and `&' operators now use short-circuit evaluation, e.g.,
    `expr 1 \| 1 / 0' no longer reports a division by zero.

** New features

  `chown user.group file' now has its traditional meaning even when
  conforming to POSIX 1003.1-2001, so long as no user has a name
  containing `.' that happens to equal `user.group'.
2004-03-29 09:22:50 +00:00
recht
56faec790e Add a comment why coreutils conflicts with databases/geneweb.
While at it combine all GNU_PROGRAM_PREFIX conflicts in a single if.
2004-03-07 11:31:34 +00:00
grant
e11b7bbbba conflict with graphics/graphviz, which installs a program named 'gpr'. 2004-02-24 14:11:36 +00:00
recht
93c2eb8152 Add a conflict on databases/geneweb if GNU_PROGRAM_PREFIX == "g".
Addresses PR 23941 by Chris Pinnock.
2004-02-22 21:44:33 +00:00
recht
090d17952c 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)
2004-02-22 21:32:18 +00:00
jmmv
6099983cd1 Conflict with linuxls; and sort entries in variable. 2004-02-11 23:12:50 +00:00
recht
d2a7d5928f Don't install (g)su with the setuid bit on NetBSD, FreeBSD and OpenBSD.
Bump PKGREVISION.
2004-01-17 00:14:14 +00:00
tron
01a1a2de88 Recreate patch because Mac OS X's patch refuses to apply it. 2003-11-22 15:59:24 +00:00
tron
494f62f029 Don't use "stdbool.h" because NetBSD 1.6 and 1.6.x (and probably other
platforms) don't have it.
2003-11-05 11:54:47 +00:00
recht
0c58bd1726 Fix two security issues:
1.)
An integer overflow in ls in the fileutils or coreutils packages may allow
local users to cause a denial of service or execute arbitrary code via a
large -w value, which could be remotely exploited via applications that use
ls, such as wu-ftpd.

2.)
ls in the fileutils or coreutils packages allows local users to consume a
large amount of memory via a large -w value, which can be remotely exploited
via applications that use ls, such as wu-ftpd.

See
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0853
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0854
and the original report
http://www.guninski.com/binls.html
for details.

Patches taken from Red Hat's Security Advisory RHSA-2003:309-01.

reported by reed@
bump PKGREVISION
2003-11-05 00:05:06 +00:00
recht
44917e36b8 Use my NetBSD.org email address. 2003-09-14 18:13:48 +00:00
seb
56b682547a USE_NEW_TEXINFO is unnecessary now. 2003-08-09 10:59:08 +00:00