public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] rawhide: tests/gdb-testsuite-sanity: relax RPM signature policy for builddep
@ 2026-11-03 14:50 Kevin Buettner
  0 siblings, 0 replies; only message in thread
From: Kevin Buettner @ 2026-11-03 14:50 UTC (permalink / raw)
  To: git-commits

            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"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-03 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 14:50 [rpms/gdb] rawhide: tests/gdb-testsuite-sanity: relax RPM signature policy for builddep Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox