public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Make enforcing signature mode a build-conditional, enable by default
@ 2026-11-23 9:36 Panu Matilainen
0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23 9:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 75bb7d91ab2f73d1fc6592521df7c97d69d9225b
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2026-02-16T09:32:06+02:00
Stats : +13/-15 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/75bb7d91ab2f73d1fc6592521df7c97d69d9225b?branch=pmatilai-v6
Log:
Make enforcing signature mode a build-conditional, enable by default
We may well have to flip this back and forth a few times before
all is said and done, make it painless to do so by turning this into
a build conditional. Since conditionalizing the patch has unwanted
side-effects, switch back to sed-based solution.
Enable enforcing by default as per
https://fedoraproject.org/wiki/Changes/Enforcing_signature_checking_by_default
---
diff --git a/rpm-6.0-vfylevel.patch b/rpm-6.0-vfylevel.patch
deleted file mode 100644
index 3c44126..0000000
--- a/rpm-6.0-vfylevel.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up rpm-5.99.91/macros.in.rpmformat rpm-5.99.91/macros.in
---- rpm-5.99.91/macros.in.rpmformat 2025-07-02 10:35:25.595849666 +0300
-+++ rpm-5.99.91/macros.in 2025-07-02 10:35:38.956370457 +0300
-@@ -676,7 +676,7 @@ Supplements: (%{name} = %{version}-%{r
- # signature require valid signature(s)
- # digest require valid digest(s)
- # none traditional rpm behavior, nothing required
--%_pkgverify_level all
-+%_pkgverify_level digest
-
- # Disabler flags for package verification (similar to vsflags)
- # Set to 0x0 for full compatibility with v4 packages.
diff --git a/rpm.spec b/rpm.spec
index 372c32e..59b18e8 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -20,11 +20,15 @@
# https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
%bcond merged_sbin 1
+# https://fedoraproject.org/wiki/Changes/Enforcing_signature_checking_by_default
+# Upstream defaults to enforcing in >= 6.0, this is backwards compat switch
+%bcond legacy_verify 0
+
%define rpmhome /usr/lib/rpm
%global rpmver 6.0.1
#global snapver rc1
-%global baserelease 4
+%global baserelease 5
%global sover 10
%global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -113,8 +117,6 @@ rpm-4.9.90-no-man-dirs.patch
# Use systemd-sysusers due to https://github.com/shadow-maint/shadow/issues/940
rpm-4.20-sysusers.patch
-# Back out of enforcing signature checking until the infra is updated
-rpm-6.0-vfylevel.patch
# Back out to v4 package format by default until the infra is updated
rpm-6.0-rpmformat.patch
@@ -348,6 +350,10 @@ change.
%prep
%autosetup -n rpm-%{srcver} -p1
+%if %{with legacy_verify}
+sed -i -e "s:%%_pkgverify_level all:%%_pkgverify_level digest:g" macros.in
+%endif
+
%build
%set_build_flags
@@ -624,6 +630,10 @@ fi
%doc %{_defaultdocdir}/rpm/API/
%changelog
+* Mon Feb 16 2026 Panu Matilainen <pmatilai@redhat.com - 6.0.1-5
+- Enable enforcing signature checking by default, make it easy to flip back
+ https://fedoraproject.org/wiki/Changes/Enforcing_signature_checking_by_default
+
* Wed Feb 11 2026 Tom Callaway <spot@fedoraproject.org> - 6.0.1-4
- actually rebuild against lua 5.5.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:36 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:36 [rpms/rpm] pmatilai-v6: Make enforcing signature mode a build-conditional, enable by default Panu Matilainen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox