summaryrefslogtreecommitdiffstats
path: root/test/travis_before_linux.sh
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2024-07-26 11:14:40 +0200
committerJoe Orton <jorton@apache.org>2024-07-26 11:14:40 +0200
commit4eee244d55fee6e7b5ed79591f2e097e00e3cc1e (patch)
treea6643c6d8e489a067f5157d2a945ea56eefaa0cf /test/travis_before_linux.sh
parent* modules/core/mod_so.c (load_module): Log the file/lineno for a (diff)
downloadapache2-4eee244d55fee6e7b5ed79591f2e097e00e3cc1e.tar.xz
apache2-4eee244d55fee6e7b5ed79591f2e097e00e3cc1e.zip
CI: Fix OpenSSL tarball download URLs after openssl.org site refresh
CI: Update to latest OpenSSL releases. CI: Build OpenSSL with RPATH set so that the installed ./bin/openssl works without LD_LIBRARY_PATH set. Use LD_RUN_PATH during the httpd build to achieve the same with binaries from the httpd build, but unset it after so that it doesn't affect running e.g. php-fpm or perl later. Should fix warning from logs when php-fpm is executed -- [26-Jul-2024 07:43:34] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/lib/php/20210902/curl.so (/lib/x86_64-linux-gnu/libcurl.so.4: undefined symbol: ENGINE_init, version OPENSSL_3.0.0), /usr/lib/php/20210902/curl.so.so (/usr/lib/php/20210902/curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 CI: Test that php-fpm works if available before testing. CI: For paranoia/future debugging, log the OpenSSL version from compile-time and run-time as reported by mod_ssl. Github: closes #466 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919524 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/travis_before_linux.sh')
-rwxr-xr-xtest/travis_before_linux.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/travis_before_linux.sh b/test/travis_before_linux.sh
index 4094959b50..79b983c0ab 100755
--- a/test/travis_before_linux.sh
+++ b/test/travis_before_linux.sh
@@ -119,10 +119,13 @@ if test -v TEST_OPENSSL3; then
mkdir -p build/openssl
pushd build/openssl
- curl "https://www.openssl.org/source/openssl-${TEST_OPENSSL3}.tar.gz" |
+ curl -L "https://github.com/openssl/openssl/releases/download/openssl-${TEST_OPENSSL3}/openssl-${TEST_OPENSSL3}.tar.gz" |
tar -xzf -
cd openssl-${TEST_OPENSSL3}
- ./Configure --prefix=$HOME/root/openssl3 shared no-tests ${OPENSSL_CONFIG}
+ # Build with RPATH so ./bin/openssl doesn't require $LD_LIBRARY_PATH
+ ./Configure --prefix=$HOME/root/openssl3 \
+ shared no-tests ${OPENSSL_CONFIG} \
+ '-Wl,-rpath=$(LIBRPATH)'
make $MFLAGS
make install_sw
touch $HOME/root/openssl-is-${TEST_OPENSSL3}