forked from pool/coreutils
Factory #1
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd328edeac92f6a665de9f323c93b712af1858bc2e0d88f3f7100469470a1b8a
|
||||
size 6007136
|
||||
@@ -1,16 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEbDfcEhIaUAa8HbgE32/ZcTBgN9kFAmYFirgACgkQ32/ZcTBg
|
||||
N9nZMg//WF6fyy6kxNZJIeUnAzAyMhY5hjlD33hFSaj2ihfmt7IQzRuOu7bhYk94
|
||||
5lpDJvfljubJpuAU15MD0g/7xdRVPEf/igkRqdvm79eWips1c8d7HfcorxqJcYKf
|
||||
40JV0rQyDaMqQbqFl6rPipAaagE3GBSdHz3eNVhiEQ9MII/XKNX7dZ/5MBIUW/wl
|
||||
VM7G7sA4WBh0k+K0fGNALrlFHSmQDqwVIVhuDlFNcVmY37NIsIcvIT910HlKTFWV
|
||||
A5okdepRs9a2dOIhGvMVK/U+4D9vbVbS+QlnXH74UlmnczKPQsCQKsusG02bv9L0
|
||||
ih+jFj9BVCoUjB1fQlo6/VE4Kvdhpg/NZKZCaKIEH0d4mn1XHqvyTTRN0SVOlJr8
|
||||
ZmY7e94A5TDbpkt5MFPxZ6M1Z5dZTtVX2/rkQtb59jIr/p5eYmjId3NsjWtoXICo
|
||||
XMr+hLtjMt/XIfN/eXnaSOZSoyNxOPurfe59hfjVhaexCeIrEIglZmYWw8HhkfWz
|
||||
vAxGWOFVwYfWlWlfxggdYkysRvU0vUb1JhO8HIRwmCX05YEhvTwKZMnvo/z/Y++G
|
||||
CrXyduj9e8jzRkunlU6mqFmHqaYrgt5t7e1PLFYxEgWBX77fvpSbBsLhX5nH2c6I
|
||||
4uRaQpaZQ+hnYu7U5OHfhy1OwG2qcYjbou4zK4BuI1ktnBHFgbc=
|
||||
=IhBg
|
||||
-----END PGP SIGNATURE-----
|
||||
82
coreutils-9.8-tail-large-num-of-files.patch
Normal file
82
coreutils-9.8-tail-large-num-of-files.patch
Normal file
@@ -0,0 +1,82 @@
|
||||
Upstream patch on top of v9.8 for 'tail -nN' for larger N.
|
||||
Remove for next release >v9.8 again.
|
||||
Tracked at Fedora as: rh#2398008
|
||||
|
||||
Upstream patch:
|
||||
https://cgit.git.sv.gnu.org/cgit/coreutils.git/commit/?id=914972e80dbf82aac9ffe3
|
||||
|
||||
tail: fix tailing larger number of lines in regular files
|
||||
|
||||
* src/tail.c (file_lines): Seek to the previous block instead of the
|
||||
beginning (or a little before) of the block that was just scanned.
|
||||
Otherwise, the same block is read and scanned (at least partially)
|
||||
again. This bug was introduced by commit v9.7-219-g976f8abc1.
|
||||
* tests/tail/basic-seek.sh: Add a new test.
|
||||
* tests/local.mk: Reference the new test.
|
||||
* NEWS: mention the bug fix.
|
||||
|
||||
Applied downstream/here without the NEWS entry:
|
||||
|
||||
'tail' outputs the correct number of lines again for non-small -n values.
|
||||
Previously it may have output too few lines.
|
||||
[bug introduced in coreutils-9.8]
|
||||
|
||||
|
||||
Index: src/tail.c
|
||||
===================================================================
|
||||
--- src/tail.c.orig
|
||||
+++ src/tail.c
|
||||
@@ -596,7 +596,7 @@ file_lines (char const *prettyname, int
|
||||
goto free_buffer;
|
||||
}
|
||||
|
||||
- pos = xlseek (fd, -bufsize, SEEK_CUR, prettyname);
|
||||
+ pos = xlseek (fd, -(bufsize + bytes_read), SEEK_CUR, prettyname);
|
||||
bytes_read = read (fd, buffer, bufsize);
|
||||
if (bytes_read < 0)
|
||||
{
|
||||
Index: tests/local.mk
|
||||
===================================================================
|
||||
--- tests/local.mk.orig
|
||||
+++ tests/local.mk
|
||||
@@ -179,6 +179,7 @@ all_tests = \
|
||||
tests/tty/tty-eof.pl \
|
||||
tests/misc/read-errors.sh \
|
||||
tests/misc/write-errors.sh \
|
||||
+ tests/tail/basic-seek.sh \
|
||||
tests/tail/inotify-hash-abuse.sh \
|
||||
tests/tail/inotify-hash-abuse2.sh \
|
||||
tests/tail/F-vs-missing.sh \
|
||||
Index: tests/tail/basic-seek.sh
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ tests/tail/basic-seek.sh
|
||||
@@ -0,0 +1,28 @@
|
||||
+#!/bin/sh
|
||||
+# Verify that tail works when seeking within a file
|
||||
+
|
||||
+# Copyright (C) 2025 Free Software Foundation, Inc.
|
||||
+
|
||||
+# This program is free software: you can redistribute it and/or modify
|
||||
+# it under the terms of the GNU General Public License as published by
|
||||
+# the Free Software Foundation, either version 3 of the License, or
|
||||
+# (at your option) any later version.
|
||||
+
|
||||
+# This program is distributed in the hope that it will be useful,
|
||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+# GNU General Public License for more details.
|
||||
+
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
+
|
||||
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
|
||||
+print_ver_ tail
|
||||
+
|
||||
+yes '=================================' |
|
||||
+ head -n1K > file.in || framework_failure_
|
||||
+
|
||||
+# This returned 139 in coreutils v9.8
|
||||
+test $(tail -n200 file.in | wc -l) = 200 || fail=1
|
||||
+
|
||||
+Exit $fail
|
||||
BIN
coreutils-9.8.tar.xz
LFS
Normal file
BIN
coreutils-9.8.tar.xz
LFS
Normal file
Binary file not shown.
16
coreutils-9.8.tar.xz.sig
Normal file
16
coreutils-9.8.tar.xz.sig
Normal file
@@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEbDfcEhIaUAa8HbgE32/ZcTBgN9kFAmjRjKgACgkQ32/ZcTBg
|
||||
N9m2URAArTex5vWuCBnU0BT+T5/eu19+ePhbdaDBvhSap5SBbR+wL0jQphuApGLX
|
||||
LbMRnDw31C+KtTjcHHVChf4T1LMx8IrFuIcAO3eIOGaLiCw5is/U0FIarr/+81yV
|
||||
dZEdI53JS8M6e81tjcmfDjIa6A7Gz6+9V3+eF06LRWUDJfHKzOcUnIBVnJEzFRz1
|
||||
M9U4c6VVEOfcAFD4rCfd3g01nKZwFgCyeIAqn6ldFkSX6xuGQowAnF4VrnfgZMcG
|
||||
sxX/GyIMPRxBxzjDFNUhvCXBUSFQ/Y0I0GTlH7RQFNPVUSM7Vw3qUPShU4nsL++I
|
||||
9Ewjw27W7fgOjmAV2KOz/uxCpYnW6COyiw/3x3+QLnrIhyXvh/yXnhghyb2s9bQm
|
||||
U9A2qRcqsLE3aML9lKovvStb3dC3iz/+g/expeikIEzLwxHrwagkpv22Kpu4dBbN
|
||||
qZtw4XO0ffnVcyzF1DE3Aa2kQ30OqKmSWKCXHk5Zd9LeqaagPcDlt1sNHPxquDLn
|
||||
QZMyuKlDLwIMm5D2GMqdz8JZcykCEnQY5lKwHq1KmxpfascbG0bIl1nCEOc5kCM/
|
||||
LaEMAP+90p9Wr1VVe8LqeTt9oiylrLEsDI7aNiw0FtIT0QihOfuN9hc3i8QQMPb6
|
||||
OYeA6jGWD9B+rqhn4fZyBTLz2etyEZf98apQIuxM+iOORohhFXY=
|
||||
=HpR+
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -6,18 +6,18 @@ Index: gnulib-tests/gnulib.mk
|
||||
===================================================================
|
||||
--- gnulib-tests/gnulib.mk.orig
|
||||
+++ gnulib-tests/gnulib.mk
|
||||
@@ -1473,10 +1473,10 @@ EXTRA_DIST += test-getloadavg.c signatur
|
||||
@@ -1612,10 +1612,10 @@ EXTRA_DIST += test-getloadavg.c signatur
|
||||
|
||||
## begin gnulib module getlogin-tests
|
||||
|
||||
-TESTS += test-getlogin
|
||||
-check_PROGRAMS += test-getlogin
|
||||
-test_getlogin_LDADD = $(LDADD) $(GETLOGIN_LIB)
|
||||
-test_getlogin_LDADD = $(LDADD) $(GETLOGIN_LIB) $(LIBINTL)
|
||||
-EXTRA_DIST += test-getlogin.c test-getlogin.h signature.h macros.h
|
||||
+# TESTS += test-getlogin
|
||||
+# check_PROGRAMS += test-getlogin
|
||||
+# test_getlogin_LDADD = $(LDADD) $(GETLOGIN_LIB)
|
||||
+# EXTRA_DIST += test-getlogin.c test-getlogin.h signature.h macros.h
|
||||
+#TESTS += test-getlogin
|
||||
+#check_PROGRAMS += test-getlogin
|
||||
+#test_getlogin_LDADD = $(LDADD) $(GETLOGIN_LIB) $(LIBINTL)
|
||||
+#EXTRA_DIST += test-getlogin.c test-getlogin.h signature.h macros.h
|
||||
|
||||
## end gnulib module getlogin-tests
|
||||
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
2 upstream gnulib commits for coreutils-9.5 to skip localtime_r tests
|
||||
when the timezone 'Europe/Paris' does not work.
|
||||
|
||||
Commit 1:
|
||||
http://git.sv.gnu.org/cgit/gnulib.git/commit/?id=f130f5426ecd4edd559
|
||||
|
||||
From f130f5426ecd4edd5596797e0a5721b927f80126 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Eggert <eggert@cs.ucla.edu>
|
||||
Date: Sat, 30 Mar 2024 13:28:01 -0600
|
||||
Subject: [PATCH 1/2] time_r-tests: skip French tests if no Europe/Paris
|
||||
|
||||
* tests/test-localtime_r.c (main):
|
||||
* tests/test-localtime_r-mt.c (main):
|
||||
If TZ='Europe/Paris' does not work, skip these tests.
|
||||
|
||||
Commit 2:
|
||||
http://git.sv.gnu.org/cgit/gnulib.git/commit/?id=2c04db80e2c52b8f05b
|
||||
|
||||
From 2c04db80e2c52b8f05b4136af955510e7d370470 Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Haible <bruno@clisp.org>
|
||||
Date: Sat, 30 Mar 2024 22:50:39 +0100
|
||||
Subject: [PATCH 2/2] time_r tests: Avoid misleading skip message on native
|
||||
Windows.
|
||||
|
||||
* tests/test-localtime_r.c (main): Use the macro FRENCH_TZ.
|
||||
* tests/test-localtime_r-mt.c (main): Likewise.
|
||||
---
|
||||
gnulib-tests/test-localtime_r-mt.c | 21 +++++++++++++++++++++
|
||||
gnulib-tests/test-localtime_r.c | 21 +++++++++++++++++++++
|
||||
2 files changed, 42 insertions(+)
|
||||
|
||||
Index: gnulib-tests/test-localtime_r-mt.c
|
||||
===================================================================
|
||||
--- gnulib-tests/test-localtime_r-mt.c.orig
|
||||
+++ gnulib-tests/test-localtime_r-mt.c
|
||||
@@ -107,6 +107,27 @@ main (int argc, char *argv[])
|
||||
{
|
||||
setenv ("TZ", FRENCH_TZ, 1);
|
||||
|
||||
+ /* Check that this TZ works. */
|
||||
+ {
|
||||
+ time_t t = 0; /* 1970-01-01 01:00:00 */
|
||||
+ struct tm *result = localtime (&t);
|
||||
+ if (! (result
|
||||
+ && result->tm_sec == 0
|
||||
+ && result->tm_min == 0
|
||||
+ && result->tm_hour == 1
|
||||
+ && result->tm_mday == 1
|
||||
+ && result->tm_mon == 1 - 1
|
||||
+ && result->tm_year == 1970 - 1900
|
||||
+ && result->tm_wday == 4
|
||||
+ && result->tm_yday == 0
|
||||
+ && result->tm_isdst == 0))
|
||||
+ {
|
||||
+ fputs ("Skipping test: TZ='" FRENCH_TZ "' is not Paris time\n",
|
||||
+ stderr);
|
||||
+ return 77;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
/* Create the threads. */
|
||||
gl_thread_create (thread1_func, NULL);
|
||||
gl_thread_create (thread2_func, NULL);
|
||||
Index: gnulib-tests/test-localtime_r.c
|
||||
===================================================================
|
||||
--- gnulib-tests/test-localtime_r.c.orig
|
||||
+++ gnulib-tests/test-localtime_r.c
|
||||
@@ -43,6 +43,27 @@ main (void)
|
||||
{
|
||||
setenv ("TZ", FRENCH_TZ, 1);
|
||||
|
||||
+ /* Check that this TZ works. */
|
||||
+ {
|
||||
+ time_t t = 0; /* 1970-01-01 01:00:00 */
|
||||
+ struct tm *result = localtime (&t);
|
||||
+ if (! (result
|
||||
+ && result->tm_sec == 0
|
||||
+ && result->tm_min == 0
|
||||
+ && result->tm_hour == 1
|
||||
+ && result->tm_mday == 1
|
||||
+ && result->tm_mon == 1 - 1
|
||||
+ && result->tm_year == 1970 - 1900
|
||||
+ && result->tm_wday == 4
|
||||
+ && result->tm_yday == 0
|
||||
+ && result->tm_isdst == 0))
|
||||
+ {
|
||||
+ fputs ("Skipping test: TZ='" FRENCH_TZ "' is not Paris time\n",
|
||||
+ stderr);
|
||||
+ return 77;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
/* Note: The result->tm_gmtoff values and the result->tm_zone values are the
|
||||
same (3600, "CET" or 7200, "CEST") across all tested platforms:
|
||||
glibc, musl, macOS, FreeBSD, NetBSD, OpenBSD, Minix, Cygwin, Android. */
|
||||
@@ -1,21 +0,0 @@
|
||||
---
|
||||
gnulib-tests/test-getaddrinfo.c | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
Index: gnulib-tests/test-getaddrinfo.c
|
||||
===================================================================
|
||||
--- gnulib-tests/test-getaddrinfo.c.orig
|
||||
+++ gnulib-tests/test-getaddrinfo.c
|
||||
@@ -93,11 +93,7 @@ simple (char const *host, char const *se
|
||||
the test merely because someone is down the country on their
|
||||
in-law's farm. */
|
||||
if (res == EAI_AGAIN)
|
||||
- {
|
||||
- skip++;
|
||||
- fprintf (stderr, "skipping getaddrinfo test: no network?\n");
|
||||
- return 77;
|
||||
- }
|
||||
+ return 0;
|
||||
/* IRIX reports EAI_NONAME for "https". Don't fail the test
|
||||
merely because of this. */
|
||||
if (res == EAI_NONAME)
|
||||
1339
coreutils-i18n.patch
1339
coreutils-i18n.patch
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ Index: doc/coreutils.texi
|
||||
===================================================================
|
||||
--- doc/coreutils.texi.orig
|
||||
+++ doc/coreutils.texi
|
||||
@@ -73,7 +73,6 @@
|
||||
@@ -69,7 +69,6 @@
|
||||
* groups: (coreutils)groups invocation. Print group names a user is in.
|
||||
* head: (coreutils)head invocation. Output the first part of files.
|
||||
* hostid: (coreutils)hostid invocation. Print numeric host identifier.
|
||||
@@ -14,7 +14,7 @@ Index: doc/coreutils.texi
|
||||
* id: (coreutils)id invocation. Print user identity.
|
||||
* install: (coreutils)install invocation. Copy files and set attributes.
|
||||
* join: (coreutils)join invocation. Join lines on a common field.
|
||||
@@ -206,7 +205,7 @@ Free Documentation License''.
|
||||
@@ -202,7 +201,7 @@ Free Documentation License''.
|
||||
* File name manipulation:: dirname basename pathchk mktemp realpath
|
||||
* Working context:: pwd stty printenv tty
|
||||
* User information:: id logname whoami groups users who
|
||||
@@ -23,7 +23,7 @@ Index: doc/coreutils.texi
|
||||
* SELinux context:: chcon runcon
|
||||
* Modified command invocation:: chroot env nice nohup stdbuf timeout
|
||||
* Process control:: kill
|
||||
@@ -430,7 +429,6 @@ System context
|
||||
@@ -427,7 +426,6 @@ System context
|
||||
* date invocation:: Print or set system date and time
|
||||
* nproc invocation:: Print the number of processors
|
||||
* uname invocation:: Print system information
|
||||
@@ -31,7 +31,7 @@ Index: doc/coreutils.texi
|
||||
* hostid invocation:: Print numeric host identifier
|
||||
* uptime invocation:: Print system uptime and load
|
||||
|
||||
@@ -16421,7 +16419,6 @@ information.
|
||||
@@ -16600,7 +16598,6 @@ information.
|
||||
* arch invocation:: Print machine hardware name.
|
||||
* nproc invocation:: Print the number of processors.
|
||||
* uname invocation:: Print system information.
|
||||
@@ -39,7 +39,7 @@ Index: doc/coreutils.texi
|
||||
* hostid invocation:: Print numeric host identifier.
|
||||
* uptime invocation:: Print system uptime and load.
|
||||
@end menu
|
||||
@@ -17329,15 +17326,6 @@ This is non-portable, even across GNU/Li
|
||||
@@ -17600,15 +17597,6 @@ This is non-portable, even across GNU/Li
|
||||
Print the machine hardware name (sometimes called the hardware class
|
||||
or hardware type).
|
||||
|
||||
@@ -55,7 +55,7 @@ Index: doc/coreutils.texi
|
||||
@item -p
|
||||
@itemx --processor
|
||||
@opindex -p
|
||||
@@ -17391,34 +17379,6 @@ Print the kernel version.
|
||||
@@ -17662,34 +17650,6 @@ Print the kernel version.
|
||||
|
||||
@exitstatus
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Index: doc/coreutils.texi
|
||||
===================================================================
|
||||
--- doc/coreutils.texi.orig
|
||||
+++ doc/coreutils.texi
|
||||
@@ -76,7 +76,6 @@
|
||||
@@ -72,7 +72,6 @@
|
||||
* id: (coreutils)id invocation. Print user identity.
|
||||
* install: (coreutils)install invocation. Copy files and set attributes.
|
||||
* join: (coreutils)join invocation. Join lines on a common field.
|
||||
@@ -14,7 +14,7 @@ Index: doc/coreutils.texi
|
||||
* link: (coreutils)link invocation. Make hard links between files.
|
||||
* ln: (coreutils)ln invocation. Make links between files.
|
||||
* logname: (coreutils)logname invocation. Print current login name.
|
||||
@@ -208,7 +207,6 @@ Free Documentation License''.
|
||||
@@ -204,7 +203,6 @@ Free Documentation License''.
|
||||
* System context:: date arch nproc uname hostid uptime
|
||||
* SELinux context:: chcon runcon
|
||||
* Modified command invocation:: chroot env nice nohup stdbuf timeout
|
||||
@@ -22,7 +22,7 @@ Index: doc/coreutils.texi
|
||||
* Delaying:: sleep
|
||||
* Numeric operations:: factor numfmt seq
|
||||
* File permissions:: Access modes
|
||||
@@ -457,10 +455,6 @@ Modified command invocation
|
||||
@@ -454,10 +452,6 @@ Modified command invocation
|
||||
* stdbuf invocation:: Run a command with modified I/O buffering
|
||||
* timeout invocation:: Run a command with a time limit
|
||||
|
||||
@@ -33,7 +33,7 @@ Index: doc/coreutils.texi
|
||||
Delaying
|
||||
|
||||
* sleep invocation:: Delay for a specified time
|
||||
@@ -18848,90 +18842,6 @@ timeout -s INT 5s env --ignore-signal=IN
|
||||
@@ -19127,90 +19121,6 @@ timeout -s INT 5s env --ignore-signal=IN
|
||||
timeout -s INT -k 3s 5s env --ignore-signal=INT sleep 20
|
||||
@end example
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ Index: gnulib-tests/gnulib.mk
|
||||
===================================================================
|
||||
--- gnulib-tests/gnulib.mk.orig
|
||||
+++ gnulib-tests/gnulib.mk
|
||||
@@ -3299,9 +3299,10 @@ EXTRA_DIST += test-timespec.c macros.h
|
||||
@@ -3699,9 +3699,10 @@ EXTRA_DIST += test-timespec.c macros.h
|
||||
|
||||
## begin gnulib module tls-tests
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ Index: tests/local.mk
|
||||
===================================================================
|
||||
--- tests/local.mk.orig
|
||||
+++ tests/local.mk
|
||||
@@ -755,14 +755,9 @@ all_tests = \
|
||||
@@ -774,13 +774,8 @@ all_tests = \
|
||||
# See tests/factor/create-test.sh.
|
||||
tf = tests/factor
|
||||
factor_tests = \
|
||||
@@ -27,10 +27,8 @@ Index: tests/local.mk
|
||||
- $(tf)/t20.sh $(tf)/t21.sh $(tf)/t22.sh $(tf)/t23.sh $(tf)/t24.sh \
|
||||
- $(tf)/t25.sh $(tf)/t26.sh $(tf)/t27.sh $(tf)/t28.sh $(tf)/t29.sh \
|
||||
- $(tf)/t30.sh $(tf)/t31.sh $(tf)/t32.sh $(tf)/t33.sh $(tf)/t34.sh \
|
||||
- $(tf)/t35.sh $(tf)/t36.sh
|
||||
+ $(tf)/t00.sh \
|
||||
+ $(tf)/t05.sh \
|
||||
+ $(tf)/t36.sh
|
||||
$(tf)/t35.sh $(tf)/t36.sh $(tf)/t37.sh $(tf)/t38.sh
|
||||
|
||||
$(factor_tests): $(tf)/run.sh $(tf)/create-test.sh
|
||||
$(AM_V_GEN)$(MKDIR_P) $(tf)
|
||||
|
||||
@@ -6,7 +6,7 @@ Index: tests/init.sh
|
||||
===================================================================
|
||||
--- tests/init.sh.orig
|
||||
+++ tests/init.sh
|
||||
@@ -691,6 +691,16 @@ compare ()
|
||||
@@ -738,6 +738,16 @@ compare ()
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -1,3 +1,302 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 25 18:57:34 UTC 2025 - Bernhard Voelker <mail@bernhard-voelker.de>
|
||||
|
||||
- coreutils-9.8-tail-large-num-of-files.patch: Add upstream patch:
|
||||
https://cgit.git.sv.gnu.org/cgit/coreutils.git/commit/?id=914972e80dbf82aac9ffe
|
||||
tail: fix tailing larger number of lines in regular files [rh#2398008]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 23 19:39:43 UTC 2025 - Bernhard Voelker <mail@bernhard-voelker.de>
|
||||
|
||||
- Update to 9.8:
|
||||
Bug fixes
|
||||
* 'b2sum' will diagnose --length values that are too big.
|
||||
Previously it would have silently assumed 512 for any larger values.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* 'base32' and 'base64' when decoding will again diagnose partially
|
||||
padded data that ends with a newline.
|
||||
[bug introduced in coreutils-9.5]
|
||||
* 'basenc -d -i' will now strip '=' characters from the input
|
||||
in encodings where padding characters are not valid.
|
||||
[bug introduced with the basenc program in coreutils-8.31]
|
||||
* 'cp -p' had spurious "Operation not supported" failures when
|
||||
copying to non-NFS files from NFSv4 files with trivial ACLs.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* 'cp --sparse=always' missed some opportunities to create holes.
|
||||
That is, although the copies had the correct data, sometimes
|
||||
data zeros used extents rather than holes.
|
||||
[This bug was present in "the beginning".]
|
||||
* cp missed opportunities to create holes when copying from file
|
||||
systems like squashfs that support SEEK_HOLE only trivially.
|
||||
[bug introduced in coreutils-9.0]
|
||||
* cp, install, and mv now avoid possible data corruption on
|
||||
glibc 2.41 and 2.42 systems when copy_file_range is used with ranges > 2GiB,
|
||||
avoiding https://sourceware.org/PR33245
|
||||
[bug triggered since coreutils-9.0]
|
||||
* 'date' supports specifying multiple named formats with the last taking
|
||||
precedence. Previously multiple specifications would induce an error.
|
||||
[bug introduced in coreutils-5.90]
|
||||
* 'dd oflag=seek_bytes' no longer mistakenly reports errors when the
|
||||
output file exists on GNU/Hurd.
|
||||
[bug introduced in coreutils-8.16]
|
||||
* 'fold' no longer exhausts memory when processing large inputs
|
||||
with a very large --width argument.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'install -d' now produces the correct diagnostic upon failure
|
||||
to create a directory. Previously it would have produced
|
||||
a confusing error about changing permissions.
|
||||
[This bug was present in "the beginning".]
|
||||
* "ls --size --block-size=\'k" could misalign output in locales
|
||||
with multi-byte thousands grouping characters.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'nohup' avoids implementation defined behavior setting umask,
|
||||
avoiding a FORTIFY runtime failure on Bionic libc.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'od --strings' with '-N' now works correctly. Previously od might
|
||||
write a NUL byte after a heap buffer, or output invalid addresses.
|
||||
[These bugs were present in "the beginning".]
|
||||
* 'od -w0' will now issue a diagnostic and exit gracefully.
|
||||
Previously it would have aborted.
|
||||
[bug introduced in coreutils-9.3]
|
||||
* 'od -w' no longer silently mishandles enormous widths like 3037000500.
|
||||
Instead, it either outputs correctly or diagnoses a too-large width.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'od +N.' (where N is a decimal number) works again as per POSIX.
|
||||
[bug introduced in textutils-2.0]
|
||||
* 'od /dev/null ++0' no longer mistakenly treats the ++0 as an offset.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'sort' with key character offsets of SIZE_MAX, could induce
|
||||
a read of 1 byte before an allocated heap buffer. For example:
|
||||
'sort +0.18446744073709551615R input' on 64 bit systems.
|
||||
[bug introduced in coreutils-7.2]
|
||||
* stdbuf now works on AIX. Previously it would have been ineffective.
|
||||
[bug introduced with the stdbuf program in coreutils-7.5]
|
||||
* 'tail -n NUM' no longer can output more than NUM lines if stdin
|
||||
is a largish regular file with a nonzero initial offset, and grows
|
||||
while 'tail' is reading it.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'tail -f -n +NUM' no longer mishandles NUM values >= UINTMAX_MAX
|
||||
when the input is seekable.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* 'tail --pid' avoids some unlikely races if the kernel reuses PIDs.
|
||||
[bug introduced in coreutils-9.5]
|
||||
* 'tty' now exits with status 4 with a special diagnostic if ttyname
|
||||
fails even though standard input is a tty. Formerly it quietly
|
||||
pretended that standard input was not a tty.
|
||||
[This bug was present in "the beginning".]
|
||||
New Features
|
||||
* basenc supports the --base58 option to encode and decode
|
||||
the visually unambiguous Base58 encoding.
|
||||
* 'cksum -a' now supports the 'sha3' argument, to use the SHA3-224,
|
||||
SHA3-256, SHA3-384, SHA3-512 message digest algorithms depending on
|
||||
the argument passed to the required --length (-l) option.
|
||||
* 'cksum -a' now supports the 'sha2' argument, as a more consistent
|
||||
interface than the existing 'sha224', 'sha256', 'sha384', 'sha512'
|
||||
arguments, which are now selected with the --length (-l) option.
|
||||
* 'date' now outputs dates in the country's native calendar for the
|
||||
Iranian locale (fa_IR) and for the Ethiopian locale (am_ET), and also
|
||||
does so more consistently for the Thailand locale (th_TH.UTF-8).
|
||||
* fold now supports multi-byte characters, honoring their column width.
|
||||
Also the --characters (-c) option was added to wrap at a certain
|
||||
number of characters, similarly to --bytes in uni-byte locales.
|
||||
* nproc now honors any cgroup v2 configured CPU quotas,
|
||||
which may reduce the effective number of processors available.
|
||||
* stty supports setting arbitrary baud rates on supported systems,
|
||||
like Hurd, Linux with glibc >= 2.42, and some BSDs.
|
||||
Also on other systems the full set of supported baud rates
|
||||
is determined at build time if possible.
|
||||
* Commands that support hardware acceleration like cksum and wc
|
||||
can now disable this acceleration at runtime through the
|
||||
commonly used GLIBC_TUNABLES environment variable. For example
|
||||
to disable the use of AVX512 instructions in cksum, you can:
|
||||
export GLIBC_TUNABLES='glibc.cpu.hwcaps=-AVX512F'
|
||||
Changes to conform better to POSIX.1-2024
|
||||
* readlink now defaults to being verbose if the POSIXLY_CORRECT
|
||||
environment variable is set.
|
||||
* realpath now supports -E, which specifies the default behavior.
|
||||
The corresponding long option is --canonicalize.
|
||||
* tsort now accepts and ignores -w.
|
||||
Improvements
|
||||
* 'factor' is now much faster at identifying large prime numbers,
|
||||
and significantly faster on composite numbers greater than 2^128.
|
||||
* fold now exits immediately upon receiving a write error,
|
||||
which is significant when reading large / unbounded inputs.
|
||||
* 'seq' is more accurate with large integer start values.
|
||||
Previously 'seq 18446744073709551617 inf | head -n1' would
|
||||
output the number before the user specified start value.
|
||||
Build-related
|
||||
* cksum was not compilable by Apple LLVM 10.0.0 x86-64, which
|
||||
lacks support for checking for the VPCLMULQDQ instruction.
|
||||
[bug introduced in coreutils-9.6]
|
||||
- coreutils-9.7-sort-CVE-2025-5278.patch: Remove now-upstream patch.
|
||||
- coreutils-getaddrinfo.patch: Likewise.
|
||||
- coreutils-i18n.patch: Refresh patch.
|
||||
Remove i18n part for fold(1).
|
||||
Remove the mbchar part as it is now already pulled in upstream
|
||||
indirectly via the manywarnings gnulib module.
|
||||
- Refresh all other patches.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 2 09:30:09 UTC 2025 - rw@suse.com
|
||||
|
||||
- coreutils-9.7-sort-CVE-2025-5278.patch: Add upstream patch:
|
||||
sort with key character offsets of SIZE_MAX, could induce
|
||||
a read of 1 byte before an allocated heap buffer.
|
||||
(CVE-2025-5278, bsc#1243767)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 13 18:32:55 UTC 2025 - Bernhard Voelker <mail@bernhard-voelker.de>
|
||||
|
||||
- coreutils-i18n.patch: update gnulib mbchar+mbfile to the commit
|
||||
used by coreutils-9.7:
|
||||
https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=41e7b7e0d
|
||||
mainly to pick up these commits:
|
||||
- c67c553e758 mbfile: Support pushback characters also right before EOF.
|
||||
- 87ee7ef66ee mbfile: Allow 2 pushback characters.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 10 20:56:23 UTC 2025 - Bernhard Voelker <mail@bernhard-voelker.de>
|
||||
|
||||
- Update to 9.7:
|
||||
Bug fixes
|
||||
* 'cat' would fail with "input file is output file" if input and
|
||||
output are the same terminal device and the output is append-only.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* 'cksum -a crc' misbehaved on aarch64 with 32-bit uint_fast32_t.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* dd with the 'nocache' flag will now detect all failures to drop the
|
||||
cache for the whole file. Previously it may have erroneously succeeded.
|
||||
[bug introduced with the "nocache" feature in coreutils-8.11]
|
||||
* 'ls -Z dir' would crash on all systems, and 'ls -l' could crash
|
||||
on systems like Android with SELinux but without xattr support.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* `ls -l` could output spurious "Not supported" errors in certain cases,
|
||||
like with dangling symlinks on cygwin.
|
||||
[bug introduced in coreutils-9.6]
|
||||
* timeout would fail to timeout commands with infinitesimal timeouts.
|
||||
For example `timeout 1e-5000 sleep inf` would never timeout.
|
||||
[bug introduced with timeout in coreutils-7.0]
|
||||
* sleep, tail, and timeout would sometimes sleep for slightly less
|
||||
time than requested.
|
||||
[bug introduced in coreutils-5.0]
|
||||
* 'who -m' now outputs entries for remote logins. Previously login
|
||||
entries prefixed with the service (like "sshd") were not matched.
|
||||
[bug introduced in coreutils-9.4]
|
||||
Improvements
|
||||
* 'logname' correctly returns the user who logged in the session,
|
||||
on more systems. Previously on musl or uclibc it would have merely
|
||||
output the LOGNAME environment variable.
|
||||
- coreutils-9.6-ls-Z-crash-fix.patch: Remove now-upstream patch.
|
||||
- Refresh all other patches.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 22:22:08 UTC 2025 - Bernhard Voelker <mail@bernhard-voelker.de>
|
||||
|
||||
- Update to 9.6:
|
||||
Bug fixes
|
||||
* cp fixes support for --update=none-fail, which would have been
|
||||
rejected as an invalid option.
|
||||
[bug introduced in coreutils-9.5]
|
||||
* cp,mv --update no longer overrides --interactive or --force.
|
||||
[bug introduced in coreutils-9.3]
|
||||
* csplit no longer creates empty files given empty input.
|
||||
[This bug was present in "the beginning".]
|
||||
* ls and printf fix shell quoted output in the edge case of escaped
|
||||
first and last characters, and single quotes in the string.
|
||||
[bug introduced in coreutils-8.26]
|
||||
* ls -l no longer outputs "Permission denied" errors on NFS
|
||||
which may happen with files without read permission, and which resulted
|
||||
in inaccurate indication of ACLs (missing '+' flag after mode).
|
||||
[bug introduced in coreutils-9.4]
|
||||
* ls -l no longer outputs "Not supported" errors on virtiofs.
|
||||
[bug introduced in coreutils-9.4]
|
||||
* mv works again with macFUSE file systems. Previously it would
|
||||
have exited with a "Function not implemented" error.
|
||||
[bug introduced in coreutils-8.28]
|
||||
* nproc gives more consistent results on systems with more than 1024 CPUs.
|
||||
Previously it would have ignored the affinity mask on such systems.
|
||||
[bug introduced with nproc in coreutils-8.1]
|
||||
* numfmt --from=iec-i now works with numbers without a suffix.
|
||||
Previously such numbers were rejected with an error.
|
||||
[bug introduced with numfmt in coreutils-8.21]
|
||||
* printf now diagnoses attempts to treat empty strings as numbers,
|
||||
as per POSIX. For example, "printf '%d' ''" now issues a diagnostic
|
||||
and fails instead of silently succeeding.
|
||||
[This bug was present in "the beginning".]
|
||||
* pwd no longer outputs an erroneous double slash on systems
|
||||
where the system getcwd() was completely replaced.
|
||||
[bug introduced in coreutils-9.2]
|
||||
* 'shuf' generates more-random output when the output is small.
|
||||
[bug introduced in coreutils-8.6]
|
||||
* `tail --follow=name` no longer waits indefinitely for watched
|
||||
file names that are moved elsewhere within the same file system.
|
||||
[bug introduced in coreutils-8.24]
|
||||
* `tail --follow` without --retry, will consistently exit with failure status
|
||||
where inotify is not used, when all followed files become inaccessible.
|
||||
[This bug was present in "the beginning".]
|
||||
* `tail --follow --pid=PID` will now exit when the PID dies,
|
||||
even in the presence of blocking inputs like unopened fifos.
|
||||
[This bug was present in "the beginning".]
|
||||
* 'tail -c 4096 /dev/zero' no longer loops forever.
|
||||
[This bug was present in "the beginning".]
|
||||
Changes in behavior
|
||||
* 'factor' now buffers output more efficiently in some cases.
|
||||
* install -C now dereferences symlink sources when comparing,
|
||||
rather than always treating as different and performing the copy.
|
||||
* kill -l and -t now list signal 0, as it's a valid signal to send.
|
||||
* ls's -f option now simply acts like -aU, instead of also ignoring
|
||||
some earlier options. For example 'ls -fl' and 'ls -lf' are now
|
||||
equivalent because -f no longer ignores an earlier -l. The new
|
||||
behavior is more orthogonal and is compatible with FreeBSD.
|
||||
* stat -f -c%T now reports the "fuseblk" file system type as "fuse",
|
||||
given that there is no longer a distinct "ctl" fuse variant file system.
|
||||
New Features
|
||||
* cksum -a now supports the "crc32b" option, which calculates the CRC
|
||||
of the input as defined by ITU V.42, as used by gzip for example.
|
||||
For performance pclmul instructions are used where supported.
|
||||
* ls now supports the --sort=name option,
|
||||
to explicitly select the default operation of sorting by file name.
|
||||
* printf now supports indexed arguments, using the POSIX:2024 specified
|
||||
%<i>$ format, where '<i>' is an integer referencing a particular argument,
|
||||
thus allowing repetition or reordering of printf arguments.
|
||||
* test supports the POSIX:2024 specified '<' and '>' operators with strings,
|
||||
to compare the string locale collating order.
|
||||
* timeout now supports the POSIX:2024 specified -f, and -p short options,
|
||||
corresponding to --foreground, and --preserve-status respectively.
|
||||
Improvements
|
||||
* cksum -a crc, makes use of AVX2, AVX512, and ARMv8 SIMD extensions
|
||||
for time reductions of up to 40%, 60%, and 80% respectively.
|
||||
* 'head -c NUM', 'head -n NUM', 'nl -l NUM', 'nproc --ignore NUM',
|
||||
'tail -c NUM', 'tail -n NUM', and 'tail --max-unchanged-stats NUM’
|
||||
no longer fail merely because NUM stands for 2**64 or more.
|
||||
* sort operates more efficiently when used on pseudo files with
|
||||
an apparent size of 0, like those in /proc.
|
||||
* stat and tail now know about the "bcachefs", and "pidfs" file system types.
|
||||
stat -f -c%T now reports the file system type,
|
||||
and tail -f uses inotify for these file systems.
|
||||
* wc now reads a minimum of 256KiB at a time.
|
||||
This was previously 16KiB and increasing to 256KiB was seen to increase
|
||||
wc -l performance by about 10% when reading cached files on modern systems.
|
||||
- coreutils-fix-gnulib-time_r-tests.patch: Remove now-upstream patch.
|
||||
- coreutils-9.6-ls-Z-crash-fix.patch: Add upstream patch from after the release.
|
||||
- coreutils.spec (Patch920): Exchange names of above patch files accordingly.
|
||||
- coreutils-i18n.patch: Refresh patch, manually porting some upstream fixes
|
||||
into the i18n chunks for expand.c, fold.c and unexpand.c.
|
||||
- Refresh all other patches:
|
||||
* coreutils-disable_tests.patch
|
||||
* coreutils-remove_hostname_documentation.patch
|
||||
* coreutils-remove_kill_documentation.patch
|
||||
* coreutils-skip-gnulib-test-tls.patch
|
||||
* coreutils-tests-shorten-extreme-factor-tests.patch
|
||||
* coreutils-tests-workaround-make-fdleak.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 29 14:36:55 UTC 2024 - Bernhard Voelker <mail@bernhard-voelker.de>
|
||||
|
||||
- coreutils-i18n.patch: fold(1): fix fold -b with UTF8 locale.
|
||||
Sync fix in I18N patch from Fedora/Redhat and add a test. (RHEL-60295)
|
||||
Original report: https://access.redhat.com/solutions/3459791
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 19 07:57:52 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package coreutils
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -30,7 +30,7 @@
|
||||
%global psuffix %{nil}
|
||||
%endif
|
||||
Name: coreutils%{?psuffix}
|
||||
Version: 9.5
|
||||
Version: 9.8
|
||||
Release: 0
|
||||
Summary: GNU Core Utilities
|
||||
License: GPL-3.0-or-later
|
||||
@@ -46,8 +46,6 @@ Patch4: coreutils-i18n.patch
|
||||
Patch8: coreutils-sysinfo.patch
|
||||
# OBS / RPMLINT require /usr/bin/timeout to be built with the -fpie option.
|
||||
Patch100: coreutils-build-timeout-as-pie.patch
|
||||
# There is no network in the build root so make the test succeed
|
||||
Patch112: coreutils-getaddrinfo.patch
|
||||
# Assorted fixes
|
||||
Patch113: coreutils-misc.patch
|
||||
# Skip 2 valgrind'ed sort tests on ppc/ppc64 which would fail due to
|
||||
@@ -64,8 +62,9 @@ Patch501: coreutils-test_without_valgrind.patch
|
||||
# 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
|
||||
# Upstream gnulib patch for coreutils-9.5.
|
||||
Patch920: coreutils-fix-gnulib-time_r-tests.patch
|
||||
# Upstream patch on top of v9.8 for 'tail -nN' for larger N; remove for >v9.8.
|
||||
Patch910: coreutils-9.8-tail-large-num-of-files.patch
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: hostname
|
||||
@@ -143,7 +142,7 @@ This package contains the documentation for the GNU Core Utilities.
|
||||
|
||||
%prep
|
||||
%setup -q -n coreutils-%{version}
|
||||
%patch -P 4 -p1
|
||||
%patch -P 4
|
||||
%patch -P 1
|
||||
%patch -P 3
|
||||
%patch -P 8
|
||||
@@ -151,7 +150,6 @@ This package contains the documentation for the GNU Core Utilities.
|
||||
%if 0%{?suse_version} <= 1320
|
||||
%patch -P 100
|
||||
%endif
|
||||
%patch -P 112
|
||||
%patch -P 113
|
||||
|
||||
%patch -P 300
|
||||
@@ -167,7 +165,7 @@ This package contains the documentation for the GNU Core Utilities.
|
||||
|
||||
%patch -P 810
|
||||
%patch -P 900
|
||||
%patch -P 920
|
||||
%patch -P 910
|
||||
|
||||
# ================================================
|
||||
%build
|
||||
|
||||
Reference in New Issue
Block a user