Compare commits

..

167 commits

Author SHA1 Message Date
Python Maint
a0317f94b5 Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:16:14 +02:00
Fedora Release Engineering
9213a0ec8f Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:18:23 +00:00
Karel Zak
d3c879ee06 upgrade to upstream release v2.42.2 2026-06-16 14:56:23 +02:00
Python Maint
e20697608b Rebuilt for Python 3.15 2026-06-03 17:43:18 +02:00
Karel Zak
62e94b8fcb revert util-linux-i18n noarch (rhbz#2453891) 2026-05-20 11:07:37 +02:00
Karel Zak
49c5ecdbfb make util-linux-i18n noarch (rhbz#2453891) 2026-05-20 10:28:46 +02:00
Karel Zak
ad160404f2 fix pam_lastlog2 patch to modify only Makefile.in 2026-05-19 13:49:26 +02:00
Karel Zak
f891325268 upgrade to upstream release v2.42.1
- fix pam_lastlog2 libpam linking (rhbz#2453457)
2026-05-19 13:29:13 +02:00
Karel Zak
da7125e4bb upgrade to upstream release v2.42 2026-04-02 14:26:48 +02:00
Fedora Release Engineering
196be3f2a1 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:43:43 +00:00
Nuo Cheng
47417a6e2e Update util-linux-su.pamd
fix variables not set in /etc/environment through command 'su --login'
2026-01-12 12:21:28 +01:00
Karel Zak
4737f2d702 enable BuildRequires for parsers 2026-01-12 12:15:47 +01:00
Karel Zak
06dbf9bb28 fix built on new gcc (bison based code and libblkid API) 2026-01-12 11:55:59 +01:00
Karel Zak
4bac19fd38 add completition bits blkpr lsfd 2025-12-15 16:53:44 +01:00
Karel Zak
df438c4170 upgrade to upstream release v2.41.3 2025-12-15 16:42:08 +01:00
ab6d50b588 Merge #25 liblastlog2 uses /var/lib/lastlog 2025-12-02 15:55:21 +00:00
Karel Zak
9c226720cb backport upstream patches for GCC-15
- regenerate Fedora patches from the Git tree
2025-12-02 16:37:43 +01:00
Fxzx micah
7ef16d92f7 liblastlog2 uses /var/lib/lastlog
You can verify it through man pam_lastlog2.
2025-11-18 19:22:12 +00:00
Karel Zak
ba1905c6c7 upgrade to upstream release v2.41.2 2025-10-23 13:01:34 +02:00
Python Maint
9e2caeba0d Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:01:56 +02:00
Python Maint
5679a7db71 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:21:47 +02:00
Karel Zak
b9ed3a9a74 use RPM macros for /var/lib and /run 2025-08-05 09:59:26 +02:00
Karel Zak
39c148ff89 add /var/lib/liblastlog to files list 2025-08-05 09:49:01 +02:00
Fedora Release Engineering
04d2b6b0ad Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:54:31 +00:00
eeebe2875e Merge #24 tests: migrate from STI to TMT 2025-07-16 10:48:03 +00:00
Karel Zak
164a6760ec enable lastlog2-import.service 2025-07-15 14:24:23 +02:00
Lukáš Zaoral
0382798ff4
tests: migrate from STI to TMT
Related: https://fedoraproject.org/wiki/Changes/DisableSTI
2025-06-24 14:19:13 +02:00
Karel Zak
7d135acec2 Fix ldattach build on recent glibc headers. 2025-06-24 11:20:00 +02:00
Karel Zak
b309d832e2 Temporarily disable support for EROFS backing files. 2025-06-24 11:02:22 +02:00
Karel Zak
404f522557 remove obsolete patch 2025-06-24 10:45:43 +02:00
Karel Zak
bf8d5779df upgrade to upstream release v2.41.1
... https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41-ReleaseNotes
- add lastlog2 library and PAM module
- add new utils bits, coresched and lastlog2
2025-06-24 10:37:18 +02:00
Python Maint
8e9f6cee44 Rebuilt for Python 3.14 2025-06-09 12:44:41 +02:00
Miro Hrončok
0e7e2e7599 Revert to util-linux-2.40.4-7 to rebuild it for Python 3.14
The revert is needed because of https://bodhi.fedoraproject.org/updates/FEDORA-2025-dd6b6950ff failures.

This reverts commit e873a14a1d
2025-06-09 12:44:41 +02:00
Python Maint
ca46de6072 Rebuilt for Python 3.14 2025-06-02 20:26:03 +02:00
Karel Zak
67c133a8d4 add BuildRequires for lastlog2 2025-05-12 14:33:31 +02:00
Karel Zak
e873a14a1d upgrade to upstream release v2.41
... https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41-ReleaseNotes
- add lastlog2 library and PAM module
- add new utils bits, coresched and lastlog2
2025-05-12 14:16:44 +02:00
Dusty Mabe
cd951d5e56
backport blkid: allow up to 64k erofs block sizes
This is a backport of [1], which should help us use EROFS in live
media on ppc64le [2].

[1] ff0ac0f27d
[2] https://github.com/coreos/fedora-coreos-tracker/issues/1877
2025-02-19 14:50:05 -05:00
Karel Zak
3e60999497 remove useradd (replaced by sysusers config) 2025-02-12 12:13:29 +01:00
347d30bca0 Merge #20 Conditionalize pam dependency 2025-02-04 18:41:01 +00:00
Karel Zak
674f706e83 add sysusers config for uuidd 2025-02-04 10:46:42 +01:00
3abb2f6222
Add explicit BR: libxcrypt-devel
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2025-02-01 19:58:02 +01:00
Yaakov Selkowitz
56f4756f3a Conditionalize pam dependency
pam is a host service, and is not used inside of flatpaks or toolboxes.
2025-01-20 22:22:08 +00:00
Fedora Release Engineering
0298d7d2a2 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:00:04 +00:00
Karel Zak
d6af9bf445 upgrade to v2.40.4
https://www.kernel.org/pub/linux/utils/util-linux/v2.40/v2.40.4-ReleaseNotes
https://www.kernel.org/pub/linux/utils/util-linux/v2.40/v2.40.3-ReleaseNotes
2025-01-15 11:19:34 +01:00
240d76d679 Rebuilt for the bin-sbin merge (2nd attempt)
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
2025-01-12 14:42:55 +01:00
Karel Zak
61d2c55ceb improve util-linux-script subpackage 2024-09-03 12:15:12 +02:00
Daan De Meyer
5a2471d6e5 Move script utilities to util-linux-script subpackage
This allows installing util-linux without pulling in the
libutempter library which includes a setgid binary that I'd like
to avoid installing on my systems.
2024-08-23 11:27:11 +02:00
Daan De Meyer
6975c91b71 Remove setgid and tty group from /usr/bin/write
We already require root privileges for /usr/bin/wall so let's do the
same for /usr/bin/write.

"""
-rwxr-xr-x    1 root     root                    28456 Aug 14 02:00 /usr/bin/wall
-rwxr-xr-x    1 root     root                    36792 Aug 14 02:00 /usr/bin/wdctl
-rwxr-xr-x    1 root     root                    33160 Aug 14 02:00 /usr/bin/whereis
-rwxr-xr-x    1 root     root                    24352 Aug 14 02:00 /usr/bin/write
"""
2024-08-14 13:46:45 +02:00
Daan De Meyer
0921016466 Fix whitespace issues 2024-08-14 13:28:56 +02:00
Fedora Release Engineering
479766f342 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:28:34 +00:00
c96f6dfba7 Add compat Providess for binaries under /usr/sbin
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Requires:/usr/sbin/runuser is present in knot.
BuildRequires: /usr/sbin{fsck,sfdisk} used by some other packages.
2024-07-09 12:42:02 +02:00
480d4cbafa Add workaround for borked autotools installation
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Without this, build on a system with merged-sbin fails.

[skip changelog]
2024-07-09 12:42:02 +02:00
Karel Zak
abe9339a37 upgrade from v2.40.1 to v2.40.2
https://kernel.org/pub/linux/utils/util-linux/v2.40/v2.40.2-ReleaseNotes
2024-07-04 10:40:20 +02:00
Python Maint
8472af8e2c Rebuilt for Python 3.13 2024-06-07 08:51:30 +02:00
Karel Zak
e345fc8ab4 upgrade to stable v2.40.1 2024-05-06 11:14:27 +02:00
Karel Zak
981295a856 remove pre-release option 2024-04-08 10:59:41 +02:00
Karel Zak
bc83b318de upgrade to v2.40 2024-03-29 08:13:14 +01:00
Karel Zak
f0320c8ef7 fix license related stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 2cc6ef8a87)
2024-02-28 14:47:36 +01:00
Karel Zak
0bd50d406f use SPDX based identifiers for license field 2024-02-21 11:30:53 +01:00
Colin Walters
1d94d2966a Backport 211a9da0b4
xref https://github.com/coreos/rpm-ostree/issues/4830
2024-02-15 11:39:09 -05:00
Karel Zak
5854ee9f05 add autorelease and autochangelog 2024-02-07 13:05:18 +01:00
ceb56aabcb Replace loop by a single invocation with multiple arguments 2024-02-06 11:31:59 +01:00
b15359d1d4 $RPM_BUILD_ROOT → %{buildroot}
It is shorter and also does not mess up the host system if somebody
makes a typo.
2024-02-06 11:31:55 +01:00
dc6a971801 Enable fstrim.timer on upgrades
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2262393 for upgrades.
Since the timer was not enabled previously, we want to enable it here so that
https://fedoraproject.org/wiki/Changes/EnableFSTrimTimer is actually true.
2024-02-06 11:28:02 +01:00
e5d9a1e3ef Add unit scriptlets for fstrim.service and .timer
https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets

We want to "restart" the timer so that the it's rescheduled if there
are any changes to frequency or other settings. This will not cause the timer
to fire immediately. We don't restart the service itself, because, if it happens
to be running, we want it to just finish as it was.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2262393 for new
installations. A preset call was missing for fstrim.timer, so if util-linux
was installed after systemd, the unit would not be enabled.
2024-02-06 11:28:02 +01:00
a4d9e81291 Replace systemd dependencies with just ordering
systemd-units has been merged into systemd a long time ago. But we
don't really need this dependency at all. Let's just declare ordering,
so that this package is installed after systemd if both are installed
in the same transaction.

See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package
for discussion and justification.
2024-02-06 11:28:02 +01:00
1d0d7588dd Simplify systemd scriplets
It is better to use a single %systemd_* macro to avoid some executions
and repeated checks.
2024-02-06 11:27:58 +01:00
Karel Zak
bac574c283 2.40-0.1: upgrade to v2.40-rc1 2024-02-05 10:29:29 +01:00
Karel Zak
c9ce0bbf54 2.39.3-4: improve util-linux-i18n conflicts 2024-01-25 13:09:13 +01:00
Karel Zak
8ecb7f1bee 2.39.3-3: fix libsmartcols 2024-01-25 11:12:49 +01:00
Karel Zak
a16ce36c6f 2.39.3-2: fix util-linux-i18n conflicts 2024-01-11 15:18:52 +01:00
Karel Zak
302188f833 fix date typo, remove obsolete patch 2023-12-31 12:08:22 +01:00
Karel Zak
58dc9b6959 2.39.3-1: upgrade 2023-12-31 12:05:50 +01:00
Daan De Meyer
9a5289e70c Move sulogin to util-linux-core
An initrd will almost always need sulogin installed for debugging
purposes. This means that we're forced to install the full util-linux
into initrds. Let's allow installing just util-linux-core in initrds
by moving sulogin to util-linux-core.
2023-12-01 20:15:24 +01:00
Karel Zak
59309f26f2 2.39.2-1: upgrade 2023-08-17 12:13:31 +02:00
Fedora Release Engineering
0b1e1d7cfe Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:19:50 +00:00
Python Maint
8760847a17 Rebuilt for Python 3.12 2023-06-28 19:05:08 +02:00
Karel Zak
b2320e7499 2.39.1-1: upgrade 2023-06-28 10:53:17 +02:00
Python Maint
b04999a5a6 Rebuilt for Python 3.12 2023-06-13 20:42:57 +02:00
Karel Zak
7961e208cd 2.39-4: libmount fix 2023-05-25 12:31:34 +02:00
Karel Zak
db855d07b8 2.39-3: fix mount options 2023-05-22 15:57:23 +02:00
Adam Williamson
fe2d027119 Have util-linux obsolete and provide util-linux-user 2023-05-18 09:31:58 -07:00
Karel Zak
844dcc152c 2.39-1: upgrade, add subpackage i18n, remove user 2023-05-18 11:36:49 +02:00
Karel Zak
c87ed81c2c 2.39-0.5: upgrade to 2.39-rc3 2023-04-19 11:39:42 +02:00
Karel Zak
09904cbd56 2.39-0.4: fix libmount 2023-04-05 21:59:20 +02:00
Karel Zak
5fa93ec5e0 fix spec file for -rc2 2023-04-04 19:34:43 +02:00
Karel Zak
3bf1f5a44f 2.39-0.2: upgrade to -rc2 2023-04-04 14:59:49 +02:00
Karel Zak
4ffd39d553 commit missing files 2023-03-21 19:34:04 +01:00
Karel Zak
a228e53a4b 2.39-0.1: upgrade to -rc1 2023-03-20 13:55:14 +01:00
Fedora Release Engineering
a04c11370c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:01:31 +00:00
Florian Weimer
d65ce0b32c Backport upstream patch to fix C99 issue in kill
It is again necessary to run autotools during the build.

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2022-12-17 21:40:37 +01:00
Karel Zak
260ccc24c5 2.38.1-2: improve tmpfiles.d use 2022-08-22 12:00:27 +02:00
Karel Zak
c96992b25e 2.38.1-1: upgrade 2022-08-04 16:04:00 +02:00
Fedora Release Engineering
dd1f0e5a82 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:35:51 +00:00
Python Maint
f64c455630 Rebuilt for Python 3.11 2022-06-13 15:08:44 +02:00
Karel Zak
1f18765a68 2.38-3: fix changelog 2022-04-13 20:47:23 +02:00
6c5649c0b6 Simplify creation of /etc/mtab symlink
It was created unconditionally in %post, so the original contents (if
any) were overwritten. Listing is as %config was just misleading.
Let's simply list the symlink as normal contents in the rpm, so that
rpm can install the symlink for us.

(The scriplet was missing a dependency on coreutils for ln, but let's
not add that if we can drop the whole thing.)

[kzak@redhat.com: - add %changelog entry]
2022-03-30 13:33:13 +02:00
Karel Zak
6578411a87 2.38-1: upgrade, spec file cleanup 2022-03-30 13:15:41 +02:00
3b965f951d Modernize style
Guidelines say %global should be used instead of %define.
Also drop periods from Summary, add them to %description.
%__sed and friends are deprecated.
2022-03-30 13:05:58 +02:00
c409cb5073 Drop very old upgrade scriptlet for libblkid
It was there in the initial commit in 2011, but it looks like it is
older than that.
2022-03-30 12:58:54 +02:00
Karel Zak
f3b1a65177 2.38-rc3: upgrade 2022-03-16 09:54:43 +01:00
Karel Zak
5abc3df64a 2.38-0.3: add /usr/lib/tmpfiles.d/uuidd.conf 2022-02-02 12:23:05 +01:00
f9a78e1def 2.38-0.2: Release ownership of /var/log/lastlog
/var/log directory is provided by filesystem package, no need to create
it. And systemd >= 235 will create /var/log/lastlog owned by utmp. So
release ownership of the file, and let systemd manage it.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1798685.
Similar change in setup: https://pagure.io/setup/pull-request/30.
2022-02-02 11:23:26 +01:00
Karel Zak
f55af7b31a add v2.38-rc1 sources 2022-01-31 16:32:09 +01:00
Karel Zak
93b5e7b623 2.38-0.1: upgrade to v2.38-rc1 2022-01-31 16:22:25 +01:00
Fedora Release Engineering
b3ca809df8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:42:53 +00:00
Karel Zak
2abaf6eb96 2.37.2-1: upgrade 2021-08-17 10:43:34 +02:00
Fedora Release Engineering
f9f53d46a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:13:49 +00:00
Karel Zak
31097faf0c 2.37-5: remove util-linux-60-raw.rules 2021-07-14 18:20:13 +02:00
Karel Zak
e7be6ae5f5 2.37-4: fix #1981729 (close_range(), remove raw(8) and PCRE2 use) 2021-07-14 18:08:26 +02:00
Richard W.M. Jones
cca6bc092d Rebuild for updated pcre2
The package fails to install in Rawhide at the moment with:

DEBUG util.py:444:  Error:
DEBUG util.py:444:   Problem: package util-linux-2.37-2.fc35.x86_64 requires util-linux-core = 2.37-2.fc35, but none of the providers can be installed
DEBUG util.py:444:    - conflicting requests
DEBUG util.py:444:    - nothing provides libpcre2-posix.so.2()(64bit) needed by util-linux-core-2.37-2.fc35.x86_64

This is my attempt to see if I can fix this with a simple rebuild.  If
not I will file a bug.
2021-06-16 11:55:58 +01:00
Python Maint
e86e462be5 Rebuilt for Python 3.10 2021-06-04 21:19:06 +02:00
Karel Zak
b50e3f3a07 2.37-1: upgrade, add util-linux-core 2021-06-01 12:23:41 +02:00
Karel Zak
f00635cf14 2.37-0.1: upgrade to upstream v2.37-rc2 2021-05-14 10:42:53 +02:00
985b3cb330 Make changelog chronological again 2021-04-21 17:04:24 +02:00
05489e2334 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:05 +01:00
2002e7d438 2.36.2-2: Spec file cleanup
[kzak@redhat.com: - add changelog entry to spec file]
2021-03-02 13:00:11 +01:00
Karel Zak
8abfa74392 2.36.2-1: upgrade 2021-02-12 16:14:51 +01:00
Kelvin Fan
1c853c1f4b 2.36.1-4: Add patch to add /run/motd.d to default MOTD_FILE in login(1) 2021-01-27 17:19:12 +01:00
Karel Zak
b188598d35 2.36.1-3: improve uuidd scriptlets
It seems we need to explicitly restart and uninstall uuiddd.socket
unit too.
2021-01-14 15:42:41 +01:00
Tom Stellard
08aad7c190 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 00:31:51 +00:00
Karel Zak
5977e189d6 2.36.1-2: cleanup patches, fix 'symfollow' mount issue 2020-11-19 11:50:25 +01:00
Karel Zak
347549f079 upload sources 2020-11-16 15:32:39 +01:00
Karel Zak
c48435329a 2.36.1: upgrade 2020-11-16 14:56:03 +01:00
Tom Stellard
b441300c92 v2.36-4: Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro

[kzak@redhat.com: - port to the current master branch]
2020-11-12 11:10:09 +01:00
Karel Zak
b0e9e3bcb8 2.36-3: #1860461 - sfdisk gaps
and add autotools to BuildRequires
2020-09-01 13:40:56 +02:00
Karel Zak
16f25ffc54 2.36-3: remove libmount mountinfo workaround 2020-09-01 12:45:28 +02:00
Fedora Release Engineering
5aecaa99fe - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:28:25 +00:00
Karel Zak
f991f6faa9 2.36-1: upgrade 2020-07-23 14:51:41 +02:00
98af691bc7 Merge #5 Minor conditional tweaks for ELN 2020-06-23 10:41:51 +00:00
Miro Hrončok
ed9b0d3627 Rebuilt for Python 3.9 2020-05-26 03:54:15 +02:00
Karel Zak
acc3919c15 new v2.35.2 tarball 2020-05-20 17:09:41 +02:00
Karel Zak
e998a685f7 2.35.2-1: upstream stable update 2020-05-20 17:06:23 +02:00
098671aa4d Minor conditional tweaks for ELN
Signed-off-by: Troy Dawson tdawson@redhat.com
2020-05-13 19:06:17 +00:00
Karel Zak
fe0e3c7437 2.35.1-9: fix typo 2020-04-15 10:29:57 +02:00
Karel Zak
7c81cc769f 2.35.1-8: fix #1822226 #1823463 2020-04-15 09:57:05 +02:00
Kalev Lember
580f0fece0 Another attempt at enabling fstrim.timer on F32 upgrades (#1811506)
Avoid using %systemd_post as it is guarding the trigger with '$1 -eq 1'
which not true for %triggerpostun (it's 2 for updates in triggerpostun).

Also, while at this, fine-tune the trigger condition to trigger for
package updates from older F32 versions as well -- this makes it much
easier to test this fix, and also fixes fstrim.timer for anyone who
installed from F32 beta media.
2020-03-24 13:50:01 +01:00
Karel Zak
9a75633915 2.35.1-6: fix #1811506 (triggerpostun) 2020-03-19 10:22:45 +01:00
Karel Zak
f1bf9845c3 2.35.1-5: fix lsblk -P 2020-02-25 16:01:23 +01:00
Karel Zak
20ae04497c 2.35.1-4: enable fstrim.timer when upgrading
During upgrades of Fedora 30/31 to 32/33, enable fstrim.timer per
the new vendor preset so they're the same as a clean install.

Addresses: https://fedoraproject.org/wiki/Changes/EnableFSTrimTimer
Addresses: https://pagure.io/fesco/issue/2309
2020-02-06 11:59:30 +01:00
Karel Zak
2831759869 2.35.1-3: fix fstrim.service 2020-02-04 16:34:54 +01:00
Karel Zak
523a7c4f54 2.35.1-2: sfdisk issue 2020-02-04 15:31:56 +01:00
Karel Zak
086a8aa5c9 2.35.1-1: upstream upgrade 2020-02-03 12:08:46 +01:00
Fedora Release Engineering
028de3ee58 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 02:50:05 +00:00
Karel Zak
b3e437baf2 2.35-1: upgrade 2020-01-21 12:13:20 +01:00
Karel Zak
7c4fd7f42a 2.35-0.5: upgrade to usptream -rc2 2020-01-09 10:48:10 +01:00
Karel Zak
80deb77249 2.35-0.4: fix agetty 2019-12-20 15:10:19 +01:00
Karel Zak
a61dbe7cc6 2.35-0.3: upgrade to upstream snapshot 2019-12-20 13:26:59 +01:00
Adam Williamson
2cde2b2546 Revert upstream commit 7ef86a0 to fix RHBZ #1783066 2019-12-12 18:07:54 -08:00
Karel Zak
42ab31a080 2.35-0.1: upgrade to usptream release 2019-12-11 12:57:10 +01:00
Karel Zak
707076abd5 2.34-6: mountinfo issue 2019-09-13 09:53:00 +02:00
Karel Zak
83243ee93c 2.34-5: #1751290 (lsblk) 2019-09-12 11:36:01 +02:00
Karel Zak
4ac61ab4ac 2.34-4: add BuildRequires: readline
Note that the library is already in Fedora minimal base.
2019-09-05 13:04:30 +02:00
Miro Hrončok
4820f4132a Rebuilt for Python 3.8 2019-08-19 11:08:55 +02:00
Karel Zak
a1ba076eea 2.34-2: add BuildRequires: librtas-devel 2019-07-24 17:00:02 +02:00
Karel Zak
a495296401 2.34-1: upstream version upgrade 2019-06-14 14:03:34 +02:00
Karel Zak
c0267df5f2 2.34-0.2: new sources 2019-05-30 12:50:39 +02:00
Karel Zak
7748eaf530 2.34-0.2: upgrade 2019-05-30 12:44:03 +02:00
Karel Zak
351fc04cd1 2.34-0.1: upgrade 2019-05-02 10:03:39 +02:00
Karel Zak
5ecbe52e91 2.33.2-1: upgrade 2019-04-09 16:14:33 +02:00
6469bd527b
Remove obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-03-07 11:20:51 +01:00
Fedora Release Engineering
8645c3a8bd - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 10:59:49 +00:00
11d74871f2 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:53 +01:00
7152f9510d
Rebuilt for libcrypt.so.2 (#1666033) 2019-01-14 18:53:50 +01:00
Karel Zak
ffe5e68263 2.33.1-1: upgrade 2019-01-09 11:54:05 +01:00
Karel Zak
bdd2c5116b fix build on s390 2018-11-01 11:24:45 +01:00
Karel Zak
a3884eaf3e 2.33-0.1: upgrade, ldconfig 2018-11-01 10:09:29 +01:00
17 changed files with 2935 additions and 2591 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

41
.gitignore vendored
View file

@ -65,3 +65,44 @@
/util-linux-2.32-rc1.tar.xz
/util-linux-2.32.tar.xz
/util-linux-2.32.1.tar.xz
/util-linux-2.33-rc2.tar.xz
/util-linux-2.33.1.tar.xz
/util-linux-2.33.2.tar.xz
/util-linux-2.34-rc1.tar.xz
/util-linux-2.34-rc2.tar.xz
/util-linux-2.34.tar.xz
/util-linux-2.35-rc1.tar.xz
/util-linux-2.35-rc1-20-63f8.tar.xz
/util-linux-2.35-rc2.tar.xz
/util-linux-2.35.tar.xz
/util-linux-2.35.1.tar.xz
/util-linux-2.35.2.tar.xz
/util-linux-2.36.tar.xz
/util-linux-2.36.1.tar.xz
/util-linux-2.36.2.tar.xz
/util-linux-2.37-rc2.tar.xz
/util-linux-2.37.tar.xz
/util-linux-2.37.2.tar.xz
/util-linux-2.38-rc1.tar.xz
/util-linux-2.38-rc3.tar.xz
/util-linux-2.38.tar.xz
/util-linux-2.38.1.tar.xz
/util-linux-2.39-rc1.tar.xz
/util-linux-2.39-rc2.tar.xz
/util-linux-2.39-rc3.tar.xz
/util-linux-2.39.tar.xz
/util-linux-2.39.1.tar.xz
/util-linux-2.39.2.tar.xz
/util-linux-2.39.3.tar.xz
/util-linux-2.40-rc1.tar.xz
/util-linux-2.40.tar.xz
/util-linux-2.40.1.tar.xz
/util-linux-2.40.2.tar.xz
/util-linux-2.40.4.tar.xz
/util-linux-2.41.tar.xz
/util-linux-2.41.1.tar.xz
/util-linux-2.41.2.tar.xz
/util-linux-2.41.3.tar.xz
/util-linux-2.42.tar.xz
/util-linux-2.42.1.tar.xz
/util-linux-2.42.2.tar.xz

View file

@ -0,0 +1,27 @@
From a2357184ff3dc3beb001fcb12e1e4c0dcf8d0dbd Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 2 Dec 2025 16:15:44 +0100
Subject: login: use O_CREAT on lastlog
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=151635
Signed-off-by: Karel Zak <kzak@redhat.com>
---
login-utils/login.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/login-utils/login.c b/login-utils/login.c
index 321f9d6ce..edc69fd9a 100644
--- a/login-utils/login.c
+++ b/login-utils/login.c
@@ -682,7 +682,7 @@ static void log_lastlog(struct login_context *cxt)
sa.sa_handler = SIG_IGN;
sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
if (fd < 0)
goto done;
offset = cxt->pwd->pw_uid * sizeof(ll);
--
2.51.1

View file

@ -0,0 +1,27 @@
From 617a887a6ec7e433f6a9f4c60592ed38b12b9f18 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 2 Dec 2025 16:17:55 +0100
Subject: login: add /run/motd.d` to the hardcoded MOTD_FILE
Addresses: https://github.com/coreos/console-login-helper-messages/issues/60
Signed-off-by: Karel Zak <kzak@redhat.com>
---
include/pathnames.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/pathnames.h b/include/pathnames.h
index 34ba11ca3..c91a077e1 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -41,7 +41,7 @@
#ifndef _PATH_MAILDIR
# define _PATH_MAILDIR "/var/spool/mail"
#endif
-#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd"
+#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d"
#ifndef _PATH_NOLOGIN
# define _PATH_NOLOGIN "/etc/nologin"
#endif
--
2.51.1

View file

@ -1,12 +0,0 @@
diff -up util-linux-2.28/login-utils/login.c.kzak util-linux-2.28/login-utils/login.c
--- util-linux-2.28/login-utils/login.c.kzak 2016-03-08 14:28:16.724156218 +0100
+++ util-linux-2.28/login-utils/login.c 2016-04-26 12:45:29.235326017 +0200
@@ -510,7 +510,7 @@ static void log_lastlog(struct login_con
sa.sa_handler = SIG_IGN;
sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
if (fd < 0)
goto done;

2341
changelog Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,148 +0,0 @@
From 651c5d428c2ef103ee8c5b1a310d6f29f0304744 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 27 Mar 2018 10:40:13 +0200
Subject: [PATCH] column: fix leading space characters bug
The bug has been introduced during column(1) rewrite. The function
read_input() need to skip leading space only temporary to detect empty
lines, but the rest of the code has to use the original buffer (line).
I've tried to fix one of the symptoms by 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa
(alter), but this solution is unnecessary and too complex.
Changes:
* don't ignore leading space
* remove unnecessary stuff introduced by 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa
* fix regression test with incorrect separator
Addresses: https://github.com/karelzak/util-linux/issues/575
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1560283
Signed-off-by: Karel Zak <kzak@redhat.com>
---
tests/expected/column/table-input-separator-space | 2 +-
tests/ts/column/table | 2 +-
text-utils/column.c | 36 ++---------------------
4 files changed, 5 insertions(+), 38 deletions(-)
diff --git a/tests/expected/column/table-input-separator-space b/tests/expected/column/table-input-separator-space
index 8a6513c11..25d9b5ab0 100644
--- a/tests/expected/column/table-input-separator-space
+++ b/tests/expected/column/table-input-separator-space
@@ -1,5 +1,5 @@
AAA BBBB C DDDD
-BBB CCCC DDD
+ BBB CCCC DDD
AA BB DD
AAAA B CC D
AA CC DD
diff --git a/tests/ts/column/table b/tests/ts/column/table
index 27b52e7c8..5c89d5eaf 100755
--- a/tests/ts/column/table
+++ b/tests/ts/column/table
@@ -37,7 +37,7 @@ $TS_CMD_COLUMN --separator ',' --table $TS_SELF/files/table-sep >> $TS_OUTPUT 2>
ts_finalize_subtest
ts_init_subtest "input-separator-space"
-$TS_CMD_COLUMN --separator ',' --table $TS_SELF/files/table-sep-space >> $TS_OUTPUT 2>&1
+$TS_CMD_COLUMN --separator "$(echo -e '\t')" --table $TS_SELF/files/table-sep-space >> $TS_OUTPUT 2>&1
ts_finalize_subtest
ts_init_subtest "long"
diff --git a/text-utils/column.c b/text-utils/column.c
index 89d46d280..195814328 100644
--- a/text-utils/column.c
+++ b/text-utils/column.c
@@ -86,7 +86,6 @@ struct column_control {
const char *tree_parent;
wchar_t *input_separator;
- char *input_separator_raw;
const char *output_separator;
wchar_t **ents; /* input entries */
@@ -96,7 +95,6 @@ struct column_control {
unsigned int greedy :1,
json :1,
header_repeat :1,
- input_sep_space : 1, /* input separator contains space chars */
tab_noheadings :1;
};
@@ -470,19 +468,7 @@ static int read_input(struct column_control *ctl, FILE *fp)
char *buf = NULL;
size_t bufsz = 0;
size_t maxents = 0;
- int rc = 0, is_space_sep = 0;
-
- /* Check if columns separator contains spaces chars */
- if (ctl->mode == COLUMN_MODE_TABLE && ctl->input_separator_raw) {
- char *p;
-
- for (p = ctl->input_separator_raw; *p; p++) {
- if (isspace(*p)) {
- is_space_sep = 1;
- break;
- }
- }
- }
+ int rc = 0;
/* Read input */
do {
@@ -496,19 +482,6 @@ static int read_input(struct column_control *ctl, FILE *fp)
err(EXIT_FAILURE, _("read failed"));
}
str = (char *) skip_space(buf);
-
- /* The table columns separator could be a space. In this case
- * don't skip the separator if at begin of the line. For example:
- *
- * echo -e "\tcol1\tcol2\nrow\t1\t2" \
- * | column -t -s "$(echo -e '\t')" --table-columns A,B,C
- */
- if (is_space_sep && str > buf) {
- char *x = strpbrk(buf, ctl->input_separator_raw);
- if (x && x < str)
- str = x;
- }
-
if (str) {
p = strchr(str, '\n');
if (p)
@@ -517,13 +490,13 @@ static int read_input(struct column_control *ctl, FILE *fp)
if (!str || !*str)
continue;
- wcs = mbs_to_wcs(str);
+ wcs = mbs_to_wcs(buf);
if (!wcs) {
/*
* Convert broken sequences to \x<hex> and continue.
*/
size_t tmpsz = 0;
- char *tmp = mbs_invalid_encode(str, &tmpsz);
+ char *tmp = mbs_invalid_encode(buf, &tmpsz);
if (!tmp)
err(EXIT_FAILURE, _("read failed"));
@@ -720,7 +693,6 @@ int main(int argc, char **argv)
ctl.output_separator = " ";
ctl.input_separator = mbs_to_wcs("\t ");
- ctl.input_separator_raw = xstrdup("\t ");
while ((c = getopt_long(argc, argv, "c:dE:eH:hi:JN:n:O:o:p:R:r:s:T:tVW:x", longopts, NULL)) != -1) {
@@ -775,9 +747,7 @@ int main(int argc, char **argv)
break;
case 's':
free(ctl.input_separator);
- free(ctl.input_separator_raw);
ctl.input_separator = mbs_to_wcs(optarg);
- ctl.input_separator_raw = xstrdup(optarg);
ctl.greedy = 0;
break;
case 'T':
--
2.14.3

5
plans/ci.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (util-linux-2.32.1.tar.xz) = 267fedae24a874ee4dc558081f6b8d07b33b955b0635f3348f021c111c17f2e95c01b2cbf909fe13c6ca448cbcf23c658c75f72f25749aa65e99f68fabb94698
SHA512 (util-linux-2.42.2.tar.xz) = 7415add0be2930654e322830808dde03ff6d511bd357f0679e6b6287a13ca79fe58ce4ac05edef86b76fb381b3a36ca2da9d3c31b5dc0a1d889c203156a57277

View file

@ -1,13 +0,0 @@
# Test which run in classic and docker environemnt
- hosts: localhost
tags:
- classic
- container
- atomic
roles:
- role: standard-test-beakerlib
tests:
- various
required_packages:
- util-linux
- util-linux-user

13
tests/various/main.fmf Normal file
View file

@ -0,0 +1,13 @@
summary: This test groups small sanity and regression tests for util-linux
description: ''
contact: Miroslav Vadkerti <mvadkert@redhat.com>
component:
- util-linux
test: ./runtest.sh
framework: beakerlib
recommend:
- util-linux
- util-linux-user
duration: 10m
extra-summary: /CoreOS/util-linux/Sanity/various
extra-task: /CoreOS/util-linux/Sanity/various

View file

@ -27,7 +27,6 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
#. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="util-linux"

View file

@ -1,8 +0,0 @@
#
# Enter raw device bindings here.
#
# An example would be:
# ACTION=="add", KERNEL=="sda", RUN+="/usr/bin/raw /dev/raw/raw1 %N"
# to bind /dev/raw/raw1 to /dev/sda, or
# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/usr/bin/raw /dev/raw/raw2 %M %m"
# to bind /dev/raw/raw2 to the device with major 8, minor 1.

View file

@ -7,7 +7,6 @@ password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session required pam_namespace.so

View file

@ -1,4 +1,5 @@
#%PAM-1.0
auth required pam_env.so
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid

File diff suppressed because it is too large Load diff

1
uuidd-tmpfiles.conf Normal file
View file

@ -0,0 +1 @@
d /run/uuidd 2775 uuidd uuidd