From dbd47c5f823438b69a373f8e62c7dc70f2626f47 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Sat, 19 Feb 2022 15:17:09 +0530 Subject: [PATCH] krb5: link against legacy openssl-1.1 --- packages/krb5/build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/krb5/build.sh b/packages/krb5/build.sh index 5e16ed387..7165f2874 100644 --- a/packages/krb5/build.sh +++ b/packages/krb5/build.sh @@ -4,10 +4,10 @@ TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE_FILE="../NOTICE" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=1.19.2 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/krb5-$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SHA256=10453fee4e3a8f8ce6129059e5c050b8a65dab1c257df68b99b3112eaa0cdf6a -TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, libresolv-wrapper, readline, openssl, libdb" +TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, libresolv-wrapper, readline, openssl-1.1, libdb" TERMUX_PKG_BREAKS="krb5-dev" TERMUX_PKG_REPLACES="krb5-dev" TERMUX_PKG_CONFFILES="etc/krb5.conf var/krb5kdc/kdc.conf" @@ -39,6 +39,11 @@ termux_step_pre_configure() { CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX" export LIBS="-landroid-glob -lresolv_wrapper" + + CFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CFLAGS" + CPPFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CPPFLAGS" + CXXFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CXXFLAGS" + LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS" } termux_step_post_make_install() {