public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nginx] rawhide: Add a build conditional for kTLS, default unchanged
@ 2026-11-24 18:16 Sai Harsha Suryadevara
  0 siblings, 0 replies; only message in thread
From: Sai Harsha Suryadevara @ 2026-11-24 18:16 UTC (permalink / raw)
  To: git-commits

            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}

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

only message in thread, other threads:[~2026-11-24 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 18:16 [rpms/nginx] rawhide: Add a build conditional for kTLS, default unchanged Sai Harsha Suryadevara

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