Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package coreutils for openSUSE:Factory checked in at 2022-04-26 00:00:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/coreutils (Old) and /work/SRC/openSUSE:Factory/.coreutils.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "coreutils" Tue Apr 26 00:00:32 2022 rev:143 rq:972506 version:9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/coreutils/coreutils.changes 2021-11-11 21:36:33.724894781 +0100 +++ /work/SRC/openSUSE:Factory/.coreutils.new.1538/coreutils.changes 2022-04-26 00:00:34.195999752 +0200 @@ -1,0 +2,77 @@ +Sun Apr 24 09:49:04 UTC 2022 - Bernhard Voelker <m...@bernhard-voelker.de> + +- gnulib-simple-backup-fix.patch: Add patch to make simple backups in correct + directory; broken in 9.1. See https://bugs.gnu.org/55029 + +------------------------------------------------------------------- +Thu Apr 21 20:58:30 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- update to 9.1: + * chmod -R no longer exits with error status when encountering symlinks. + All files would be processed correctly, but the exit status was incorrect. + * If 'cp -Z A B' checks B's status and some other process then removes B, + cp no longer creates B with a too-generous SELinux security context + before adjusting it to the correct value. + * 'cp --preserve=ownership A B' no longer ignores the umask when creating B. + Also, 'cp --preserve-xattr A B' is less likely to temporarily chmod u+w B. + * 'id xyz' now uses the name 'xyz' to determine groups, instead of xyz's uid. + * 'ls -v' and 'sort -V' no longer mishandle corner cases like "a..a" vs "a.+" + or lines containing NULs. Their behavior now matches the documentation + for file names like ".m4" that consist entirely of an extension, + and the documentation has been clarified for unusual cases. + * 'mv -T --backup=numbered A B/' no longer miscalculates the backup number + for B when A is a directory, possibly inflooping. + * cat now uses the copy_file_range syscall if available, when doing + simple copies between regular files. This may be more efficient, by avoiding + user space copies, and possibly employing copy offloading or reflinking. + * chown and chroot now warn about usages like "chown root.root f", + which have the nonstandard and long-obsolete "." separator that + causes problems on platforms where user names contain ".". + Applications should use ":" instead of ".". + * cksum no longer allows abbreviated algorithm names, + so that forward compatibility and robustness is improved. + * date +'%-N' now suppresses excess trailing digits, instead of always + padding them with zeros to 9 digits. It uses clock_getres and + clock_gettime to infer the clock resolution. + * dd conv=fsync now synchronizes output even after a write error, + and similarly for dd conv=fdatasync. + * dd now counts bytes instead of blocks if a block count ends in "B". + For example, 'dd count=100KiB' now copies 100 KiB of data, not + 102,400 blocks of data. The flags count_bytes, skip_bytes and + seek_bytes are therefore obsolescent and are no longer documented, + though they still work. + * ls no longer colors files with capabilities by default, as file-based + capabilties are very rarely used, and lookup increases processing per file by + about 30%. It's best to use getcap [-r] to identify files with capabilities. + * ls no longer tries to automount files, reverting to the behavior + before the statx() call was introduced in coreutils-8.32. + * stat no longer tries to automount files by default, reverting to the + behavior before the statx() call was introduced in coreutils-8.32. + Only `stat --cached=never` will continue to automount files. + * timeout --foreground --kill-after=... will now exit with status 137 + if the kill signal was sent, which is consistent with the behavior + when the --foreground option is not specified. This allows users to + distinguish if the command was more forcefully terminated. + * dd now supports the aliases iseek=N for skip=N, and oseek=N for seek=N, + like FreeBSD and other operating systems. + * dircolors takes a new --print-ls-colors option to display LS_COLORS + entries, on separate lines, colored according to the entry color code. + * dircolors will now also match COLORTERM in addition to TERM environment + variables. The default config will apply colors with any COLORTERM set. + * cp, mv, and install now use openat-like syscalls when copying to a directory. + * This avoids some race conditions and should be more efficient. + * The new 'date' option --resolution outputs the timestamp resolution. + * With conv=fdatasync or conv=fsync, dd status=progress now reports + any extra final progress just before synchronizing output data, + since synchronizing can take a long time. + * printf now supports printing the numeric value of multi-byte characters. + * sort --debug now diagnoses issues with --field-separator characters + that conflict with characters possibly used in numbers. + * 'tail -f file | filter' now exits on Solaris when filter exits. + * root invoked coreutils, that are built and run in single binary mode, + now adjust /proc/$pid/cmdline to be more specific to the utility + being run, rather than using the general "coreutils" binary name. +- coreutils-i18n.patch: Re-sync the patch with Fedora. +- drop coreutils-chmod-fix-exit-status-ign-symlinks.patch (upstream) + +------------------------------------------------------------------- Old: ---- coreutils-9.0.tar.xz coreutils-9.0.tar.xz.sig coreutils-chmod-fix-exit-status-ign-symlinks.patch New: ---- coreutils-9.1.tar.xz coreutils-9.1.tar.xz.sig gnulib-simple-backup-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ coreutils.spec ++++++ --- /var/tmp/diff_new_pack.aT7e6A/_old 2022-04-26 00:00:35.024000551 +0200 +++ /var/tmp/diff_new_pack.aT7e6A/_new 2022-04-26 00:00:35.028000555 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,16 +19,20 @@ # there are more fancy ways to define a package name using magic # macros but OBS and the bots that rely on parser information from # OBS can't deal with all of them -%define flavor @BUILD_FLAVOR@%{nil} +%global flavor @BUILD_FLAVOR@%{nil} + %bcond_with ringdisabled -%if "%{flavor}" != "" -%define name_suffix -%{flavor} %if %{with ringdisabled} ExclusiveArch: do_not_build %endif + +%if "%{flavor}" != "" +%define psuffix -%{flavor} +%else +%define psuffix %{nil} %endif -Name: coreutils%{?name_suffix} -Version: 9.0 +Name: coreutils%{psuffix} +Version: 9.1 Release: 0 Summary: GNU Core Utilities License: GPL-3.0-or-later @@ -59,11 +63,14 @@ Patch304: coreutils-use-python3.patch Patch500: coreutils-disable_tests.patch Patch501: coreutils-test_without_valgrind.patch -# Upstream patch - remove with version >9.0: -# chmod: fix exit status when ignoring symlinks -Patch800: coreutils-chmod-fix-exit-status-ign-symlinks.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 + +# Upstream patch - remove with version >9.1: +Patch850: gnulib-simple-backup-fix.patch + BuildRequires: automake BuildRequires: gmp-devel BuildRequires: libacl-devel @@ -134,7 +141,7 @@ %prep %setup -q -n coreutils-%{version} -%patch4 +%patch4 -p1 %patch1 %patch3 %patch8 @@ -157,8 +164,8 @@ %patch500 %patch501 -%patch800 %patch810 +%patch850 # ================================================ %build ++++++ coreutils-9.0.tar.xz -> coreutils-9.1.tar.xz ++++++ ++++ 492675 lines of diff (skipped) ++++++ coreutils-disable_tests.patch ++++++ --- /var/tmp/diff_new_pack.aT7e6A/_old 2022-04-26 00:00:37.804003233 +0200 +++ /var/tmp/diff_new_pack.aT7e6A/_new 2022-04-26 00:00:37.804003233 +0200 @@ -6,7 +6,7 @@ =================================================================== --- gnulib-tests/gnulib.mk.orig +++ gnulib-tests/gnulib.mk -@@ -1035,10 +1035,10 @@ EXTRA_DIST += test-getloadavg.c signatur +@@ -1073,10 +1073,10 @@ EXTRA_DIST += test-getloadavg.c signatur ## begin gnulib module getlogin-tests ++++++ coreutils-i18n.patch ++++++ ++++ 1478 lines (skipped) ++++ between /work/SRC/openSUSE:Factory/coreutils/coreutils-i18n.patch ++++ and /work/SRC/openSUSE:Factory/.coreutils.new.1538/coreutils-i18n.patch ++++++ coreutils-skip-gnulib-test-tls.patch ++++++ --- /var/tmp/diff_new_pack.aT7e6A/_old 2022-04-26 00:00:37.844003271 +0200 +++ /var/tmp/diff_new_pack.aT7e6A/_new 2022-04-26 00:00:37.848003275 +0200 @@ -21,7 +21,7 @@ =================================================================== --- gnulib-tests/gnulib.mk.orig +++ gnulib-tests/gnulib.mk -@@ -2615,9 +2615,10 @@ EXTRA_DIST += test-timespec.c macros.h +@@ -2676,9 +2676,10 @@ EXTRA_DIST += test-timespec.c macros.h ## begin gnulib module tls-tests ++++++ coreutils-sysinfo.patch ++++++ --- /var/tmp/diff_new_pack.aT7e6A/_old 2022-04-26 00:00:37.860003287 +0200 +++ /var/tmp/diff_new_pack.aT7e6A/_new 2022-04-26 00:00:37.864003290 +0200 @@ -6,8 +6,8 @@ =================================================================== --- src/uname.c.orig +++ src/uname.c -@@ -338,6 +338,36 @@ main (int argc, char **argv) - # endif +@@ -341,6 +341,36 @@ main (int argc, char **argv) + element = processor; } #endif + if (element == unknown) @@ -43,7 +43,7 @@ if (! (toprint == UINT_MAX && element == unknown)) print_element (element); } -@@ -363,6 +393,18 @@ main (int argc, char **argv) +@@ -366,6 +396,18 @@ main (int argc, char **argv) element = hardware_platform; } #endif ++++++ coreutils-tests-shorten-extreme-factor-tests.patch ++++++ --- /var/tmp/diff_new_pack.aT7e6A/_old 2022-04-26 00:00:37.880003306 +0200 +++ /var/tmp/diff_new_pack.aT7e6A/_new 2022-04-26 00:00:37.884003310 +0200 @@ -16,7 +16,7 @@ =================================================================== --- tests/local.mk.orig +++ tests/local.mk -@@ -733,14 +733,9 @@ all_tests = \ +@@ -736,14 +736,9 @@ all_tests = \ # See tests/factor/create-test.sh. tf = tests/factor factor_tests = \ ++++++ gnulib-simple-backup-fix.patch ++++++ Upstream patch on top of coreutils-9.1; remove with >9.1. Fixes: https://bugs.gnu.org/55029 Two commits: * https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=e087525091b commit e087525091b8f0a15eb2354f71032597d5271599 Author: Paul Eggert <egg...@cs.ucla.edu> Date: Wed Apr 20 19:44:56 2022 -0700 mv: test Bug#55029 * tests/mv/backup-dir.sh: New test for Bug#55029, reported by Steve Ward. * https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=7347caeb9d90 commit 7347caeb9d902d3fca2c11f69a55a3e578d93bfe Author: Paul Eggert <egg...@cs.ucla.edu> Date: Wed Apr 20 19:34:57 2022 -0700 backupfile: fix bug when renaming simple backups * lib/backupfile.c (backupfile_internal): Fix bug when RENAME and when doing simple backups. Problem reported by Steve Ward in: https://bugs.gnu.org/55029 --- NEWS | 8 ++++++++ lib/backupfile.c | 7 +++---- tests/mv/backup-dir.sh | 6 ++++++ 3 files changed, 17 insertions(+), 4 deletions(-) Index: lib/backupfile.c =================================================================== --- lib/backupfile.c.orig +++ lib/backupfile.c @@ -332,7 +332,7 @@ backupfile_internal (int dir_fd, char co return s; DIR *dirp = NULL; - int sdir = AT_FDCWD; + int sdir = dir_fd; idx_t base_max = 0; while (true) { @@ -371,10 +371,9 @@ backupfile_internal (int dir_fd, char co if (! rename) break; - int olddirfd = sdir < 0 ? dir_fd : sdir; - idx_t offset = sdir < 0 ? 0 : base_offset; + idx_t offset = backup_type == simple_backups ? 0 : base_offset; unsigned flags = backup_type == simple_backups ? 0 : RENAME_NOREPLACE; - if (renameatu (olddirfd, file + offset, sdir, s + offset, flags) == 0) + if (renameatu (sdir, file + offset, sdir, s + offset, flags) == 0) break; int e = errno; if (! (e == EEXIST && extended)) Index: tests/mv/backup-dir.sh =================================================================== --- tests/mv/backup-dir.sh.orig +++ tests/mv/backup-dir.sh @@ -36,4 +36,10 @@ mkdir C D E || framework_failure_ mv -T --backup=numbered C E/ || fail=1 mv -T --backup=numbered D E/ || fail=1 +# Bug#55029 +mkdir F && echo 1 >1 && echo 2 >2 && cp 1 F/X && cp 2 X || framework_failure_ +mv --backup=simple X F/ || fail=1 +compare 1 F/X~ || fail=1 +compare 2 F/X || fail=1 + Exit $fail Index: NEWS =================================================================== --- NEWS.orig +++ NEWS @@ -1,5 +1,13 @@ GNU coreutils NEWS -*- outline -*- +* Downstream changes on top of release 9.1 + +** Bug fixes + + 'mv --backup=simple f d/' no longer mistakenly backs up d/f to f~. + [bug introduced in coreutils-9.1] + + * Noteworthy changes in release 9.1 (2022-04-15) [stable] ** Bug fixes