Skip to content

Commit e485cd3

Browse files
committed
OpenSSL v1.0.2q
1 parent 409080d commit e485cd3

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

tools/build-openssl.sh

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
# version of OpenSSL in the 1.0 release train.
99
OPENSSL_VERSION=1.0.2q
1010

11-
PREFIX=$1
12-
if [[ -z $PREFIX ]]; then
13-
echo "Usage: $0 <installation-prefix>"
11+
export DESTDIR=$1
12+
if [[ -z $DESTDIR ]]; then
13+
echo "Usage: $0 <installation-destdir>"
1414
fi
1515

1616
set -ex
@@ -30,23 +30,29 @@ else
3030
pushd build-openssl
3131
fi
3232

33-
./config --prefix=${PREFIX} zlib no-krb5 zlib shared
33+
extra_conf_args=
34+
if [[ $OPENSSL_VERSION == 1.0.* ]]; then
35+
extra_conf_args="no-krb5 shared"
36+
fi
37+
38+
./config --prefix=/usr/lib --openssldir=/usr/lib/ssl zlib shared $extra_conf_args
39+
3440
echo "## building openssl"
35-
if ! make -j 2>&1 | tail -20 ; then
41+
if ! make -j 2>&1 | tail -100 ; then
3642
echo "## Make failed, cleaning up and retrying"
3743
time make clean 2>&1 | tail -20
3844
rm -f test/PASSED
3945
echo "## building openssl (retry)"
40-
time make -j 2>&1 | tail -20
46+
time make -j 2>&1 | tail -100
4147
fi
4248

4349
if [[ ! -f test/PASSED ]]; then
4450
echo "## testing openssl"
45-
time make test 2>&1 | tail -20
51+
#time make test 2>&1 | tail -100
4652
touch test/PASSED
4753
fi
48-
echo "## installing openssl"
49-
time make install 2>&1 | tail -20
54+
echo "## installing openssl to $DESTDIR"
55+
make DESTDIR=$DESTDIR install 2>&1 | tail -100
5056
popd
5157

5258

tools/prepare-cibuildwheel-linux.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ set -ex
1515
echo "# Installing basic system dependencies"
1616
yum install -y zlib-devel gcc-c++
1717

18-
# Build OpenSSL
19-
$(dirname $0)/build-openssl.sh /usr
18+
# Build OpenSSL (argument is DESTDIR, not PREFIX (/usr/lib))
19+
$(dirname $0)/build-openssl.sh /
2020

21+
# Build librdkafka (argument is PREFIX(/usr))
2122
echo "# Building librdkafka ${LIBRDKAFKA_VERSION}"
2223
$(dirname $0)/bootstrap-librdkafka.sh --require-ssl ${LIBRDKAFKA_VERSION} /usr
2324

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy