public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kea] rawhide: New version 3.2.1 (rhbz#2544129)
@ 2026-10-06  4:31 Martin Osvald
  0 siblings, 0 replies; only message in thread
From: Martin Osvald @ 2026-10-06  4:31 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/kea
            Branch : rawhide
            Commit : 1a4ac1b46211df1ee683832598fdfb1e95e9f9ed
            Author : Martin Osvald <mosvald@redhat.com>
            Date   : 2026-10-05T14:21:59+02:00
            Stats  : +45/-64 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/kea/c/1a4ac1b46211df1ee683832598fdfb1e95e9f9ed?branch=rawhide

            Log:
            New version 3.2.1 (rhbz#2544129)

- Fix CONST_OPENSSL_X509_NAME meson compiler check under Fedora build flags

---
diff --git a/kea-add-const-qualifiers-to-OpenSSL-X509-pointers.patch b/kea-add-const-qualifiers-to-OpenSSL-X509-pointers.patch
deleted file mode 100644
index 5c72bf7..0000000
--- a/kea-add-const-qualifiers-to-OpenSSL-X509-pointers.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 82d28b1be73bbc00e73e59d0c59c51a1e76519a5 Mon Sep 17 00:00:00 2001
-From: Simo Sorce <simo@redhat.com>
-Date: Mon, 27 Apr 2026 17:49:56 -0400
-Subject: [PATCH] Add const qualifiers to OpenSSL X509 pointers
-
-Added const qualifiers to the X509_NAME and X509_NAME_ENTRY pointers when
-retrieving subject and issuer names from TLS certificates. This ensures const-
-correctness and maintains compatibility with newer OpenSSL versions, which
-return const pointers from these getter functions.
-
-Co-authored-by: Gemini <gemini@google.com>
-Signed-off-by: Simo Sorce <simo@redhat.com>
----
- src/lib/asiolink/openssl_tls.h | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/lib/asiolink/openssl_tls.h b/src/lib/asiolink/openssl_tls.h
-index 57c3323..52a969b 100644
---- a/src/lib/asiolink/openssl_tls.h
-+++ b/src/lib/asiolink/openssl_tls.h
-@@ -175,9 +175,9 @@ public:
-         if (!cert) {
-             return ("");
-         }
--        ::X509_NAME *name = ::X509_get_subject_name(cert);
-+        const ::X509_NAME *name = ::X509_get_subject_name(cert);
-         int loc = ::X509_NAME_get_index_by_NID(name, NID_commonName, -1);
--        ::X509_NAME_ENTRY* ne = ::X509_NAME_get_entry(name, loc);
-+        const ::X509_NAME_ENTRY* ne = ::X509_NAME_get_entry(name, loc);
-         if (!ne) {
-             ::X509_free(cert);
-             return ("");
-@@ -209,9 +209,9 @@ public:
-         if (!cert) {
-             return ("");
-         }
--        ::X509_NAME *name = ::X509_get_issuer_name(cert);
-+        const ::X509_NAME *name = ::X509_get_issuer_name(cert);
-         int loc = ::X509_NAME_get_index_by_NID(name, NID_commonName, -1);
--        ::X509_NAME_ENTRY* ne = ::X509_NAME_get_entry(name, loc);
-+        const ::X509_NAME_ENTRY* ne = ::X509_NAME_get_entry(name, loc);
-         if (!ne) {
-             ::X509_free(cert);
-             return ("");
--- 
-2.53.0
-

diff --git a/kea-fix-const-openssl-x509-name-check.patch b/kea-fix-const-openssl-x509-name-check.patch
new file mode 100644
index 0000000..0de9c68
--- /dev/null
+++ b/kea-fix-const-openssl-x509-name-check.patch
@@ -0,0 +1,29 @@
+Fix CONST_OPENSSL_X509_NAME meson compiler check under Fedora build flags
+
+The CONST_OPENSSL_X509_NAME meson check uses `werror: true` to detect
+whether OpenSSL returns const X509_NAME* from X509_get_subject_name.
+Under Fedora's build flags this check always fails, causing
+CONST_OPENSSL_X509_NAME to be left as 0 and the build to fail against
+OpenSSL 4.x which now returns const X509_NAME* from those functions.
+
+The failure mechanism: Fedora CXXFLAGS set -D_FORTIFY_SOURCE=3, meson
+runs compiler checks at -O0, and features.h emits a #warning about
+_FORTIFY_SOURCE requiring optimization. `werror: true` turns that warning
+into a fatal error before the check even tests the const qualifiers.
+
+The fix: remove `werror: true`. Passing const X509_NAME* to a function
+that expects X509_NAME* is already a hard C++ error (not just a warning),
+so the check works correctly without -Werror.
+
+diff --git a/meson.build b/meson.build
+index 6d76ee2..044fb46 100644
+--- a/meson.build
++++ b/meson.build
+@@ -497,7 +497,6 @@ if CRYPTO_DEP.name() == openssl.name()
+         fs.read('compiler-checks/const-openssl-x509-name.cc'),
+         name: 'CONST_OPENSSL_X509_NAME',
+         dependencies: [boost_dep, CRYPTO_DEP, threads_dep],
+-        werror: true,
+     )
+     conf_data.set('CONST_OPENSSL_X509_NAME', result)
+ endif

diff --git a/kea.spec b/kea.spec
index e54a397..4a03b41 100644
--- a/kea.spec
+++ b/kea.spec
@@ -1,5 +1,5 @@
 Name:           kea
-Version:        3.2.0
+Version:        3.2.1
 Release:        %autorelease
 Summary:        DHCPv4, DHCPv6 and DDNS server from ISC
 License:        MPL-2.0 AND BSL-1.0
@@ -40,8 +40,7 @@ Source14:       systemd-tmpfiles.conf
 Source15:       systemd-sysusers.conf
 
 Patch1:         kea-sd-daemon.patch
-# Fix build with OpenSSL 4.0
-Patch2:         kea-add-const-qualifiers-to-OpenSSL-X509-pointers.patch
+Patch2:         kea-fix-const-openssl-x509-name-check.patch
 
 BuildRequires: boost-devel
 # %%meson -D crypto=openssl
@@ -349,30 +348,30 @@ fi
 %license COPYING
 # find `rpm --eval %%{_topdir}`/BUILD/kea-*/BUILDROOT/usr/lib64/ -type f | grep /usr/lib64/libkea | sed -e 's#.*/usr/lib64\(.*\.so\.[0-9]\+\)\.[0-9]\+\.[0-9]\+#%%{_libdir}\1*#' | sort
 %{_libdir}/libkea-asiodns.so.75*
-%{_libdir}/libkea-asiolink.so.105*
+%{_libdir}/libkea-asiolink.so.106*
 %{_libdir}/libkea-cc.so.98*
 %{_libdir}/libkea-cfgrpt.so.3*
 %{_libdir}/libkea-config.so.98*
-%{_libdir}/libkea-cryptolink.so.76*
-%{_libdir}/libkea-d2srv.so.75*
+%{_libdir}/libkea-cryptolink.so.77*
+%{_libdir}/libkea-d2srv.so.76*
 %{_libdir}/libkea-database.so.88*
-%{_libdir}/libkea-dhcp_ddns.so.82*
-%{_libdir}/libkea-dhcp.so.129*
-%{_libdir}/libkea-dhcpsrv.so.149*
-%{_libdir}/libkea-dns.so.84*
-%{_libdir}/libkea-eval.so.97*
+%{_libdir}/libkea-dhcp_ddns.so.83*
+%{_libdir}/libkea-dhcp.so.130*
+%{_libdir}/libkea-dhcpsrv.so.150*
+%{_libdir}/libkea-dns.so.85*
+%{_libdir}/libkea-eval.so.98*
 %{_libdir}/libkea-exceptions.so.55*
-%{_libdir}/libkea-hooks.so.139*
+%{_libdir}/libkea-hooks.so.140*
 %{_libdir}/libkea-http.so.100*
 %{_libdir}/libkea-log-interprocess.so.4*
 %{_libdir}/libkea-log.so.86*
-%{_libdir}/libkea-mysql.so.106*
+%{_libdir}/libkea-mysql.so.107*
 %{_libdir}/libkea-pgsql.so.105*
 %{_libdir}/libkea-process.so.105*
 %{_libdir}/libkea-stats.so.64*
-%{_libdir}/libkea-tcp.so.45*
+%{_libdir}/libkea-tcp.so.46*
 %{_libdir}/libkea-util-io.so.12*
-%{_libdir}/libkea-util.so.118*
+%{_libdir}/libkea-util.so.119*
 
 %files keama
 %license COPYING

diff --git a/sources b/sources
index ab6f5e9..1506d7a 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (kea-3.2.0.tar.xz) = 67677a90f98704bca2b769cd1fededb384ba8d627fa2564c66f44a656d82a4de9ae9cd86071ec0d953e9291d82b009c63ceed56947daa5530d97ae83e66d0afe
-SHA512 (kea-3.2.0.tar.xz.asc) = eec8835aa59b7f244c13d56b4d7883129b65f0c9a13e520a05492f6118a34050a4436405e0885a811b6b7eecd6836b87c6194aa62add841a43c4ef3ea4beb70f
+SHA512 (kea-3.2.1.tar.xz) = 1d4ad3217d0eb1a35e9e7c432e0f84f5abe2271061e3fcac44343df200a28227d92f77e266cbecdb788c32e3a332cb2337d5fe6fab815e555b2b8b959acf92d2
+SHA512 (kea-3.2.1.tar.xz.asc) = 7787fd788e452d9f9b81f07551775e41353adc62f40153f55698a705ccd11884369a42b092859af551656aba41039fc19209f39910e80004b5419ea3d1b0ccf0
 SHA512 (keama-046ceef.tar.gz) = 4e9c51b6ab40a90fa6fe5bc44d69241257a9e3745328ac27015a9b9fac74988f8dda0a813c869fa9d426c934cc5df61e595e6a8c704932e56e4252a1b5b7d72c

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

only message in thread, other threads:[~2026-10-06  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06  4:31 [rpms/kea] rawhide: New version 3.2.1 (rhbz#2544129) Martin Osvald

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