From: Tobias Brunner Date: Fri, 21 Feb 2025 15:05:51 +0000 (+0100) Subject: github: Build OpenSSL from the Git repository instead of a tarball X-Git-Tag: 6.0.2dr1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd17d154e58c5d151f9093f7a37c9201880f7374;p=thirdparty%2Fstrongswan.git github: Build OpenSSL from the Git repository instead of a tarball This is more flexible and allows test builds against branches. --- diff --git a/scripts/test.sh b/scripts/test.sh index 59998e415e..679ec36ad7 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -92,10 +92,8 @@ build_tss2() build_openssl() { - SSL_REV=3.4.1 - SSL_PKG=openssl-$SSL_REV - SSL_DIR=$DEPS_BUILD_DIR/$SSL_PKG - SSL_SRC=https://www.openssl.org/source/$SSL_PKG.tar.gz + SSL_REV=openssl-3.4.1 + SSL_DIR=$DEPS_BUILD_DIR/openssl SSL_INS=$DEPS_PREFIX/ssl SSL_OPT="-d shared no-dtls no-ssl3 no-zlib no-idea no-psk no-tests enable-rfc3779 enable-ec_nistp_64_gcc_128" @@ -117,7 +115,7 @@ build_openssl() echo "$ build_openssl()" - curl -L $SSL_SRC | tar xz -C $DEPS_BUILD_DIR || exit $? + git clone https://github.com/openssl/openssl.git --depth 1 -b $SSL_REV $SSL_DIR || exit $? if [ "$TEST" = "android" ]; then OPENSSL_SRC=${SSL_DIR} \