This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new e8e9b77cca build_h3_tools: explicitly chmod the destination directory (#10274) e8e9b77cca is described below commit e8e9b77cca1943307931bebf4bf4aa92caadc482 Author: Brian Neradt <brian.ner...@gmail.com> AuthorDate: Fri Aug 25 17:03:23 2023 -0500 build_h3_tools: explicitly chmod the destination directory (#10274) For systems where root has a restricted mask, explicitly have build_h3_tools.sh chmod the install directory so that it is accessible after installing each submodule. Otherwise future steps can't read the installs of previous ones and future users will not be able to access it. --- tools/build_h3_tools.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/build_h3_tools.sh b/tools/build_h3_tools.sh index f0e5a29fdb..5331bfa6d6 100755 --- a/tools/build_h3_tools.sh +++ b/tools/build_h3_tools.sh @@ -116,6 +116,7 @@ fi wget https://go.dev/dl/go1.21.0.${OS}-${ARCH}.tar.gz sudo rm -rf ${BASE}/go && sudo tar -C ${BASE} -xf go1.21.0.${OS}-${ARCH}.tar.gz rm go1.21.0.${OS}-${ARCH}.tar.gz +sudo chmod -R a+rX ${BASE} GO_BINARY_PATH=${BASE}/go/bin/go if [ ! -d boringssl ]; then @@ -134,6 +135,7 @@ cmake \ -DBUILD_SHARED_LIBS=1 cmake --build build -j ${num_threads} sudo cmake --install build +sudo chmod -R a+rX ${BASE} # Build quiche # Steps borrowed from: https://github.com/apache/trafficserver-ci/blob/main/docker/rockylinux8/Dockerfile @@ -153,6 +155,7 @@ sudo cp target/release/libquiche.a ${QUICHE_BASE}/lib/ [ -f target/release/libquiche.so ] && sudo cp target/release/libquiche.so ${QUICHE_BASE}/lib/ sudo cp quiche/include/quiche.h ${QUICHE_BASE}/include/ sudo cp target/release/quiche.pc ${QUICHE_BASE}/lib/pkgconfig +sudo chmod -R a+rX ${BASE} cd .. echo "Building OpenSSL with QUIC support" @@ -161,10 +164,12 @@ cd openssl-quic ./config enable-tls1_3 --prefix=${OPENSSL_PREFIX} ${MAKE} -j ${num_threads} sudo ${MAKE} install_sw +sudo chmod -R a+rX ${BASE} # The symlink target provides a more convenient path for the user while also # providing, in the symlink source, the precise branch of the OpenSSL build. sudo ln -sf ${OPENSSL_PREFIX} ${OPENSSL_BASE} +sudo chmod -R a+rX ${BASE} cd .. # OpenSSL will install in /lib or lib64 depending upon the architecture. @@ -192,6 +197,7 @@ autoreconf -if --enable-lib-only ${MAKE} -j ${num_threads} sudo ${MAKE} install +sudo chmod -R a+rX ${BASE} cd .. # Now ngtcp2 @@ -208,6 +214,7 @@ autoreconf -if --enable-lib-only ${MAKE} -j ${num_threads} sudo ${MAKE} install +sudo chmod -R a+rX ${BASE} cd .. # Then nghttp2, with support for H3 @@ -234,6 +241,7 @@ fi ${ENABLE_APP} ${MAKE} -j ${num_threads} sudo ${MAKE} install +sudo chmod -R a+rX ${BASE} cd .. # Then curl @@ -254,4 +262,5 @@ autoreconf -fi || autoreconf -fi LDFLAGS="${LDFLAGS}" ${MAKE} -j ${num_threads} sudo ${MAKE} install +sudo chmod -R a+rX ${BASE} cd ..