]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Build OpenSSL from the Git repository instead of a tarball
authorTobias Brunner <tobias@strongswan.org>
Fri, 21 Feb 2025 15:05:51 +0000 (16:05 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 14 Apr 2025 09:38:48 +0000 (11:38 +0200)
This is more flexible and allows test builds against branches.

scripts/test.sh

index 59998e415e7619488f2ea424426c0ee9eac1099d..679ec36ad7f793f815766b7e77d2e3387ec1a9e3 100755 (executable)
@@ -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} \