public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bind] f45: Try to work even without pkcs11 engine used
Date: Fri, 16 Oct 2026 14:52:19 GMT	[thread overview]
Message-ID: <179216233996.1.6944871421276175282.rpms-bind-1e2d850613b7@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bind
Branch : f45
Commit : 1e2d850613b74aa87749fa55e6ce2a76062cd5da
Author : Petr Menšík <pemensik@redhat.com>
Date   : 2026-10-13T19:50:58+02:00
Stats  : +65/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bind/c/1e2d850613b74aa87749fa55e6ce2a76062cd5da?branch=f45

Log:
Try to work even without pkcs11 engine used

---
diff --git a/bind-9.18-d-systest-keyfromlabel-noengine.patch b/bind-9.18-d-systest-keyfromlabel-noengine.patch
new file mode 100644
index 0000000..aa96580
--- /dev/null
+++ b/bind-9.18-d-systest-keyfromlabel-noengine.patch
@@ -0,0 +1,63 @@
+From fea633b14bee8c7730d2b800dd011f4e67e363c2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Fri, 9 Oct 2026 18:10:28 +0200
+Subject: [PATCH] Make usage of engine optional
+
+We backported support for labels also into our 9.18 version. It should
+work even without -E pkcs11. But it requires special openssl
+configuration to enable the provider. Skip the test unless OPENSSL_CONF
+environment is not called openssl-provider.cnf.
+---
+ bin/tests/system/conf.sh.in                         | 3 +++
+ bin/tests/system/keyfromlabel/tests_keyfromlabel.py | 7 +++----
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
+index f0e2b33..285c8cc 100644
+--- a/bin/tests/system/conf.sh.in
++++ b/bin/tests/system/conf.sh.in
+@@ -76,6 +76,9 @@ export KRB5_KTNAME=dns.keytab
+ # tests grepping ans.run may rely on debug-level lines.
+ export ANS_LOG_LEVEL="${ANS_LOG_LEVEL:-debug}"
+ 
++# make it possible to override engine usage
++: ${ENGINE_ARG:=-E pkcs11}
++
+ #
+ # Programs detected by configure
+ # Variables will be empty if no program was found by configure
+diff --git a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
+index 1953703..a2f4572 100644
+--- a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
++++ b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
+@@ -21,6 +21,7 @@ import isctest.mark
+ pytestmark = [
+     isctest.mark.supported_openssl_version,
+     isctest.mark.softhsm2_environment,
++    isctest.mark.with_pkcs11_provider,
+     pytest.mark.extra_artifacts(
+         [
+             "*.example.db",
+@@ -132,8 +133,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
+ 
+         keyfrlab_command = [
+             os.environ["KEYFRLAB"],
+-            "-E",
+-            "pkcs11",
++            *os.environ.get("ENGINE_ARG", "").split(),
+             "-a",
+             alg_name,
+             "-y",
+@@ -181,8 +181,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
+ 
+     signer_command = [
+         os.environ["SIGNER"],
+-        "-E",
+-        "pkcs11",
++        *os.environ.get("ENGINE_ARG", "").split(),
+         "-S",
+         "-a",
+         "-g",
+-- 
+2.56.0
+

diff --git a/bind.spec b/bind.spec
index 81eb387..fd8e05c 100644
--- a/bind.spec
+++ b/bind.spec
@@ -174,6 +174,8 @@ Patch35: 0001-Use-variable-PROGRAM_SUFFIX-in-install-target.patch
 Patch36: bind-9.20-tsig-keygen-suffix.patch
 # Downstream only, required on very long build paths.
 Patch37: bind-9.18-d-unittest-dnstap-relative.patch
+# Downstream only, do not use -E pkcs11 in keyfromlabel
+Patch38: bind-9.18-d-systest-keyfromlabel-noengine.patch
 
 
 %{?systemd_ordering}

                 reply	other threads:[~2026-10-16 14:52 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=179216233996.1.6944871421276175282.rpms-bind-1e2d850613b7@fedoraproject.org \
    --to=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