Up to [cvs.NetBSD.org] / pkgsrc / sysutils / coreutils / patches
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
coreutils: fix two test failures using upstream patches Bump PKGREVISION.
coreutils: update to 9.10. * Noteworthy changes in release 9.10 (2026-02-04) [stable] ** Bug fixes cp, install, and mv no longer enter an infinite loop copying sparse files with SEEK_HOLE. E.g., this was seen on ext4 when copying sparse files with extents that are being actively updated, and copy offload is not being used. [bug introduced in coreutils-9.9] 'date' no longer fails with format directives that return an empty string. [bug introduced in coreutils-9.9] 'dd seek=N of=FILE' no longer continues copying, overwriting FILE if it exists, if ftruncate fails. [bug introduced in coreutils-9.1] du and ls no longer modify strings returned by getenv. POSIX says this is not portable. [bug introduced in fileutils-4.1.6] 'fmt' now correctly diagnoses read errors. Previously fmt generated a generic error for any read error. [bug introduced in coreutils-9.0] md5sum --text correctly translates CRLF line endings with the MSYS2 runtime. This also applies to the sha*sum and b2sum utilities. [This bug was present in "the beginning".] 'numfmt' no longer drops custom suffixes from numbers it cannot fully parse. [bug introduced with numfmt in coreutils-8.21] 'tail -f --pid' can no longer exit upon receiving a non terminating signal. On older Linux systems it may have failed with "Interrupted system call". [bug introduced in coreutils-7.5] 'timeout' will now propagate all terminating signals to the monitored command. Previously 'timeout' could have exited and left the monitored command running. [bug introduced with timeout in coreutils-7.0] wc now documents its --debug option, currently used to indicate the line count acceleration being used. [bug introduced in coreutils-9.0] When built with `clang -fno-inline`, memory allocation issues are again handled in a defined manner. Previously programs may have crashed etc. after a failure to allocate memory. [bug introduced in coreutils-9.0] ** New Features configure accepts a new --enable-single-binary=hardlinks mode to build the selected programs as hard links to a multi-call binary called "coreutils". This augments the existing "symlinks" and "shebangs" modes already supported by the --enable-single-binary option. 'stat' and 'tail' now know about the "guest-memfd" file system type. stat -f -c%T now reports the file system type, and tail -f uses polling for this file system. 'tail' now accepts the --debug option, which is currently used to detail the --follow implementation being used. 'du' now supports the short option -A corresponding to the existing long option --apparent-size, for compatibility with FreeBSD. ** Changes in behavior All commands now markup option names in --help and man pages, with bold attributes, and hyperlinks into the online manual on gnu.org. The links can be configured with the --enable-manual-url configure option, and the bold highlighting with --disable-bold-man-page-references. At runtime all markup can be disabled with the TERM=dumb env var value. 'fmt' -w,--width no longer includes '\n' in the width of a line. I.e., the specified width is interpreted to be an _inclusive_ maximum. 'ls --hyperlink' now uses more standard format hyperlinks. 'ESC\' (ST) is now used as a delimiter, instead of '\a' (BEL). 'ptx' -t is no longer a no-op, and now sets the default width to 100 columns. 'timeout' now honors ignored signals and will not propagate them. E.g., timeout(1) in a shell backgrounded job, will not terminate upon receiving SIGINT or SIGQUIT, as these are ignored by default in shell background jobs. 'timeout -v -s 0' now prints the signal number 0 instead of EXIT. The multi-call binary now only processes --help or --version options if it is installed with a name ending with "coreutils". This allows for more consistent handling of these options with unsupported commands. ** Improvements The multi-call binary built with configure --enable-single-binary is reduced in size by 3.2% through the more efficient reuse of the cksum utility by the md5sum and sha*sum utilities. 'cksum' now validates its options more consistently. E.g., `cksum --text --tag` now fails like `cksum --tag --text` already did. 'cksum', 'du', and 'wc' now exit promptly upon receiving a write error, which is significant when processing many input files. csplit, ls, and sort, now handle a more complete set of terminating signals. 'du' now processes directories with 10,000 or more entries up to 9 times faster on the Lustre file system. 'paste' now supports multi-byte --delimiters characters. 'pinky' will now exit immediately upon receiving a write error, which is significant when reading large plan or project files. 'readlink' and 'realpath' will now exit promptly upon receiving a write error, which is significant when canonicalizing multiple file names longer than PATH_MAX. 'timeout' on Linux will always terminate the child in the case where the timeout process itself dies, like when it receives a KILL signal for example. ** Build-related Programs now port to C23 platforms that strictly check types when qualifier-generic functions like strchr are used. 'chcon' and 'runcon' stub binaries will be built on systems without libselinux, when configured using --with-selinux. 'kill' and 'uptime' are no longer built by default. These programs can be built with the --enable-install-program=kill,uptime configure option.
coreutils: updated to 9.3 * Noteworthy changes in release 9.3 (2023-04-18) [stable] ** Bug fixes cp --reflink=auto (the default), mv, and install will again fall back to a standard copy in more cases. Previously copies could fail with permission errors on more restricted systems like android or containers etc. [bug introduced in coreutils-9.2] cp --recursive --backup will again operate correctly. Previousy it may have issued "File exists" errors when it failed to appropriately rename files being replaced. [bug introduced in coreutils-9.2] date --file and dircolors will now diagnose a failure to read a file. Previously they would have silently ignored the failure. [This bug was present in "the beginning".] md5sum --check again correctly prints the status of each file checked. Previously the status for files was printed as 'OK' once any file had passed. This also applies to cksum, sha*sum, and b2sum. [bug introduced in coreutils-9.2] wc will now diagnose if any total counts have overflowed. [This bug was present in "the beginning".] `wc -c` will again correctly update the read offset of inputs. Previously it deduced the size of inputs while leaving the offset unchanged. [bug introduced in coreutils-8.27] Coreutils programs no longer fail for timestamps past the year 2038 on obsolete configurations with 32-bit signed time_t, because the build procedure now rejects these configurations. [This bug was present in "the beginning".] ** Changes in behavior 'cp -n' and 'mv -n' now issue an error diagnostic if skipping a file, to correspond with -n inducing a nonzero exit status as of coreutils 9.2. Similarly 'cp -v' and 'mv -v' will output a message for each file skipped due to -n, -i, or -u. ** New features cp and mv now support --update=none to always skip existing files in the destination, while not affecting the exit status. This is equivalent to the --no-clobber behavior from before v9.2.
(sysutils/coreutils, misc/gnuls) Updated from 8.29 to 8.31 ---------------------------------------------------------------- * Noteworthy changes in release 8.31 (2019-03-10) [stable] ** Bug fixes 'base64 a b' now correctly diagnoses 'b' as the extra operand, not 'a'. [bug introduced in coreutils-5.3.0] When B already exists, 'cp -il A B' no longer immediately fails after asking the user whether to proceed. [This bug was present in "the beginning".] df no longer corrupts displayed multibyte characters on macOS. [bug introduced with coreutils-8.18] seq no longer outputs inconsistent decimal point characters for the last number, when locales are misconfigured. [bug introduced in coreutils-7.0] shred, sort, and split no longer falsely report ftruncate errors when outputting to less-common file types. For example, the shell command 'sort /dev/null -o /dev/stdout | cat' no longer fails with an "error truncating" diagnostic. [bug was introduced with coreutils-8.18 for sort and split, and (for shared memory objects only) with fileutils-4.1 for shred] sync no longer fails for write-only file arguments. [bug introduced with argument support to sync in coreutils-8.24] 'tail -f file | filter' no longer exits immediately on AIX. [bug introduced in coreutils-8.28] 'tail -f file | filter' no longer goes into an infinite loop if filter exits and SIGPIPE is ignored. [bug introduced in coreutils-8.28] ** Changes in behavior cksum, dd, hostid, hostname, link, logname, sleep, tsort, unlink, uptime, users, whoami, yes: now always process --help and --version options, regardless of any other arguments present before any optional '--' end-of-options marker. nohup now processes --help and --version as first options even if other parameters follow. 'yes a -- b' now outputs 'a b' instead of including the end-of-options marker as before: 'a -- b'. echo now always processes backslash escapes when the POSIXLY_CORRECT environment variable is set. When possible 'ln A B' now merely links A to B and reports an error if this fails, instead of statting A and B before linking. This uses fewer system calls and avoids some races. The old statting approach is still used in situations where hard links to directories are allowed (e.g., NetBSD when superuser). ls --group-directories-first will also group symlinks to directories. 'test -a FILE' is not supported anymore. Long ago, there were concerns about the high probability of humans confusing the -a primary with the -a binary operator, so POSIX changed this to 'test -e FILE'. Scripts using it were already broken and non-portable; the -a unary operator was never documented. wc now treats non breaking space characters as word delimiters unless the POSIXLY_CORRECT environment variable is set. ** New features id now supports specifying multiple users. 'date' now supports the '+' conversion specification flag, introduced in POSIX.1-2017. printf, seq, sleep, tail, and timeout now accept floating point numbers in either the current or the C locale. For example, if the current locale's decimal point is ',', 'sleep 0,1' and 'sleep 0.1' now mean the same thing. Previously, these commands accepted only C-locale syntax with '.' as the decimal point. The new behavior is more compatible with other implementations in non-C locales. test now supports the '-N FILE' unary operator (like e.g. bash) to check whether FILE exists and has been modified since it was last read. env now supports '--default-signal[=SIG]', '--ignore-signal[=SIG]', and '--block-signal[=SIG], to setup signal handling before executing a program. env now supports '--list-signal-handling' to indicate non-default signal handling before executing a program. ** New commands basenc is added to complement existing base64,base32 commands, and encodes and decodes printable text using various common encodings: base64,base64url,base32,base32hex,base16,base2,z85. ** Improvements ls -l now better aligns abbreviated months containing digits, which is common in Asian locales. stat and tail now know about the "sdcardfs" file system on Android. stat -f -c%T now reports the file system type, and tail -f uses inotify. stat now prints file creation time when supported by the file system, on GNU Linux systems with glibc >= 2.28 and kernel >= 4.11. ---------------------------------------------------------------- * Noteworthy changes in release 8.30 (2018-07-01) [stable] ** Bug fixes 'cp --symlink SRC DST' will again correctly validate DST. If DST is a regular file and SRC is a symlink to DST, then cp will no longer allow that operation to clobber DST. Also with -d, if DST is a symlink, then it can always be replaced, even if it points to SRC on a separate device. [bugs introduced with coreutils-8.27] 'cp -n -u' and 'mv -n -u' now consistently ignore the -u option. Previously, this option combination suffered from race conditions that caused -u to sometimes override -n. [bug introduced with coreutils-7.1] 'cp -a --no-preserve=mode' now sets appropriate default permissions for non regular files like fifos and character device nodes etc., and leaves mode bits of existing files unchanged. Previously it would have set executable bits on created special files, and set mode bits for existing files as if they had been created. [bug introduced with coreutils-8.20] 'cp --remove-destination file symlink' now removes the symlink even if it can't be traversed. [bug introduced with --remove-destination in fileutils-4.1.1] ls no longer truncates the abbreviated month names that have a display width between 6 and 12 inclusive. Previously this would have output ambiguous months for Arabic or Catalan locales. 'ls -aA' is now equivalent to 'ls -A', since -A now overrides -a. [bug introduced in coreutils-5.3.0] 'mv -n A B' no longer suffers from a race condition that can overwrite a simultaneously-created B. This bug fix requires platform support for the renameat2 or renameatx_np syscalls, found in recent Linux and macOS kernels. As a side effect, ‘mv -n A A’ now silently does nothing if A exists. [bug introduced with coreutils-7.1] ** Changes in behavior 'cp --force file symlink' now removes the symlink even if it is self referential. ls --color now matches file extensions case insensitively. ** New features cp --reflink now supports --reflink=never to enforce a standard copy. env supports a new -v/--debug option to show verbose information about each processing step. env supports a new -S/--split-string=S option to split a single argument string into multiple arguments. Used to pass multiple arguments in scripts (shebang lines). md5sum accepts a new option: --zero (-z) to delimit the output lines with a NUL instead of a newline character. This also disables file name escaping. This also applies to sha*sum and b2sum. rm --preserve-root now supports the --preserve-root=all option to reject any command line argument that is mounted to a separate file system. ** Improvements cut supports line lengths up to the max file size on 32 bit systems. Previously only offsets up to SIZE_MAX-1 were supported. stat and tail now know about the "exfs" file system, which is a version of XFS. stat -f --format=%T now reports the file system type, and tail -f uses inotify. wc avoids redundant processing of ASCII text in multibyte locales, which is especially significant on macOS.
Add comment.
Update to get misc/gnuls package to work with latest sysutils/coreutils-8.22.