Skip to content

Commit 2ed15de

Browse files
committed
diagnose issue with ntf’s fragile build system
Signed-off-by: Patrick M. Niedzielski <pniedzielski@bloomberg.net>
1 parent 30fd0b0 commit 2ed15de

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

bin/build-manylinux.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ if [ ! -e "${DIR_THIRDPARTY}/bison/.complete" ]; then
7575
touch "${DIR_THIRDPARTY}/bison/.complete"
7676
fi
7777

78+
if [ ! -e "${DIR_BUILD}/openssl/.complete" ]; then
79+
if [ ! -d "${DIR_THIRDPARTY}/openssl" ]; then
80+
mkdir -p "${DIR_THIRDPARTY}/openssl"
81+
curl -sL https://www.openssl.org/source/openssl-1.1.1w.tar.gz | tar -xz -C "${DIR_THIRDPARTY}/openssl" --strip-components 1
82+
fi
83+
pushd "${DIR_THIRDPARTY}/openssl"
84+
./config --prefix="${DIR_INSTALL}" --openssldir="${DIR_INSTALL}/ssl" --libdir=lib64 no-shared -fPIC
85+
make -j 16
86+
make install_sw
87+
popd
88+
touch "${DIR_BUILD}/openssl/.complete"
89+
fi
90+
7891
if [ ! -e "${DIR_BUILD}/google-benchmark/.complete" ]; then
7992
pushd "${DIR_THIRDPARTY}/google-benchmark"
8093
cmake -E make_directory "${DIR_BUILD}/google-benchmark"
@@ -112,6 +125,7 @@ fi
112125
if [ ! -e "${DIR_BUILD}/ntf-core/.complete" ]; then
113126
# Build and install NTF
114127
pushd "${DIR_THIRDPARTY}/ntf-core"
128+
OPENSSL_ROOT_DIR="${DIR_INSTALL}" \
115129
./configure --prefix "${DIR_INSTALL}" \
116130
--output "${DIR_BUILD}/ntf-core" \
117131
--ufid opt_64_pic_cpp17 \

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ PKG_CONFIG_PATH="install/lib/pkgconfig"
6464

6565
[tool.cibuildwheel.linux]
6666
before-all = [
67-
"dnf install -y gdb curl pkgconfig ninja-build flex flex-devel zlib-devel zlib-static openssl-devel",
67+
"dnf install -y gdb curl pkgconfig ninja-build flex flex-devel zlib-devel zlib-static perl-core",
6868
"DIR_INSTALL=/usr/local bash bin/build-manylinux.sh"
6969
]
7070

0 commit comments

Comments
 (0)