From f745f550db59f97197e2b64247f3a806b472ea6a Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Thu, 14 Nov 2024 11:51:07 +0100 Subject: [PATCH] build.sh: update version for crate openssl-sys Signed-off-by: Laurent Cheylus --- build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 66135b4..ad6f4af 100755 --- a/build.sh +++ b/build.sh @@ -61,13 +61,13 @@ rm -f /tmp/cargo-nextest-"${VERSION}".tar.gz mkdir -p "${WRKDIR}"/crates # Download crate openssl-sys -echo "[*] Download sources for openssl-sys-0.9.103 crate" +echo "[*] Download sources for openssl-sys-0.9.104 crate" cd "${WRKDIR}" -curl -sL https://crates.io/api/v1/crates/openssl-sys/0.9.103/download|tar xzf - -C crates +curl -sL https://crates.io/api/v1/crates/openssl-sys/0.9.104/download|tar xzf - -C crates # Patch crate openssl-sys -echo "[*] Patch sources for openssl-sys-0.9.103 crate" -cd "${WRKDIR}"/crates/openssl-sys-0.9.103 +echo "[*] Patch sources for openssl-sys-0.9.104 crate" +cd "${WRKDIR}"/crates/openssl-sys-0.9.104 sed -i.orig -e "/ => ('.', '.'),/h" -e "/ => ('.', '.', '.'),/h" -e "/_ => version_error(),/{g; s/(.*) =>/_ =>/; }" build/main.rs # Download crate zstd-sys-2.0.13+zstd.1.5.6 @@ -86,7 +86,7 @@ sed -i '1s/^/#![allow(unreachable_code)]\'$'\n/' build.rs echo "[*] Patch cargo configuration in .cargo/config.toml" printf "\n[patch.crates-io]\n" > /tmp/cargo_config-patch.toml -printf "openssl-sys = { path = 'crates/openssl-sys-0.9.103'}\n" >> /tmp/cargo_config-patch.toml +printf "openssl-sys = { path = 'crates/openssl-sys-0.9.104'}\n" >> /tmp/cargo_config-patch.toml printf "zstd-sys = { path = 'crates/zstd-sys-2.0.13+zstd.1.5.6' }\n" >> /tmp/cargo_config-patch.toml cat /tmp/cargo_config-patch.toml >> "${WRKDIR}"/.cargo/config.toml