public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fsverity-utils] rawhide: Fix build with OpenSSL 4
Date: Fri, 12 Jun 2026 19:09:17 GMT [thread overview]
Message-ID: <178129135797.1.2039855685707898155.rpms-fsverity-utils-e517ad0e891e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fsverity-utils
Branch : rawhide
Commit : e517ad0e891e7fe166d5a2b5308d3aa966869660
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-04-27T18:15:18-04:00
Stats : +31/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fsverity-utils/c/e517ad0e891e7fe166d5a2b5308d3aa966869660?branch=rawhide
Log:
Fix build with OpenSSL 4
https://github.com/ebiggers/fsverity-utils/pull/5
---
diff --git a/fsverity-utils.spec b/fsverity-utils.spec
index bce754b..d5cf502 100644
--- a/fsverity-utils.spec
+++ b/fsverity-utils.spec
@@ -7,11 +7,15 @@ Summary: fsverity utilities
License: LicenseRef-Callaway-BSD
URL: https://github.com/ebiggers/fsverity-utils
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+# https://github.com/ebiggers/fsverity-utils/pull/5
+Patch0: openssl4.patch
BuildRequires: gcc make
BuildRequires: kernel-headers glibc-headers
BuildRequires: openssl-devel
+%if 0%{?fedora} >= 41 && 0%{?fedora} < 45
BuildRequires: openssl-devel-engine
+%endif
Requires: libfsverity = %{version}-%{release}
%description
diff --git a/openssl4.patch b/openssl4.patch
new file mode 100644
index 0000000..8f76d19
--- /dev/null
+++ b/openssl4.patch
@@ -0,0 +1,27 @@
+From 7bb0f0d82269dc7307989af74aea64621b6f89f0 Mon Sep 17 00:00:00 2001
+From: Yaakov Selkowitz <yselkowi@redhat.com>
+Date: Mon, 27 Apr 2026 18:11:02 -0400
+Subject: [PATCH] Fix build with OpenSSL 4
+
+OpenSSL 4 drops support for the ENGINE APIs, which have long been guarded.
+(OpenSSL 3 in RHEL 10 disabled them as well.) This matches the conditional
+used in later in the code, and covers both BoringSSL and OpenSSL 4.
+
+Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
+---
+ lib/sign_digest.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/sign_digest.c b/lib/sign_digest.c
+index c22ff90..4ed0be9 100644
+--- a/lib/sign_digest.c
++++ b/lib/sign_digest.c
+@@ -19,7 +19,7 @@
+ #include <openssl/pkcs7.h>
+ #include <string.h>
+
+-#ifndef OPENSSL_IS_BORINGSSL
++#ifndef OPENSSL_NO_ENGINE
+ #include <openssl/engine.h>
+ #endif
+
reply other threads:[~2026-06-12 19:09 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=178129135797.1.2039855685707898155.rpms-fsverity-utils-e517ad0e891e@fedoraproject.org \
--to=yselkowi@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