diff mbox series

[meta-oe] ipmiutil: fix build with OpenSSL 4.0

Message ID 20260909200706.202485-1-alperyasinak1@gmail.com
State Under Review
Headers show
Series [meta-oe] ipmiutil: fix build with OpenSSL 4.0 | expand

Commit Message

Alper Ak Sept. 9, 2026, 8:07 p.m. UTC
do_compile fails with:

  lanplus_crypt_impl.c:233:24: error: storage size of 'ctx' isn't known

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
 ...configure-enable-SSL11-for-OpenSSL-4.patch | 25 +++++++++++++++++++
 .../recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch b/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch
new file mode 100644
index 0000000000..ae790f1909
--- /dev/null
+++ b/meta-oe/recipes-kernel/ipmiutil/ipmiutil/0002-configure-enable-SSL11-for-OpenSSL-4.patch
@@ -0,0 +1,25 @@ 
+From: Alper Ak <alperyasinak1@gmail.com>
+Date: Wed, 9 Sep 2026 23:00:00 +0300
+Subject: [PATCH] configure: enable SSL11 for OpenSSL 4
+
+OpenSSL 4 keeps EVP_CIPHER_CTX opaque, so it cannot go on the stack.
+The heap path behind SSL11 is already there, configure just does not
+turn it on for major version 4.
+
+Upstream-Status: Submitted [https://sourceforge.net/p/ipmiutil/feature-requests/13/]
+Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -443,7 +443,7 @@
+ 		MD2_CFLAGS="-DSKIP_MD2 -DSSL11"
+ 		sslnew=1
+ 	fi
+-	if test "$sslrel" = "3"; then
++	if test "$sslrel" = "3" -o "$sslrel" = "4"; then
+ 		echo "Detected openssl-$sslver" 
+ 		MD2_CFLAGS="-DSKIP_MD2 -DSSL11"
+ 		sslnew=1
diff --git a/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb b/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb
index 7945c6f535..4bcf627672 100644
--- a/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb
+++ b/meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.2.2.bb
@@ -22,6 +22,7 @@  PARALLEL_MAKE = ""
 SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \
            file://fix_systemd_path.patch \
            file://0001-ihpm-Include-stdlib.h-for-malloc-free-atoi-functions.patch \
+           file://0002-configure-enable-SSL11-for-OpenSSL-4.patch \
           "
 SRC_URI[sha256sum] = "37f9bc8e6b18c1155e4d5ea38c87b83908b7acc7a44fbc5e3af493f26ef8b767"