2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-05-18 12:17:17 +00:00

fix(ipmitool): Add OpenSSL 3 MD2 header check for SLES 15/Leap 15

OpenSSL 3.x removed <openssl/md2.h> but keeps MD2_Init as a
deprecated shim in libcrypto. Add AC_CHECK_HEADER([openssl/md2.h])
inside the existing AC_CHECK_LIB block so HAVE_CRYPTO_MD2 is only
defined when both the function and header are available.
This commit is contained in:
Vinícius Ferrão
2026-05-11 13:08:26 -03:00
parent 3ebdea5eda
commit dea988bc53
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,16 @@
--- ipmitool-1.8.18.orig/configure.ac 2026-05-11 11:35:37
+++ ipmitool-1.8.18/configure.ac 2026-05-11 11:36:20
@@ -184,9 +184,12 @@
[if test "x$xenable_internal_md5" != "xyes"; then
if test "x$have_crypto" != "xyes" && test "x$have_md5" != "xyes"; then
LIBS="$LIBS -lcrypto"
- have_md2=yes
fi
- AC_DEFINE(HAVE_CRYPTO_MD2, [1], [Define to 1 if libcrypto supports MD2.])
+ AC_CHECK_HEADER([openssl/md2.h],
+ [have_md2=yes
+ AC_DEFINE(HAVE_CRYPTO_MD2, [1],
+ [Define to 1 if libcrypto supports MD2.])],
+ [have_md2=no])
fi],
[], [-lcrypto])
+3
View File
@@ -25,6 +25,8 @@ Patch14: 0014-lanplus-cipher-retry.patch
Patch15: 0015-lanplus-Cleanup.-Refix-6dec83ff-fix-be2c0c4b.patch
Patch16: 0016-el10-gcc14-missing-intf-getters.patch
Patch17: 0017-openssl3-disable-md2-without-header.patch
Patch80: ipmitool-%{version}-saneretry.patch
Patch82: ipmitool-%{version}-rflash.patch
Patch83: ipmitool-%{version}-signal.patch
@@ -75,6 +77,7 @@ fi
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch80 -p1
%patch82 -p1
%patch83 -p1