infra/docker/manylinux2014_aarch64/install_openssl.sh
Ian Wienand 41767e2653 Build a manylinux2014 arm64 image
This is based on the upstream manylinux container images at

 https://github.com/pyca/infra

and builds a manylinux2014_aarch64 image with openssl installed in
such a way we can use the image to build cryptography manylinux
wheels, hopefully.

Change-Id: I0aea20081b7025c1f9cc4c75e49646737861ba8e
2020-08-14 11:25:53 +10:00

28 lines
764 B
Bash
Executable File

#!/bin/bash
set -xe
OPENSSL_URL="https://www.openssl.org/source/"
source /root/openssl-version.sh
function check_sha256sum {
local fname=$1
local sha256=$2
echo "${sha256} ${fname}" > "${fname}.sha256"
sha256sum -c "${fname}.sha256"
rm "${fname}.sha256"
}
curl -#O "${OPENSSL_URL}/${OPENSSL_VERSION}.tar.gz"
check_sha256sum ${OPENSSL_VERSION}.tar.gz ${OPENSSL_SHA256}
tar zxf ${OPENSSL_VERSION}.tar.gz
PATH=/opt/perl/bin:$PATH
pushd ${OPENSSL_VERSION}
./config $OPENSSL_BUILD_FLAGS --prefix=/opt/pyca/cryptography/openssl --openssldir=/opt/pyca/cryptography/openssl
make depend
make -j8
# avoid installing the docs
# https://github.com/openssl/openssl/issues/6685#issuecomment-403838728
make install_sw install_ssldirs
popd
rm -rf openssl*