Update openssl version

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2022-05-18 17:56:48 +02:00
parent c74798ebb7
commit e21db577b4
2 changed files with 13 additions and 3 deletions

View File

@ -4,6 +4,8 @@ ARG GIT_VERSION=2.36.1
ARG CMAKE_VERSION=3.23.1 ARG CMAKE_VERSION=3.23.1
ARG NINJA_VERSION=1.11.0 ARG NINJA_VERSION=1.11.0
ARG FLATCC_VERSION=d90ed18ad09824297ffd5fbc578ccb1666d13890 ARG FLATCC_VERSION=d90ed18ad09824297ffd5fbc578ccb1666d13890
ARG OPENSSL_VERSION=openssl-1.1.1o
ARG OPENSSL_HASH=9384a2b0570dd80358841464677115df785edb941c71211f75076d72fe6b438f
# Image build scripts # Image build scripts
COPY \ COPY \

View File

@ -47,9 +47,17 @@ source $MY_DIR/utils.sh
# copied from https://github.com/pypa/manylinux/tree/master/docker/build_scripts # copied from https://github.com/pypa/manylinux/tree/master/docker/build_scripts
# #
OPENSSL_ROOT=openssl-1.1.1l if [[ -z "${OPENSSL_VERSION}" ]]; then
echo >&2 'error: OPENSSL_VERSION env. variable must be set to a non-empty value'
exit 1
fi
if [[ -z "${OPENSSL_HASH}" ]]; then
echo >&2 'error: OPENSSL_HASH env. variable must be set to a non-empty value'
exit 1
fi
# Hash from https://www.openssl.org/source/openssl-1.1.1l.tar.gz.sha256 # Hash from https://www.openssl.org/source/openssl-1.1.1l.tar.gz.sha256
OPENSSL_HASH=0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
OPENSSL_DOWNLOAD_URL=http://www.openssl.org/source/ OPENSSL_DOWNLOAD_URL=http://www.openssl.org/source/
# a recent enough perl is needed to build openssl # a recent enough perl is needed to build openssl
@ -111,7 +119,7 @@ function build_openssl {
cd /usr/src cd /usr/src
build_perl $PERL_ROOT $PERL_HASH build_perl $PERL_ROOT $PERL_HASH
build_openssl $OPENSSL_ROOT $OPENSSL_HASH build_openssl "${OPENSSL_VERSION}" "${OPENSSL_HASH}"
# Delete PERL # Delete PERL
rm -rf /opt/perl rm -rf /opt/perl