[packages/rpm] disable in-rpm sysusers.d processing; rel 5
atler
atler at pld-linux.org
Sat Mar 8 03:11:47 CET 2025
commit e53111464cca85b0f4f2696cfac34a4a2c9f80c2
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Mar 8 01:23:35 2025 +0100
disable in-rpm sysusers.d processing; rel 5
in fresh system it's not possible to install "systemd" package due to
systemd-coredump gid mismatch. rpm creates user/groups from sysusers.d
literally before anything else:
https://github.com/rpm-software-management/rpm/blob/c8dc5ea575a2e9c1488036d12f4b75f6a5a49120/lib/psm.c#L850
and our user/group creation in %pre is way too late to the party
disable-sysusers.patch | 11 +++++++++++
rpm.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/rpm.spec b/rpm.spec
index 97a2fad..74ede8d 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -34,7 +34,7 @@ Summary(ru.UTF-8): Менеджер пакетов от RPM
Summary(uk.UTF-8): Менеджер пакетів від RPM
Name: rpm
Version: 4.20.1
-Release: 4
+Release: 5
Epoch: 1
License: GPL v2 / LGPL v2.1
Group: Base
@@ -88,6 +88,7 @@ Patch29: build-locale.patch
Patch30: no-exe-for-elf-req.patch
Patch31: check-valid-arch-early.patch
Patch32: group-lookup.patch
+Patch33: disable-sysusers.patch
URL: https://rpm.org/
BuildRequires: acl-devel
%{?with_audit:BuildRequires: audit-libs-devel}
@@ -646,6 +647,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
%patch -P 30 -p1
%patch -P 31 -p1
%patch -P 32 -p1
+%patch -P 33 -p1
# generate Group translations to *.po
awk -f %{SOURCE6} %{SOURCE5}
diff --git a/disable-sysusers.patch b/disable-sysusers.patch
new file mode 100644
index 0000000..efc3b80
--- /dev/null
+++ b/disable-sysusers.patch
@@ -0,0 +1,11 @@
+--- rpm-4.20.1/macros.in.orig 2025-03-08 01:04:55.096404276 +0100
++++ rpm-4.20.1/macros.in 2025-03-08 01:10:03.450556930 +0100
+@@ -146,7 +146,7 @@
+
+ # sysusers helper binary (or a replacement script), comment out to disable
+ #%__systemd_sysusers @__SYSTEMD_SYSUSERS@
+-%__systemd_sysusers %{_rpmconfigdir}/sysusers.sh
++#%__systemd_sysusers %{_rpmconfigdir}/sysusers.sh
+
+ #
+ # Path to script that creates debug symbols in a /usr/lib/debug
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/e53111464cca85b0f4f2696cfac34a4a2c9f80c2
More information about the pld-cvs-commit
mailing list