From: Otto Moerbeek Date: Wed, 16 Apr 2025 11:43:03 +0000 (+0200) Subject: If SONAME is present in the generated quiche lib set it to the correct value X-Git-Tag: dnsdist-2.0.0-alpha2~45^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223917e2886dd3a8fb8a72ea4267dd2fc6961c65;p=thirdparty%2Fpdns.git If SONAME is present in the generated quiche lib set it to the correct value This is needed as we rename the file. We try to not include the SONAME, but some systems include it anyway. --- diff --git a/builder-support/helpers/install_quiche.sh b/builder-support/helpers/install_quiche.sh index 0674ebcbbb..5f36d54605 100755 --- a/builder-support/helpers/install_quiche.sh +++ b/builder-support/helpers/install_quiche.sh @@ -42,6 +42,15 @@ 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 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 +# packaged rustc puts it in anyway. +# See (https://sources.debian.org/patches/rustc/1.85.0%2Bdfsg2-3/behaviour/d-rustc-add-soname.patch/). +# So if it is present, patch it to the correct name. +if objdump -p target/release/libquiche.${SOEXT} | fgrep -q SONAME +then + patchelf --set-soname libdnsdist-quiche.so target/release/libquiche.${SOEXT} +fi + install -m644 quiche/include/quiche.h "${INSTALL_PREFIX}"/include install -m644 target/release/libquiche.${SOEXT} "${LIBDIR}"/libdnsdist-quiche.${SOEXT}