public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sequoia-gpg-agent] rawhide: Build with the default Fedora crypto backend (OpenSSL)
@ 2026-07-25 20:48 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-07-25 20:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-sequoia-gpg-agent
Branch : rawhide
Commit : d7407e6a8790df20f7b431839448e2bdc599cb12
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-07-25T22:48:28+02:00
Stats  : +22/-27 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-sequoia-gpg-agent/c/d7407e6a8790df20f7b431839448e2bdc599cb12?branch=rawhide

Log:
Build with the default Fedora crypto backend (OpenSSL)

---
diff --git a/0001-fix-compatibility-with-gnupg-2.3.patch b/0001-fix-compatibility-with-gnupg-2.3.patch
deleted file mode 100644
index 17155c5..0000000
--- a/0001-fix-compatibility-with-gnupg-2.3.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From da1fd097af6bffc172b485b375a3173872902993 Mon Sep 17 00:00:00 2001
-From: Fabio Valentini <decathorpe@gmail.com>
-Date: Tue, 29 Apr 2025 23:19:22 +0200
-Subject: [PATCH] fix compatibility with gnupg 2.3
-
----
- src/lib.rs | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/src/lib.rs b/src/lib.rs
-index ec4b51f..34497e1 100644
---- a/src/lib.rs
-+++ b/src/lib.rs
-@@ -1353,7 +1353,6 @@ impl EccScalarChecksumMode {
-         if v.starts_with("2.0.")
-             || v.starts_with("2.1.")
-             || v.starts_with("2.2.")
--            || v.starts_with("2.3.")
-         {
-             EccScalarChecksumMode::MPI
-         } else {
--- 
-2.49.0
-

diff --git a/rust-sequoia-gpg-agent.spec b/rust-sequoia-gpg-agent.spec
index 559611a..37fe72d 100644
--- a/rust-sequoia-gpg-agent.spec
+++ b/rust-sequoia-gpg-agent.spec
@@ -14,6 +14,9 @@ URL:            https://crates.io/crates/sequoia-gpg-agent
 Source:         %{crates_source}
 # Automatically generated patch to strip dependencies and normalize metadata
 Patch:          sequoia-gpg-agent-fix-metadata-auto.diff
+# Manually created patch for downstream crate metadata changes
+# * swap sequoia-openpgp backend for tests to crypto-openssl
+Patch:          sequoia-gpg-agent-fix-metadata.diff
 
 BuildRequires:  cargo-rpm-macros >= 24
 %if %{with check}
@@ -59,8 +62,8 @@ use the "default" feature of the "%{crate}" crate.
 %cargo_generate_buildrequires
 
 %build
-# build with the default crypto backend (Nettle)
-%cargo_build -f sequoia-openpgp/crypto-nettle
+# build with the default Fedora crypto backend (OpenSSL)
+%cargo_build -f sequoia-openpgp/crypto-openssl
 
 %install
 %cargo_install

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 8970305..105d799 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,3 +1,8 @@
+[package]
+cargo-toml-patch-comments = [
+    "swap sequoia-openpgp backend for tests to crypto-openssl",
+]
+
 [requires]
 test = ["/usr/bin/gpgconf"]
 

diff --git a/sequoia-gpg-agent-fix-metadata-auto.diff b/sequoia-gpg-agent-fix-metadata-auto.diff
index 3cdfa00..a8a1d90 100644
--- a/sequoia-gpg-agent-fix-metadata-auto.diff
+++ b/sequoia-gpg-agent-fix-metadata-auto.diff
@@ -1,5 +1,5 @@
 --- sequoia-gpg-agent-0.6.2/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ sequoia-gpg-agent-0.6.2/Cargo.toml	2025-12-01T22:23:11.787190+00:00
++++ sequoia-gpg-agent-0.6.2/Cargo.toml	2026-07-25T20:40:44.640905+00:00
 @@ -148,13 +148,6 @@
  ]
  default-features = false

diff --git a/sequoia-gpg-agent-fix-metadata.diff b/sequoia-gpg-agent-fix-metadata.diff
new file mode 100644
index 0000000..6c123e1
--- /dev/null
+++ b/sequoia-gpg-agent-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- sequoia-gpg-agent-0.6.2/Cargo.toml	1970-01-01T00:00:01+00:00
++++ sequoia-gpg-agent-0.6.2/Cargo.toml	2026-07-25T20:41:30.167506+00:00
+@@ -143,7 +143,7 @@
+ [target."cfg(not(windows))".dev-dependencies.sequoia-openpgp]
+ version = "2"
+ features = [
+-    "crypto-nettle",
++    "crypto-openssl",
+     "__implicit-crypto-backend-for-tests",
+ ]
+ default-features = false

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

only message in thread, other threads:[~2026-07-25 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-25 20:48 [rpms/rust-sequoia-gpg-agent] rawhide: Build with the default Fedora crypto backend (OpenSSL) Fabio Valentini

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