public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sai Harsha Suryadevara <ssuryad@amazon.com>
To: git-commits@fedoraproject.org
Subject: [rpms/nginx] rawhide: Add a build conditional for kTLS, default unchanged
Date: Tue, 24 Nov 2026 18:16:50 GMT [thread overview]
Message-ID: <179554421082.1.10471319423707148448.rpms-nginx-2fa7fa104178@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/nginx
Branch : rawhide
Commit : 2fa7fa10417817bb110080425b4041d069c60d93
Author : Sai Harsha Suryadevara <ssuryad@amazon.com>
Date : 2026-11-22T03:08:55+00:00
Stats : +4/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/nginx/c/2fa7fa10417817bb110080425b4041d069c60d93?branch=rawhide
Log:
Add a build conditional for kTLS, default unchanged
The spec turns kTLS on by distribution version, where OpenSSL 3 is the default. A distribution that ships OpenSSL 3 but reports a version below that test gets a build without kTLS. This adds a `ktls` build conditional with the current version test as its default, so such a build can pick `rpmbuild --with ktls`, and a build on OpenSSL 1.1 can pick `--without ktls`. Fedora's, RHEL's and EPEL's builds do not change. No Release bump and no changelog entry, the spec uses rpmautospec.
Signed-off-by: Sai Harsha Suryadevara <ssuryad@amazon.com>
---
diff --git a/nginx.spec b/nginx.spec
index e62bee8..482942b 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -38,7 +38,9 @@
# kTLS requires OpenSSL 3.0 (default in F36+ and EL9+, available in EPEL8)
%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 || 0%{?epel} >= 8
-%global with_ktls 1
+%bcond_without ktls
+%else
+%bcond_with ktls
%endif
# Build against OpenSSL 3 on EL8
@@ -357,7 +359,7 @@ if ! ./configure \
--with-http_xslt_module=dynamic \
--with-mail=dynamic \
--with-mail_ssl_module \
-%if 0%{?with_ktls}
+%if %{with ktls}
--with-openssl-opt=enable-ktls \
%endif
%if %{without engine}
reply other threads:[~2026-11-24 18:16 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=179554421082.1.10471319423707148448.rpms-nginx-2fa7fa104178@fedoraproject.org \
--to=ssuryad@amazon.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