Skip to content

Commit 18e786b

Browse files
CI: NetBSD: build a fresh OpenSSL from source, we need >= 3.2
1 parent de2c4ea commit 18e786b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,29 @@ jobs:
412412
touch ${TMPDIR}/testfile
413413
lsextattr user ${TMPDIR}/testfile && echo "[xattr] *** xattrs SUPPORTED on ${TMPDIR}! ***"
414414
415+
# NetBSD 10 has a too old OpenSSL, build a fresher one.
416+
VERSION="3.5.6"
417+
echo "--- Building OpenSSL ${VERSION} ---"
418+
PREFIX="/usr/local"
419+
JOBS=$(sysctl -n hw.ncpu)
420+
421+
pushd /tmp
422+
ftp -o "openssl-${VERSION}.tar.gz" "https://www.openssl.org/source/openssl-${VERSION}.tar.gz"
423+
tar xzf "openssl-${VERSION}.tar.gz"
424+
pushd "openssl-${VERSION}"
425+
426+
./Configure --prefix="${PREFIX}" --openssldir="${PREFIX}/etc/ssl" --libdir=lib \
427+
-Wl,-rpath,${PREFIX}/lib shared threads no-tests no-docs
428+
export LD_LIBRARY_PATH="/usr/local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
429+
make -j"${JOBS}"
430+
sudo -E make install
431+
popd
432+
rm -rf "/tmp/openssl-${VERSION}" "/tmp/openssl-${VERSION}.tar.gz"
433+
popd
434+
435+
"${PREFIX}/bin/openssl" version
436+
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
437+
415438
tox3 -e py311-none
416439
;;
417440

0 commit comments

Comments
 (0)