Skip to content

Commit e41e7db

Browse files
committed
build: dirty workaround for openssl-1.1.1d
Why did not openssl team test their package before release
1 parent 260d0a1 commit e41e7db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nginx-build-msys2.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PCRE="$(curl -s 'https://ftp.pcre.org/pub/pcre/' | grep -ioP 'pcre-(\d+\.)+\d+'
3535
PCRE="${PCRE:-pcre-8.43}"
3636
echo $PCRE
3737
OPENSSL="$(curl -s 'https://www.openssl.org/source/' | grep -ioP 'openssl-(\d+\.)+[a-z\d]+' | sort -ruV | head -1)"
38-
OPENSSL="${OPENSSL:-openssl-1.1.1b}"
38+
OPENSSL="${OPENSSL:-openssl-1.1.1d}"
3939
echo $OPENSSL
4040

4141
# clone and patch nginx
@@ -68,6 +68,11 @@ tar -xf "${PCRE}.tar.bz2"
6868
wget -c -nv "https://www.openssl.org/source/${OPENSSL}.tar.gz"
6969
tar -xf "${OPENSSL}.tar.gz"
7070

71+
# dirty workaround for openssl-1.1.1d
72+
if [ "${OPENSSL}" = "openssl-1.1.1d" ]; then
73+
sed -i 's/return return 0;/return 0;/' openssl-1.1.1d/crypto/threads_none.c
74+
fi
75+
7176
# make changes
7277
make -f docs/GNUmakefile changes
7378
mv -f tmp/*/CHANGES* ../docs/

0 commit comments

Comments
 (0)