public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jakub Jelen <jjelen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] rawhide: Use openpgpverify for source verification
Date: Thu, 29 Oct 2026 20:30:41 GMT [thread overview]
Message-ID: <179330584162.1.8457624447834771876.rpms-llvm-cf17c3e24bbb@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/llvm
Branch : rawhide
Commit : cf17c3e24bbbbd9dea5a832ed9c51e2d7cd8eff9
Author : Jakub Jelen <jjelen@redhat.com>
Date : 2026-10-29T17:29:37-03:00
Stats : +24/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/llvm/c/cf17c3e24bbbbd9dea5a832ed9c51e2d7cd8eff9?branch=rawhide
Log:
Use openpgpverify for source verification
Switch to openpgpverify for signature verification on
supported distributions, while retaining the fallback to
gpgverify on RHEL 10 and older where openpgpverify is
unavailable.
Assisted-by: Gemini:Gemini 3.8 Flash
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
---
diff --git a/llvm.spec b/llvm.spec
index c7b5b59..b1db39e 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -300,6 +300,13 @@ end
%bcond_without multilib
%endif
+# openpgpverify is not available on RHEL <= 10
+%if 0%{?rhel} && 0%{?rhel} <= 10
+%global use_openpgpverify 0
+%else
+%global use_openpgpverify 1
+%endif
+
# Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
%undefine _include_frame_pointers
@@ -715,8 +722,12 @@ BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-rpm-macros
%endif
-# For gpg source verification
+# For source verification
+%if %{use_openpgpverify}
+BuildRequires: openpgpverify
+%else
BuildRequires: gnupg2
+%endif
BuildRequires: swig
BuildRequires: libxml2-devel
@@ -1438,15 +1449,27 @@ Mesa OpenCL support with RustiCL.
%prep
%if %{without snapshot_build}
# llvm
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%else
%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%endif
%if %{build_docs} == 0
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE43}' --data='%{SOURCE42}'
+%else
%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE43}' --data='%{SOURCE42}'
%endif
%endif
+%endif
%if %{with bundle_compat_lib}
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3001}' --data='%{SOURCE3000}'
+%else
%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3001}' --data='%{SOURCE3000}'
+%endif
%setup -T -q -b 3000 -n llvm-project-%{compat_ver}.src
# Apply all patches with number < 500 (unconditionally)
reply other threads:[~2026-10-29 20:30 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=179330584162.1.8457624447834771876.rpms-llvm-cf17c3e24bbb@fedoraproject.org \
--to=jjelen@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