From 949c2f42cf9500edb4e590e496fbb9f984b0a1963bca3495cb398cd086ea616a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 21 Mar 2023 21:33:58 +0000 Subject: [PATCH] * cksum now accepts the --base64 (-b) option to print base64-encoded checksums. It also accepts/checks such checksums. * cksum now accepts the --raw option to output a raw binary checksum. No file name or other information is output in this mode. * cp, mv, and install now accept the --debug option to print details on how a file is being copied. * factor now accepts the --exponents (-h) option to print factors in the form p^e, rather than repeating the prime p, e times. * ls now supports the --time=modification option, to explicitly select the default mtime timestamp for display and sorting. * mv now supports the --no-copy option, which causes it to fail when asked to move a file to a different file system. * split now accepts options like '-n SIZE' that exceed machine integer range, when they can be implemented as if they were infinity. * split -n now accepts piped input even when not in round-robin mode, by first copying input to a temporary file to determine its size. * wc now accepts the --total={auto,never,always,only} option to give explicit control over when the total is output. * 'cp --reflink=always A B' no longer leaves behind a newly created empty file B merely because copy-on-write clones are not supported. * 'cp -n' and 'mv -n' now exit with nonzero status if they skip their action because the destination exists, and likewise for 'cp -i', 'ln -i', and 'mv -i' when the user declines. (POSIX specifies this for 'cp -i' and 'mv -i'.) OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=345 --- coreutils-tests-workaround-make-fdleak.patch | 25 ++++++++ coreutils.changes | 66 +++++++++++++++++--- coreutils.spec | 2 + 3 files changed, 86 insertions(+), 7 deletions(-) create mode 100644 coreutils-tests-workaround-make-fdleak.patch diff --git a/coreutils-tests-workaround-make-fdleak.patch b/coreutils-tests-workaround-make-fdleak.patch new file mode 100644 index 0000000..70a84cd --- /dev/null +++ b/coreutils-tests-workaround-make-fdleak.patch @@ -0,0 +1,25 @@ +--- + tests/init.sh | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +Index: tests/init.sh +=================================================================== +--- tests/init.sh.orig ++++ tests/init.sh +@@ -685,6 +685,16 @@ compare () + } + + # ----------------------------------------------------------------------------- ++# OpenSUSE/OSC workaround. ++# GNU make 4.3.90 leaks a lot of file descriptors when using the jobserver. ++# Close all of them pointing to files matching '/tmp/Gm*'. ++p=$$ ++for n in $(find /proc/$p/fd -lname '/tmp/Gm*' -printf '%P\n'); do ++ exec {n}>&- ++done ++# ----------------------------------------------------------------------------- ++ ++# ----------------------------------------------------------------------------- + + # If you want to override the testdir_prefix_ function, + # or to add more utility functions, use this file. diff --git a/coreutils.changes b/coreutils.changes index 9cf82ab..5de65a1 100644 --- a/coreutils.changes +++ b/coreutils.changes @@ -2,13 +2,65 @@ Tue Mar 21 20:58:07 UTC 2023 - Dirk Müller - update to 9.2: - * 'comm --output-delimiter="" --total' now delimits columns - in the total line with the NUL character, consistent with - NUL column delimiters in the rest of the output. - Previously no delimiters were used for the total line in - this case. - * 'cp -p' no longer has a security hole when cloning into a - dangling symbolic link on macOS 10.12 and later. + * cksum now accepts the --base64 (-b) option to print + base64-encoded checksums. It also accepts/checks such + checksums. + * cksum now accepts the --raw option to output a raw binary + checksum. No file name or other information is output in + this mode. + * cp, mv, and install now accept the --debug option to + print details on how a file is being copied. + * factor now accepts the --exponents (-h) option to print + factors in the form p^e, rather than repeating the prime p, e + times. + * ls now supports the --time=modification option, to explicitly + select the default mtime timestamp for display and sorting. + * mv now supports the --no-copy option, which causes it to fail + when asked to move a file to a different file system. + * split now accepts options like '-n SIZE' that exceed machine + integer range, when they can be implemented as if they were + infinity. + * split -n now accepts piped input even when not in round-robin + mode, by first copying input to a temporary file to determine its + size. + * wc now accepts the --total={auto,never,always,only} option + to give explicit control over when the total is output. + * 'cp --reflink=always A B' no longer leaves behind a newly + created empty file B merely because copy-on-write clones are not + supported. + * 'cp -n' and 'mv -n' now exit with nonzero status if they skip + their action because the destination exists, and likewise for 'cp + -i', 'ln -i', and 'mv -i' when the user declines. (POSIX + specifies this for 'cp -i' and 'mv -i'.) + * cp, mv, and install again read in multiples of the reported + block size, to support unusual devices that may have this + constraint. + * du --apparent now counts apparent sizes only of regular files + and symbolic links. POSIX does not specify the meaning of + apparent sizes (i.e., st_size) for other file types, and + counting those sizes could cause confusing and unwanted size + mismatches. + * 'ls -v' and 'sort -V' go back to sorting ".0" before ".A", + reverting to the behavior in coreutils-9.0 and earlier. + This behavior is now documented. + * ls --color now matches a file extension case sensitively + if there are different sequences defined for separate cases. + * printf unicode \uNNNN, \UNNNNNNNN syntax, now supports all + valid unicode code points. Previously is was restricted to + the C universal character subset, which restricted most points <= + 0x9F. + * runcon now exits with status 125 for internal errors. + Previously upon internal errors it would exit with status 1, + which was less distinguishable + from errors from the invoked command. + * 'split -n N' now splits more evenly when the input size is + not a multiple of N, by creating N output files whose sizes + differ by at most 1 byte. Formerly, it did this only when + the input size was less than N. + * 'stat -c %s' now prints sizes as unsigned, consistent with + 'ls'. + * a long list of bugfixes, see included NEWS file for details + - drop gnulib-simple-backup-fix.patch (upstream) - drop coreutils-tests-workaround-make-fdleak.patch (obsolete) diff --git a/coreutils.spec b/coreutils.spec index ddcc0e3..079cc3b 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -62,6 +62,7 @@ Patch501: coreutils-test_without_valgrind.patch # Downstream patch to skip a test failing on OBS. # tests: skip tests/rm/ext3-perf.sh temporarily as it hangs on OBS. Patch810: coreutils-skip-tests-rm-ext3-perf.patch +Patch900: coreutils-tests-workaround-make-fdleak.patch BuildRequires: automake BuildRequires: gmp-devel BuildRequires: hostname @@ -156,6 +157,7 @@ This package contains the documentation for the GNU Core Utilities. %patch501 %patch810 +%patch900 # ================================================ %build