Accepting request 1131683 from Base:System
- Update to release 2.29.3 OBS-URL: https://build.opensuse.org/request/show/1131683 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=280
This commit is contained in:
commit
c6d8e830d3
@ -1,51 +0,0 @@
|
||||
From 1d98827edde4b88068d295bbd20c31333b2ad5d4 Mon Sep 17 00:00:00 2001
|
||||
From: Goldwyn Rodrigues <rgoldwyn@suse.de>
|
||||
Date: Tue, 10 Oct 2023 18:08:59 -0500
|
||||
Subject: [PATCH] libuuid: avoid truncate clocks.txt to improve performance
|
||||
|
||||
Instead of explicitly truncating clocks.txt file, pad with
|
||||
whitespaces in the end of file.
|
||||
This is done to improve performance of libuuid on xfs
|
||||
filesystems. Instead of truncating the file, pad it with whitespaces.
|
||||
This is anyways used as a failsafe method in case truncate fails.
|
||||
|
||||
The reason why this regression was introduced was because of:
|
||||
869ae85dae64 ("xfs: flush new eof page on truncate to avoid post-eof corruption")
|
||||
|
||||
An attempt to move the clocks.txt to /run (tmpfs) has been attempted before
|
||||
[1] and with commit ab2e7dd17 ("libuuid: move clock state file from
|
||||
/var/lib to /var/run"). The latter was reverted.
|
||||
|
||||
[1] https://www.spinics.net/lists/util-linux-ng/msg17331.html
|
||||
|
||||
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
|
||||
|
||||
diff --git a/libuuid/src/gen_uuid.c b/libuuid/src/gen_uuid.c
|
||||
index db793c374..826cd2245 100644
|
||||
--- a/libuuid/src/gen_uuid.c
|
||||
+++ b/libuuid/src/gen_uuid.c
|
||||
@@ -229,7 +229,6 @@ static int get_clock(uint32_t *clock_high, uint32_t *clock_low,
|
||||
struct timeval tv;
|
||||
uint64_t clock_reg;
|
||||
mode_t save_umask;
|
||||
- int len;
|
||||
int ret = 0;
|
||||
|
||||
if (state_fd == -1)
|
||||
@@ -324,14 +323,10 @@ try_again:
|
||||
|
||||
if (state_fd >= 0) {
|
||||
rewind(state_f);
|
||||
- len = fprintf(state_f,
|
||||
- "clock: %04x tv: %016ld %08ld adj: %08d\n",
|
||||
+ fprintf(state_f,
|
||||
+ "clock: %04x tv: %016ld %08ld adj: %08d \n",
|
||||
clock_seq, (long)last.tv_sec, (long)last.tv_usec, adjustment);
|
||||
fflush(state_f);
|
||||
- if (ftruncate(state_fd, len) < 0) {
|
||||
- fprintf(state_f, " \n");
|
||||
- fflush(state_f);
|
||||
- }
|
||||
rewind(state_f);
|
||||
flock(state_fd, LOCK_UN);
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
From: Chris Hofstaedtler <zeha@debian.org>
|
||||
Date: Mon, 30 Oct 2023 22:59:33 +0100
|
||||
Subject: setterm: avoid restoring flags from uninitialized memory
|
||||
References: https://salsa.debian.org/debian/util-linux/-/raw/master/debian/patches/debian/setterm-resize-uninit-flags.patch?inline=false
|
||||
|
||||
Depending on the used compiler and flags, previously either F_SETFL was called
|
||||
with 0 or with a random value. Never with the intended previous flags.
|
||||
|
||||
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
|
||||
---
|
||||
term-utils/setterm.c | 8 ++++++--
|
||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/term-utils/setterm.c b/term-utils/setterm.c
|
||||
index 22afc76..a477d5d 100644
|
||||
--- a/term-utils/setterm.c
|
||||
+++ b/term-utils/setterm.c
|
||||
@@ -846,7 +846,11 @@ static void tty_raw(struct termios *saved_attributes, int *saved_fl)
|
||||
{
|
||||
struct termios tattr;
|
||||
|
||||
- fcntl(STDIN_FILENO, F_GETFL, saved_fl);
|
||||
+ *saved_fl = fcntl(STDIN_FILENO, F_GETFL);
|
||||
+ if (*saved_fl == -1) {
|
||||
+ err(EXIT_FAILURE, _("fcntl failed: %s"),
|
||||
+ strerror(errno));
|
||||
+ }
|
||||
tcgetattr(STDIN_FILENO, saved_attributes);
|
||||
fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK);
|
||||
memcpy(&tattr, saved_attributes, sizeof(struct termios));
|
||||
@@ -898,7 +902,7 @@ static int resizetty(void)
|
||||
ssize_t rc;
|
||||
struct winsize ws;
|
||||
struct termios saved_attributes;
|
||||
- int saved_fl;
|
||||
+ int saved_fl = 0;
|
||||
|
||||
if (!isatty(STDIN_FILENO))
|
||||
errx(EXIT_FAILURE, _("stdin does not refer to a terminal"));
|
35
tests-increase-delay-for-waitpid-test.patch
Normal file
35
tests-increase-delay-for-waitpid-test.patch
Normal file
@ -0,0 +1,35 @@
|
||||
From 4524f5d6b7d90684f2b205e472cd65a682d5fab5 Mon Sep 17 00:00:00 2001
|
||||
From: Goldwyn Rodrigues <rgoldwyn@suse.de>
|
||||
Date: Wed, 29 Nov 2023 11:36:23 -0600
|
||||
Subject: [PATCH] tests: increase delay for waitpid test
|
||||
|
||||
In some test executions on s390x, the waitpid test fails because 1
|
||||
gets printed before 2.
|
||||
|
||||
[ 557s] --- /home/abuild/rpmbuild/BUILD/util-linux-2.39.2/tests/expected/misc/waitpid-normal 2023-06-14 09:11:15.910887765 +0000
|
||||
[ 557s] +++ /home/abuild/rpmbuild/BUILD/util-linux-2.39.2/tests/output/misc/waitpid-normal 2023-11-27 23:30:30.406675022 +0000
|
||||
[ 557s] @@ -1,4 +1,4 @@
|
||||
[ 557s] 3
|
||||
[ 557s] -2
|
||||
[ 557s] 1
|
||||
[ 557s] +2
|
||||
[ 557s] 4
|
||||
|
||||
Increase the time to print 1, so the test numbers are printed in
|
||||
expected order.
|
||||
|
||||
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
|
||||
|
||||
diff --git a/tests/ts/misc/waitpid b/tests/ts/misc/waitpid
|
||||
index daed74fe0..904222c05 100755
|
||||
--- a/tests/ts/misc/waitpid
|
||||
+++ b/tests/ts/misc/waitpid
|
||||
@@ -24,7 +24,7 @@ ts_check_test_command "$TS_CMD_WAITPID"
|
||||
|
||||
ts_init_subtest normal
|
||||
|
||||
-(sleep 0.2; echo 1 >> "$TS_OUTPUT") &
|
||||
+(sleep 0.5; echo 1 >> "$TS_OUTPUT") &
|
||||
BG1="$!"
|
||||
|
||||
(sleep 0.1; echo 2 >> "$TS_OUTPUT") &
|
@ -1,16 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEsMZNFDAcxu+u32Dk5LcdXuw5woQFAmTd5c8ACgkQ5LcdXuw5
|
||||
woSKLA/+L8rMZSGrVE8uxxji92mUHqsrYuk3yP3kdEQL2cqE/7/kAwb3J8LHS9jO
|
||||
1eFLJBcJv7eqtO/n42Gl9HNQ2Lbs0wnZzBT1B+TDeF1+HXF6jM9DnvfszngDm6vP
|
||||
8lDlxv0rxaoBc1w6ajEhYheH4v+baXGsgAFxfbCGgL15AVHPiuA5x2DklOr79Miz
|
||||
xssPi3kdf4gb0P9iKCOZxkYORFYCCCdd1o7Rp1ZR5rIpClHzaXT21agIJVDAMIg/
|
||||
DQQCVkoy6AdG5iiv6C1x8Yrg2uKuLdeKOXYQkBigDdozuEChmn2FZy3Wdo/ZtadC
|
||||
IqWLZY++q453SpZR1OqX0oAlkFJ2CRP+mEMu/17TnHhdmrQ/b5J2cdjubZf4gOrA
|
||||
98Ihb7VLxib4M9Ipg9BR5abKRqKrNMW0TJ013Ar9sdaFXaISfdPZtIhDNu9lkSXF
|
||||
xzz+AZOOn70j0aYWiMmbys+Ixu8Vm3YtRtkp/eikp946kIZdIkcEg+5a9Ok5Dk1i
|
||||
gxFjQkm5bx4nuWjc5W3e0NjbTXu15vxmGn/cZLK5VI3Mx6U9v4yQVoATWZGeYirB
|
||||
7N798kvwNRJn6W3yY7Se8vHfkI5HD8M7LN607f6/8lgi4vLx5ffjShrp97peQlsX
|
||||
E/RDdQoYm0u/sGh9rezwvvmk+8Nnt5mUtlqS+eJVX6guJk2rT0M=
|
||||
=oAmP
|
||||
-----END PGP SIGNATURE-----
|
BIN
util-linux-2.39.2.tar.xz
(Stored with Git LFS)
BIN
util-linux-2.39.2.tar.xz
(Stored with Git LFS)
Binary file not shown.
16
util-linux-2.39.3.tar.sign
Normal file
16
util-linux-2.39.3.tar.sign
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEsMZNFDAcxu+u32Dk5LcdXuw5woQFAmVuLVMACgkQ5LcdXuw5
|
||||
woTWRg/+KBoZc5EjgFEUQMGzblNyuqrvcFqCbhEcoaEEMtEKPrQGVZgwgs+SZcel
|
||||
n0ygCOes7M/nNmAvn4dVM8sZRvEPKjdRFErmghNuWKfZLbE9szadNcnPunmzZ1Nc
|
||||
Cd2E1R6bo0B5X3tZ4ISW3keAnWKlnRucPIrW2qZiWT36LfJT4s9vZ/dyAnJ3eAtQ
|
||||
aFgUVMWRwDFYYr79iXq6Wq60bHbxw1HT+KrpoLEkjIXN+DmuSffVQfjmCpamT1UH
|
||||
oGgUGDhrUFr8XRUC0q07n1CxxgirjlR+KeLDiNAXuzGTWK2naBYCtCwGJpxM5Dvd
|
||||
cyKenmCC1Ie+cl9m3w7MfP7WgtoPogpttEiZ1lsLJcDEbeuAu1z+O/B52YwOi7O3
|
||||
WLpe6bqW/dQsAljC6q2UMZrwnRjK7Zr5CwkTlV/o0DuCmAidcoXEZAcVQDvY1H6k
|
||||
uYD9NFtQotS0ufOFH08AJxBYWVznbmiNG7NdGeMm/ysfe807fQYD25FYhP4/r4jt
|
||||
k6qWnfDrt9OooFNx6e7s2cBZSkTmJzJ8nxGv0a4WgOhZ6hnLpx/Cv2RIpux5DeMq
|
||||
wOuWuMDF9lOVWiv6iWiuy8shQ+hGF4+riFy8LfqJZf94wqZmp0tA8CHKFSDI99iC
|
||||
ci4tz2MEpQqeVeEx1sd18DRjkXycs5Wmy7ZAUtqnR1rUxKbhVLo=
|
||||
=4wcm
|
||||
-----END PGP SIGNATURE-----
|
BIN
util-linux-2.39.3.tar.xz
(Stored with Git LFS)
Normal file
BIN
util-linux-2.39.3.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 7 13:22:16 UTC 2023 - Goldwyn Rodrigues <rgoldwyn@suse.com>
|
||||
|
||||
- Increase delay in waitpid test (bsc#1217651), add
|
||||
tests-increase-delay-for-waitpid-test.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 7 13:02:30 UTC 2023 - Goldwyn Rodrigues <rgoldwyn@suse.com>
|
||||
|
||||
- Update to release 2.29.3
|
||||
* libblkid: add support for bcachefs sub-device labels
|
||||
* libblkid: detect large bcachefs superblocks
|
||||
* libblkid: validate that NTFS sector_size is a power of two
|
||||
* libblkid: report endianness for VXFS
|
||||
* libmount: Fix regression when mounting with atime
|
||||
* libmount: accept '\' as escape for options separator
|
||||
* libmount: gracefully handle NULL path in mnt_resolve_target()
|
||||
* libmount: report statx in features list
|
||||
* libsmartcols: handle nameless tables in export format
|
||||
* libuuid: avoid truncation of clocks.txt to improve performance
|
||||
* lscpu: fix caches separator for --parse=<list>
|
||||
* lscpu: Add Phytium FTC862 cpu model
|
||||
* lsfd: fix the form for the optional argument of --inet option
|
||||
in manpage
|
||||
* lsfd: avoid a case of undefined behavior
|
||||
* lsfd: fix a memory leak
|
||||
* lslogins: fix -y option formatting in manpage
|
||||
* more: avoid an out-of-bound access
|
||||
* setpriv: fix some group argument completion
|
||||
* setterm: avoid restoring flags from uninitialized memory
|
||||
* umount: handle bindmounts during --recursive
|
||||
- Remove upstreamed patches:
|
||||
libuuid-avoid-truncate-clocks.txt-to-improve-performance.patch,
|
||||
setterm-resize-uninit-flags.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 28 10:51:47 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
|
||||
|
||||
|
@ -85,7 +85,7 @@ Group: Development/Languages/Python
|
||||
%endif
|
||||
# ulbuild == python
|
||||
|
||||
Version: 2.39.2
|
||||
Version: 2.39.3
|
||||
Release: 0
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://www.kernel.org/pub/linux/utils/util-linux/
|
||||
@ -110,9 +110,7 @@ Patch3: util-linux-bash-completion-su-chsh-l.patch
|
||||
Patch4: 0001-Revert-libblkid-try-LUKS2-first-when-probing.patch
|
||||
Patch5: util-linux-fix-tests-with-64k-pagesize.patch
|
||||
Patch6: use-logind-not-utmp.patch
|
||||
Patch7: setterm-resize-uninit-flags.patch
|
||||
# bsc#1207987 - regression fix for clock.txt on xfs (upstreamed)
|
||||
Patch8: libuuid-avoid-truncate-clocks.txt-to-improve-performance.patch
|
||||
Patch7: tests-increase-delay-for-waitpid-test.patch
|
||||
|
||||
BuildRequires: audit-devel
|
||||
BuildRequires: bc
|
||||
|
Loading…
Reference in New Issue
Block a user