cfengine: fix builds with OpenSSL 3

This commit is contained in:
Yaksh Bariya 2022-02-19 15:21:53 +05:30 committed by YAKSH BARIYA
parent 49106f00c5
commit 9a60ff6919
3 changed files with 27 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="CFEngine is a configuration management technology."
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@craigcomstock"
TERMUX_PKG_VERSION=1:3.18.0
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=(https://github.com/cfengine/core/archive/${TERMUX_PKG_VERSION:2}.zip
https://github.com/cfengine/masterfiles/archive/12b52c25e03439341aa7a6a5c7917efa06826f8d.zip
https://github.com/cfengine/libntech/archive/118d6e4bf5ae2611236fe3883b422d50f10da45c.zip)

View File

@ -0,0 +1,13 @@
--- ./configure.ac.orig 2022-02-16 15:51:34.491053439 +0530
+++ ./configure.ac 2022-02-16 15:52:01.251053429 +0530
@@ -471,10 +471,6 @@
#endif
]])],[AC_MSG_RESULT(OK)],[AC_MSG_ERROR(This release of CFEngine requires OpenSSL >= 0.9.7)])
- if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xyes" ; then
- AC_DEFINE(OPENSSL_NO_DEPRECATED, 1, [Define if non deprecated API is available.])
- fi
-
if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xno" && \
test "x$ac_cv_lib_crypto_RSA_generate_key" = "xno" ; then
AC_MSG_ERROR(Cannot find OpenSSL)

View File

@ -0,0 +1,13 @@
--- ./libntech/configure.ac.orig 2022-02-16 15:23:38.630146433 +0530
+++ ./libntech/configure.ac 2022-02-16 15:24:51.014566664 +0530
@@ -385,10 +385,6 @@
#endif
]])],[AC_MSG_RESULT(OK)],[AC_MSG_ERROR(This release of CFEngine requires OpenSSL >= 0.9.7)])
- if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xyes" ; then
- AC_DEFINE(OPENSSL_NO_DEPRECATED, 1, [Define if non deprecated API is available.])
- fi
-
if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xno" && \
test "x$ac_cv_lib_crypto_RSA_generate_key" = "xno" ; then
AC_MSG_ERROR(Cannot find OpenSSL)