]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
install quiche helper: do not use -i without arg and add missing / on Darwin
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 23 May 2025 07:42:38 +0000 (09:42 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 23 May 2025 07:44:49 +0000 (09:44 +0200)
BSD sed does not like -i without arg

builder-support/helpers/install_quiche.sh

index 5f5a93e05aa95d4b3d8cdd45f9d3091ce03d8a0c..cbdad171bfc19e9d71ce9a070264aac4424603d1 100755 (executable)
@@ -38,8 +38,8 @@ echo "${QUICHE_TARBALL_HASH}"  "${QUICHE_TARBALL}" | sha256sum -c -
 tar xf "${QUICHE_TARBALL}"
 cd "quiche-${QUICHE_VERSION}"
 # Disable SONAME in the quiche shared library, we do not intend this library to be used by anyone else and it makes things more complicated since we rename it to libdnsdist-quiche
-sed -i 's/ffi = \["dep:cdylib-link-lines"\]/ffi = \[\]/' quiche/Cargo.toml
-sed -i 's,cdylib_link_lines::metabuild();,//cdylib_link_lines::metabuild();,' quiche/src/build.rs
+sed -i.bak 's/ffi = \["dep:cdylib-link-lines"\]/ffi = \[\]/' quiche/Cargo.toml
+sed -i.bak 's,cdylib_link_lines::metabuild();,//cdylib_link_lines::metabuild();,' quiche/src/build.rs
 RUST_BACKTRACE=1 cargo build --release --no-default-features --features ffi,boringssl-boring-crate --package quiche
 
 # While we tried to get rid of the SONAME in libquiche.so, on debian trixie's
@@ -55,7 +55,7 @@ install -m644 quiche/include/quiche.h "${INSTALL_PREFIX}"/include
 install -m644 target/release/libquiche.${SOEXT} "${LIBDIR}"/libdnsdist-quiche.${SOEXT}
 
 if [ $(uname) = Darwin ]; then
-  install_name_tool -id "${LIBDIR}/libdnsdist-quiche.${SOEXT}" "${LIBDIR}"libdnsdist-quiche.${SOEXT}
+  install_name_tool -id "${LIBDIR}/libdnsdist-quiche.${SOEXT}" "${LIBDIR}/"libdnsdist-quiche.${SOEXT}
 fi
 
 if [ ! -d "${LIBDIR}"/pkgconfig/ ]; then