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: Make enforcing signature mode a build-conditional, enable by default
Date: Mon, 23 Nov 2026 09:36:13 GMT	[thread overview]
Message-ID: <179542657394.1.4444636670408876262.rpms-rpm-75bb7d91ab2f@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-11-23  9:36 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=179542657394.1.4444636670408876262.rpms-rpm-75bb7d91ab2f@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