public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Update to 4.20 alpha2 (https://rpm.org/wiki/Releases/4.20.0)
@ 2026-11-23 9:35 Michal Domonkos
0 siblings, 0 replies; only message in thread
From: Michal Domonkos @ 2026-11-23 9:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 8cf089a93a22c9113dc630fa24e39cb69912c458
Author : Michal Domonkos <mdomonko@redhat.com>
Date : 2024-05-21T17:31:32+02:00
Stats : +107/-19 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/8cf089a93a22c9113dc630fa24e39cb69912c458?branch=pmatilai-v6
Log:
Update to 4.20 alpha2 (https://rpm.org/wiki/Releases/4.20.0)
---
diff --git a/.gitignore b/.gitignore
index b10de61..e814453 100644
--- a/.gitignore
+++ b/.gitignore
@@ -63,3 +63,4 @@
/rpm-4.19.0.tar.bz2
/rpm-4.19.1.tar.bz2
/rpm-4.19.1.1.tar.bz2
+/rpm-4.19.91.tar.bz2
diff --git a/0001-Ensure-noarch-packages-don-t-get-debuginfo.patch b/0001-Ensure-noarch-packages-don-t-get-debuginfo.patch
new file mode 100644
index 0000000..daedf4a
--- /dev/null
+++ b/0001-Ensure-noarch-packages-don-t-get-debuginfo.patch
@@ -0,0 +1,58 @@
+From 4bc89c300048b82362e31ed9cd4df39867b3b0e4 Mon Sep 17 00:00:00 2001
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Tue, 21 May 2024 12:24:09 +0300
+Subject: [PATCH] Ensure noarch packages don't get debuginfo
+
+Add back the %ifnarch noarch test overconfidently removed in
+commit 8535694599ee7f35747d44e2ea0a62dc5e8880e5, "it's more complicated
+than that". Add a test-case too.
+
+This is band-aid for #3115.
+---
+ macros.in | 2 ++
+ tests/rpmbuild.at | 12 ++++++++++++
+ 2 files changed, 14 insertions(+)
+
+diff --git a/macros.in b/macros.in
+index f43912380..ba661d80a 100644
+--- a/macros.in
++++ b/macros.in
+@@ -195,9 +195,11 @@ package or when debugging this package.\
+ %{nil}
+
+ %debug_package \
++%ifnarch noarch\
+ %global __debug_package 1\
+ %_debuginfo_template\
+ %{?_debugsource_packages:%_debugsource_template}\
++%endif\
+ %{nil}
+
+ %_langpack_template() \
+diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at
+index 0e1c628d6..8a06d8a84 100644
+--- a/tests/rpmbuild.at
++++ b/tests/rpmbuild.at
+@@ -2224,7 +2224,19 @@ No hello.debug
+ [ignore])
+ RPMTEST_CLEANUP
+
++AT_SETUP([explicit %_enable_debug_package on noarch])
++AT_KEYWORDS([build debuginfo])
++RPMTEST_CHECK([
++RPMDB_INIT
+
++runroot rpmbuild --quiet -bb \
++ --define "%_enable_debug_packages 1" \
++ /data/SPECS/hlinktest.spec
++],
++[0],
++[ignore],
++[ignore])
++RPMTEST_CLEANUP
+
+ # ------------------------------
+ # Check dynamic build requires
+--
+2.45.1
+
diff --git a/rpm-4.18.90-weak-user-group.patch b/rpm-4.18.90-weak-user-group.patch
deleted file mode 100644
index 3ba6f29..0000000
--- a/rpm-4.18.90-weak-user-group.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- rpm-4.18.90/macros.in.orig 2023-04-17 14:48:14.802719586 +0200
-+++ rpm-4.18.90/macros.in 2023-04-17 14:48:25.268852972 +0200
-@@ -236,7 +236,7 @@
- %clamp_mtime_to_source_date_epoch 0
-
- # If enabled, dilute user() and group() requires into recommends
--#%_use_weak_usergroup_deps 1
-+%_use_weak_usergroup_deps 1
-
- # The directory where newly built binary packages will be written.
- %_rpmdir %{_topdir}/RPMS
diff --git a/rpm-4.19.91-weak-user-group.patch b/rpm-4.19.91-weak-user-group.patch
new file mode 100644
index 0000000..66a9a33
--- /dev/null
+++ b/rpm-4.19.91-weak-user-group.patch
@@ -0,0 +1,12 @@
+diff -up rpm-4.19.91/macros.in.orig rpm-4.19.91/macros.in
+--- rpm-4.19.91/macros.in.orig 2024-05-21 09:33:40.708581108 +0200
++++ rpm-4.19.91/macros.in 2024-05-21 09:33:43.074568189 +0200
+@@ -246,7 +246,7 @@ Supplements: (%{name} = %{version}-%{r
+ #%build_mtime_policy
+
+ # If enabled, dilute user() and group() requires into recommends
+-#%_use_weak_usergroup_deps 1
++%_use_weak_usergroup_deps 1
+
+ # The directory where newly built binary packages will be written.
+ %_rpmdir %{_topdir}/RPMS
diff --git a/rpm.spec b/rpm.spec
index b6724ee..4923646 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -25,9 +25,9 @@
%define rpmhome /usr/lib/rpm
-%global rpmver 4.19.1.1
+%global rpmver 4.19.91
#global snapver rc1
-%global baserelease 2
+%global baserelease 1
%global sover 10
%global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -50,6 +50,11 @@ Requires: coreutils
Requires: popt%{_isa} >= 1.10.2.1
Requires: curl
Conflicts: systemd < 253.5-6
+# The old %%install hack for debuginfo enablement in redhat-rpm-config is no
+# longer needed and is now unsupported, causing rpmbuild failures. Reflect
+# that here. More details:
+# https://github.com/rpm-software-management/rpm/issues/2204
+Conflicts: redhat-rpm-config < 290-1
Obsoletes: python2-rpm < %{version}-%{release}
# XXX generally assumed to be installed but make it explicit as rpm
@@ -133,10 +138,10 @@ rpm-4.9.90-no-man-dirs.patch
# Disable new user/group handling
rpm-4.18.92-disable-sysusers.patch
-rpm-4.18.90-weak-user-group.patch
+rpm-4.19.91-weak-user-group.patch
# Patches already upstream:
-# ...
+0001-Ensure-noarch-packages-don-t-get-debuginfo.patch
# These are not yet upstream
rpm-4.7.1-geode-i686.patch
@@ -270,6 +275,13 @@ Requires(meta): selinux-policy-base
%description plugin-selinux
%{summary}.
+%package plugin-unshare
+Summary: Rpm plugin for Linux namespace isolation functionality
+Requires: rpm-libs%{_isa} = %{version}-%{release}
+
+%description plugin-unshare
+%{summary}.
+
%package plugin-syslog
Summary: Rpm plugin for syslog functionality
Requires: rpm-libs%{_isa} = %{version}-%{release}
@@ -423,9 +435,6 @@ rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
rm -rf $RPM_BUILD_ROOT/var/tmp
-# workaround for https://github.com/rpm-software-management/rpm/issues/2811
-rm $RPM_BUILD_ROOT/%{_defaultdocdir}/rpm/README.md
-
%pre
# Symlink all rpmdb files to the new location if we're still using /var/lib/rpm
if [ -d /var/lib/rpm ]; then
@@ -488,6 +497,7 @@ fi
%attr(0755, root, root) %dir %{rpmhome}
%{rpmhome}/macros
+%exclude %{rpmhome}/macros.d/macros.transaction*
%{rpmhome}/macros.d
%{rpmhome}/lua
%{rpmhome}/rpmpopt*
@@ -514,47 +524,61 @@ fi
%dir %{_libdir}/rpm-plugins
%files plugin-syslog
+%{rpmhome}/macros.d/macros.transaction_syslog
%{_libdir}/rpm-plugins/syslog.so
%{_mandir}/man8/rpm-plugin-syslog.8*
%files plugin-selinux
+%{rpmhome}/macros.d/macros.transaction_selinux
%{_libdir}/rpm-plugins/selinux.so
%{_mandir}/man8/rpm-plugin-selinux.8*
%files plugin-systemd-inhibit
+%{rpmhome}/macros.d/macros.transaction_systemd_inhibit
%{_libdir}/rpm-plugins/systemd_inhibit.so
%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
%if %{with libimaevm}
%files plugin-ima
+%{rpmhome}/macros.d/macros.transaction_ima
%{_libdir}/rpm-plugins/ima.so
%{_mandir}/man8/rpm-plugin-ima.8*
%endif
%if %{with fsverity}
+%{rpmhome}/macros.d/macros.transaction_fsverity
%files plugin-fsverity
%{_libdir}/rpm-plugins/fsverity.so
%endif
%files plugin-fapolicyd
+%{rpmhome}/macros.d/macros.transaction_fapolicyd
%{_libdir}/rpm-plugins/fapolicyd.so
%{_mandir}/man8/rpm-plugin-fapolicyd.8*
%files plugin-prioreset
+%{rpmhome}/macros.d/macros.transaction_prioreset
%{_libdir}/rpm-plugins/prioreset.so
%{_mandir}/man8/rpm-plugin-prioreset.8*
%files plugin-audit
+%{rpmhome}/macros.d/macros.transaction_audit
%{_libdir}/rpm-plugins/audit.so
%{_mandir}/man8/rpm-plugin-audit.8*
# with plugins
%files plugin-dbus-announce
+%{rpmhome}/macros.d/macros.transaction_dbus_announce
%{_libdir}/rpm-plugins/dbus_announce.so
%{_mandir}/man8/rpm-plugin-dbus-announce.8*
%{_datadir}/dbus-1/system.d/org.rpm.conf
%endif
+%files plugin-unshare
+%{rpmhome}/macros.d/macros.transaction_unshare
+%{_libdir}/rpm-plugins/unshare.so
+%{_mandir}/man8/rpm-plugin-unshare.8*
+
%files build-libs
%{_libdir}/librpmbuild.so.%{sover}
%{_libdir}/librpmbuild.so.%{sover}.*
@@ -586,6 +610,7 @@ fi
%{rpmhome}/fileattrs/*
%{rpmhome}/find-debuginfo.sh
%{rpmhome}/rpmuncompress
+%{rpmhome}/rpmdump
%files sign
%{_bindir}/rpmsign
@@ -619,6 +644,9 @@ fi
%doc %{_defaultdocdir}/rpm/API/
%changelog
+* Tue May 21 2024 Michal Domonkos <mdomonko@redhat.com> - 4.19.91-1
+- Update to 4.20 alpha2 (https://rpm.org/wiki/Releases/4.20.0)
+
* Mon May 06 2024 Miro Hrončok <mhroncok@redhat.com> - 4.19.1.1-2
- During the build, assert the Python modules are importable
diff --git a/sources b/sources
index b595b70..fcf335a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rpm-4.19.1.1.tar.bz2) = 3364c453c29903c144a3680ceca7a17426eb085c288b6313fb7e857a42a5e0a965f623882e0f58e633f8b8770e839d9df9f7653d99c73759af5c89d0a981908d
+SHA512 (rpm-4.19.91.tar.bz2) = 4364b0eafbf8f71c42541b3db9c5f67fdcbd08ac30ab51f3c9169e2b3442095190e7bcd33c6d6650b08461b7879ccdf6e8712afacd36c0e6b99ba9cf9213cd51
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:35 [rpms/rpm] pmatilai-v6: Update to 4.20 alpha2 (https://rpm.org/wiki/Releases/4.20.0) Michal Domonkos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox