public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] rawhide: tests/gdb-testsuite-sanity: relax RPM signature policy for builddep
Date: Tue, 03 Nov 2026 14:50:17 GMT	[thread overview]
Message-ID: <179371741742.1.10275969969150826271.rpms-gdb-366b9dd0ca6f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/gdb
            Branch : rawhide
            Commit : 366b9dd0ca6f6112cdeccbefbd7d7bae23df0258
            Author : Kevin Buettner <kevinb@redhat.com>
            Date   : 2026-11-02T12:54:30-07:00
            Stats  : +9/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gdb/c/366b9dd0ca6f6112cdeccbefbd7d7bae23df0258?branch=rawhide

            Log:
            tests/gdb-testsuite-sanity: relax RPM signature policy for builddep

With RPM >= 6 (Rawhide, F45) %_pkgverify_level defaults to "all".  The
CI guest installs build dependencies from the unsigned tag repository
with yum-builddep (dnf4), which then fails with "GPG check FAILED" even
though that repository has gpgcheck=0 ("Enforcing GPG signature check
globally as per active RPM security policy").  No dependencies get
installed, rpmbuild -bp fails, the testsuite never runs and tier0
reports "Test counter 0 should be greater than or equal to 4000".  This
needed waivers for gdb-17.2-6 and gdb-18.1-1 on Rawhide and F45.

dnf4's --nogpgcheck does not override the RPM policy, so set
%_pkgverify_level to "digest" for the duration of the test and remove
the macro file again in cleanup.  Verified on F45 with dnf4 against an
unsigned package in a local gpgcheck=0 repository: "all" fails with or
without --nogpgcheck, "digest" succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---
diff --git a/tests/gdb-testsuite-sanity/runtest.sh b/tests/gdb-testsuite-sanity/runtest.sh
index a13c66e..00c42d2 100755
--- a/tests/gdb-testsuite-sanity/runtest.sh
+++ b/tests/gdb-testsuite-sanity/runtest.sh
@@ -53,6 +53,14 @@ rlJournalStart
     rlRun "cp /proc/sys/kernel/core_pattern $TmpDir/core_pattern.bckp"
     rlRun "echo 'core.%p' >/proc/sys/kernel/core_pattern"
     rlRun "ulimit -c unlimited"
+    # RPM >= 6 enforces OpenPGP signatures (%_pkgverify_level all).  The
+    # CI tag repository serves builds that are not signed yet, so
+    # yum-builddep (dnf4) refuses them even though that repository has
+    # gpgcheck=0 ("Enforcing GPG signature check globally as per active
+    # RPM security policy"), no build dependencies get installed and the
+    # testsuite never runs.  --nogpgcheck does not override the RPM
+    # policy; relax it to digest checking for the duration of the test.
+    rlRun "echo '%_pkgverify_level digest' >/etc/rpm/macros.zz-gdb-testsuite-sanity"
   rlPhaseEnd
 
   rlPhaseStartSetup "build gdb"
@@ -129,6 +137,7 @@ rlJournalStart
 
   rlPhaseStartCleanup
     rlRun "cat $TmpDir/core_pattern.bckp >/proc/sys/kernel/core_pattern"
+    rlRun "rm -f /etc/rpm/macros.zz-gdb-testsuite-sanity"
     rlRun "popd"
     rlRun "rm -r $TmpDir"
     [ "$del" = "yes" ] && rlRun "userdel -f $BUILD_USER"

                 reply	other threads:[~2026-11-03 14:50 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=179371741742.1.10275969969150826271.rpms-gdb-366b9dd0ca6f@fedoraproject.org \
    --to=kevinb@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