public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Rebase to 6.0 alpha (https://fedoraproject.org/wiki/Changes/RPM-6.0)
Date: Mon, 23 Nov 2026 09:35:55 GMT	[thread overview]
Message-ID: <179542655504.1.15164381055220499785.rpms-rpm-488adc89fe6f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 488adc89fe6f8a214461ab9d12b2dda3ad852249
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2025-04-15T11:11:19+03:00
            Stats  : +32/-125 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/488adc89fe6f8a214461ab9d12b2dda3ad852249?branch=pmatilai-v6

            Log:
            Rebase to 6.0 alpha (https://fedoraproject.org/wiki/Changes/RPM-6.0)

Disable enforcing signature checking initially (ie back to rpm 4.x level)
to give everybody some more time to adapt.

The clamp_mtime revert patch doesn't come anywhere near applying as-is.
Fixup the actual code part of the patch and truncate the test-suite side,
the test-suite doesn't get run in the course of fedora builds so fixing that
is just not worth the trouble.

Take the opportunity to clean up historical cruft from %install section.

---
diff --git a/.gitignore b/.gitignore
index 32a0ed8..ef48122 100644
--- a/.gitignore
+++ b/.gitignore
@@ -69,3 +69,4 @@
 /rpm-4.19.94.tar.bz2
 /rpm-4.20.0.tar.bz2
 /rpm-4.20.1.tar.bz2
+/rpm-5.99.90.tar.bz2

diff --git a/0001-Revert-Add-a-deprecation-warning-for-clamp_mtime_to_.patch b/0001-Revert-Add-a-deprecation-warning-for-clamp_mtime_to_.patch
index b05fe1f..b961c98 100644
--- a/0001-Revert-Add-a-deprecation-warning-for-clamp_mtime_to_.patch
+++ b/0001-Revert-Add-a-deprecation-warning-for-clamp_mtime_to_.patch
@@ -12,10 +12,10 @@ This reverts commit 4965331a55cedda5e423fe050e8da1245ab8b069.
  tests/rpmbuild.at                       | 28 +++----------------------
  4 files changed, 8 insertions(+), 28 deletions(-)
 
-diff --git a/build/files.c b/build/files.c
+diff --git a/build/files.cc b/build/files.cc
 index 2f7d1261a..eb0c26300 100644
---- a/build/files.c
-+++ b/build/files.c
+--- a/build/files.cc
++++ b/build/files.cc
 @@ -1044,8 +1044,6 @@ static void genCpioListAndHeader(FileList fl, rpmSpec spec, Package pkg, int isS
          if (srcdate && rpmExpandNumeric("%{?clamp_mtime_to_source_date_epoch}")) {
  	    free(mtime_policy_str);
@@ -25,94 +25,3 @@ index 2f7d1261a..eb0c26300 100644
  	}
      }
  
-diff --git a/tests/data/SPECS/source_date_epoch.spec b/tests/data/SPECS/source_date_epoch.spec
-index 3436b243f..77f87cc02 100644
---- a/tests/data/SPECS/source_date_epoch.spec
-+++ b/tests/data/SPECS/source_date_epoch.spec
-@@ -5,6 +5,10 @@ Summary: test SOURCE_DATE_EPOCH
- License: GPLv2
- BuildArch: noarch
- 
-+%global source_date_epoch_from_changelog 0
-+%global clamp_mtime_to_source_date_epoch 1
-+%global use_source_date_epoch_as_buildtime 1
-+
- %description
- 
- %build
-diff --git a/tests/pinned/common/buildrepr.sh b/tests/pinned/common/buildrepr.sh
-index f1cdd5174..e4bacb2db 100644
---- a/tests/pinned/common/buildrepr.sh
-+++ b/tests/pinned/common/buildrepr.sh
-@@ -6,7 +6,7 @@ runroot rpmbuild -bb --quiet \
- 	--define "_buildhost localhost" \
- 	--define "use_source_date_epoch_as_buildtime 1" \
- 	--define "source_date_epoch_from_changelog 1" \
--	--define "build_mtime_policy clamp_to_source_date_epoch" \
-+	--define "clamp_mtime_to_source_date_epoch 1" \
- 	--define "_use_weak_usergroup_deps 0" \
- 	/data/SPECS/attrtest.spec
- 
-diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at
-index 0e1c628d6..ecd5c09b4 100644
---- a/tests/rpmbuild.at
-+++ b/tests/rpmbuild.at
-@@ -618,7 +618,7 @@ runroot \
-   rpmbuild \
-   -bb --quiet \
-   --define "use_source_date_epoch_as_buildtime 1" \
--  --define "build_mtime_policy clamp_to_source_date_epoch" \
-+  --define "clamp_mtime_to_source_date_epoch 1" \
-   /data/SPECS/attrtest.spec
- 
- RPMTEST_CHECK([[
-@@ -689,7 +689,7 @@ runroot \
-   rpmbuild \
-   -bb --quiet \
-   --define "use_source_date_epoch_as_buildtime 1" \
--  --define "build_mtime_policy clamp_to_source_date_epoch" \
-+  --define "clamp_mtime_to_source_date_epoch 1" \
-   /data/SPECS/source_date_epoch.spec
- 
- runroot rpm -q --dump /build/RPMS/noarch/test-1-1.noarch.rpm
-@@ -710,7 +710,7 @@ runroot \
-   rpmbuild \
-   -bb --quiet \
-   --define "use_source_date_epoch_as_buildtime 1" \
--  --define "build_mtime_policy clamp_to_source_date_epoch" \
-+  --define "clamp_mtime_to_source_date_epoch 1" \
-   /data/SPECS/source_date_epoch.spec
- 
- runroot rpm -q --dump /build/RPMS/noarch/test-1-1.noarch.rpm
-@@ -721,28 +721,6 @@ runroot rpm -q --dump /build/RPMS/noarch/test-1-1.noarch.rpm
- [])
- RPMTEST_CLEANUP
- 
--AT_SETUP([rpmbuild _buildtime macro])
--AT_KEYWORDS([build])
--RPMTEST_CHECK([
--RPMDB_INIT
--
--runroot \
--  rpmbuild \
--  -bb --quiet \
--  --define "_buildtime 1699460418" \
--  --define "build_mtime_policy clamp_to_buildtime" \
--  /data/SPECS/source_date_epoch.spec
--
--runroot rpm -q --dump /build/RPMS/noarch/test-1-1.noarch.rpm
--runroot rpm -q --qf '%{BUILDTIME}\n' /build/RPMS/noarch/test-1-1.noarch.rpm
--],
--[0],
--[/0.txt 15 1699460418 91751cee0a1ab8414400238a761411daa29643ab4b8243e9a91649e25be53ada 0100644 root root 0 0 0 X
--1699460418
--],
--[])
--RPMTEST_CLEANUP
--
- AT_SETUP([rpmbuild unpackaged files])
- AT_KEYWORDS([build])
- RPMDB_INIT
--- 
-2.45.1
-

diff --git a/rpm.spec b/rpm.spec
index c3a896b..437c0a1 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -24,9 +24,9 @@
 
 %define rpmhome /usr/lib/rpm
 
-%global rpmver 4.20.1
+%global rpmver 5.99.90
 #global snapver rc1
-%global baserelease 3
+%global baserelease 1
 %global sover 10
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -64,7 +64,7 @@ Obsoletes: python2-rpm < %{version}-%{release}
 # is a bit special...
 BuildRequires: redhat-rpm-config >= 94
 BuildRequires: systemd-rpm-macros
-BuildRequires: gcc make
+BuildRequires: gcc gcc-c++ make
 BuildRequires: cmake >= 3.18
 BuildRequires: gawk
 BuildRequires: elfutils-devel >= 0.112
@@ -90,14 +90,7 @@ BuildRequires: libzstd-devel
 BuildRequires: sqlite-devel
 %endif
 
-# Needed for re-building the documentation and man pages
-# normally those are shipped in the tarball pre-build
-# but need re-building if sources are patched
-%if 0
-BuildRequires: pandoc
-BuildRequires: doxygen
-%endif
-
+BuildRequires: doxygen scdoc
 BuildRequires: rpm-sequoia-devel >= 1.4.0
 
 # Couple of patches change makefiles so, require for now...
@@ -358,6 +351,9 @@ change.
 %prep
 %autosetup -n rpm-%{srcver} -p1
 
+# back out of enforcing signature checking until the build tooling works with it
+sed -i -e "s:%%_pkgverify_level all:%%_pkgverify_level digest:g" macros.in
+
 %build
 %set_build_flags
 
@@ -373,6 +369,7 @@ cmake \
       %{?with_fsverity:-DWITH_FSVERITY=ON} \
       %{?with_libimaevm:-DWITH_IMAEVM=ON} \
       %{!?with_check:-DENABLE_TESTSUITE=OFF} \
+      -DWITH_DOXYGEN=ON \
       -DRPM_VENDOR=redhat \
   ..
 
@@ -391,11 +388,6 @@ cd ..
 mkdir -p $RPM_BUILD_ROOT%{_unitdir}
 install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/%{_unitdir}
 
-mkdir -p $RPM_BUILD_ROOT%{rpmhome}
-
-# Built-in replacement for systemd-sysusers(8)
-install -m 755 scripts/sysusers.sh $RPM_BUILD_ROOT/%{rpmhome}
-
 # Save list of packages through cron
 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily
 install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
@@ -403,8 +395,6 @@ install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
 install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm
 
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
-mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d
 mkdir -p $RPM_BUILD_ROOT/usr/lib/sysimage/rpm
 cd _build
 
@@ -420,8 +410,6 @@ ln -s ../../bin/find-debuginfo $RPM_BUILD_ROOT/usr/lib/rpm/find-debuginfo.sh
 
 %find_lang rpm
 
-find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f
-
 # These live in perl-generators and python-rpm-generators now
 rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
 rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
@@ -471,13 +459,16 @@ fi
 %{_bindir}/rpmverify
 %{_bindir}/rpmsort
 
+%{_mandir}/man1/rpm2archive.1*
+%{_mandir}/man1/rpm2cpio.1*
+%{_mandir}/man1/rpmsort.1*
+%{_mandir}/man5/rpm-config.5*
+%{_mandir}/man5/rpm-macrofile.5*
+%{_mandir}/man5/rpm-rpmrc.5*
 %{_mandir}/man8/rpm.8*
 %{_mandir}/man8/rpmdb.8*
 %{_mandir}/man8/rpmkeys.8*
-%{_mandir}/man8/rpm2archive.8*
-%{_mandir}/man8/rpm2cpio.8*
-%{_mandir}/man8/rpm-misc.8*
-%{_mandir}/man8/rpmsort.8*
+%{_mandir}/man8/rpm-common.8*
 %{_mandir}/man8/rpm-plugins.8*
 
 %attr(0755, root, root) %dir %{rpmhome}
@@ -579,10 +570,11 @@ fi
 %{_bindir}/rpmlua
 
 %{_mandir}/man1/gendiff.1*
-%{_mandir}/man8/rpmbuild.8*
-%{_mandir}/man8/rpmdeps.8*
-%{_mandir}/man8/rpmspec.8*
-%{_mandir}/man8/rpmlua.8*
+%{_mandir}/man1/rpmbuild.1*
+%{_mandir}/man1/rpmdeps.1*
+%{_mandir}/man1/rpmspec.1*
+%{_mandir}/man1/rpmlua.1*
+%{_mandir}/man1/rpm-setup-autosign.1*
 
 %{rpmhome}/brp-*
 %{rpmhome}/check-*
@@ -596,10 +588,11 @@ fi
 %{rpmhome}/find-debuginfo.sh
 %{rpmhome}/rpmuncompress
 %{rpmhome}/rpmdump
+%{rpmhome}/rpm-setup-autosign
 
 %files sign
 %{_bindir}/rpmsign
-%{_mandir}/man8/rpmsign.8*
+%{_mandir}/man1/rpmsign.1*
 
 %files -n python3-%{name}
 %dir %{python3_sitearch}/rpm
@@ -613,7 +606,7 @@ fi
 %{_defaultdocdir}/rpm/examples/
 
 %files devel
-%{_mandir}/man8/rpmgraph.8*
+%{_mandir}/man1/rpmgraph.1*
 %{_bindir}/rpmgraph
 %{_libdir}/librp*[a-z].so
 %{_libdir}/pkgconfig/rpm.pc
@@ -629,6 +622,10 @@ fi
 %doc %{_defaultdocdir}/rpm/API/
 
 %changelog
+* Mon Apr 14 2025 Panu Matilainen <pmatilai@redhat.com> - 5.99.90-1
+- Rebase to 6.0 alpha (https://fedoraproject.org/wiki/Changes/RPM-6.0)
+- Disable enforcing signature checking initially (ie back to rpm 4.x level)
+
 * Mon Mar 31 2025 Panu Matilainen <pmatilai@redhat.com> - 4.20.1-3
 - Disable LTO on x86 as a workaround for #2356219
 

diff --git a/sources b/sources
index 8de4941..d544d17 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rpm-4.20.1.tar.bz2) = 77979cb49dec5a8816fc5019cf5d0c817adddec10c0018c8ad9487db8ffc58613557fa21f8e2163b747197b55a6de202c29c88e19b70d1fa6b4c18d3a84bf681
+SHA512 (rpm-5.99.90.tar.bz2) = b18862d60c3dee71867e9ef851903ebc73919cb1fbebb20d46cd8db9bc80985cb0f7a45bdbe2a7d33178b21cd2cdd125cb9f72510860c0f82c24bbc285fa9a84

                 reply	other threads:[~2026-11-23  9:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542655504.1.15164381055220499785.rpms-rpm-488adc89fe6f@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox