Skip to content

Commit f745f55

Browse files
committed
build.sh: update version for crate openssl-sys
Signed-off-by: Laurent Cheylus <foxy@free.fr>
1 parent a038017 commit f745f55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ rm -f /tmp/cargo-nextest-"${VERSION}".tar.gz
6161
mkdir -p "${WRKDIR}"/crates
6262

6363
# Download crate openssl-sys
64-
echo "[*] Download sources for openssl-sys-0.9.103 crate"
64+
echo "[*] Download sources for openssl-sys-0.9.104 crate"
6565
cd "${WRKDIR}"
66-
curl -sL https://crates.io/api/v1/crates/openssl-sys/0.9.103/download|tar xzf - -C crates
66+
curl -sL https://crates.io/api/v1/crates/openssl-sys/0.9.104/download|tar xzf - -C crates
6767

6868
# Patch crate openssl-sys
69-
echo "[*] Patch sources for openssl-sys-0.9.103 crate"
70-
cd "${WRKDIR}"/crates/openssl-sys-0.9.103
69+
echo "[*] Patch sources for openssl-sys-0.9.104 crate"
70+
cd "${WRKDIR}"/crates/openssl-sys-0.9.104
7171
sed -i.orig -e "/ => ('.', '.'),/h" -e "/ => ('.', '.', '.'),/h" -e "/_ => version_error(),/{g; s/(.*) =>/_ =>/; }" build/main.rs
7272

7373
# Download crate zstd-sys-2.0.13+zstd.1.5.6
@@ -86,7 +86,7 @@ sed -i '1s/^/#![allow(unreachable_code)]\'$'\n/' build.rs
8686
echo "[*] Patch cargo configuration in .cargo/config.toml"
8787

8888
printf "\n[patch.crates-io]\n" > /tmp/cargo_config-patch.toml
89-
printf "openssl-sys = { path = 'crates/openssl-sys-0.9.103'}\n" >> /tmp/cargo_config-patch.toml
89+
printf "openssl-sys = { path = 'crates/openssl-sys-0.9.104'}\n" >> /tmp/cargo_config-patch.toml
9090
printf "zstd-sys = { path = 'crates/zstd-sys-2.0.13+zstd.1.5.6' }\n" >> /tmp/cargo_config-patch.toml
9191

9292
cat /tmp/cargo_config-patch.toml >> "${WRKDIR}"/.cargo/config.toml

0 commit comments

Comments
 (0)