Skip to content

Commit

Permalink
Fix broken link for NetBSD 9.2 base source used by cross workaround (#…
Browse files Browse the repository at this point in the history
…575)

Recently NetBSD 9.2 source was archived affecting the `base.tar.xz` link
used by the `libexecinfo.so` **cross** workaround
(cross-rs/cross#1345).

This small patch prefers `NetBSD 9.3` as it is the latest `9.x`.

-
https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz
(broken)
-
https://archive.netbsd.org/pub/NetBSD-archive/NetBSD-9.2/amd64/binary/sets/base.tar.xz
(archived)
-
https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz
(new)

Additionally, I added a `-f, --fail` to curl to fail in case a `4xx` or
greater happens again.
  • Loading branch information
joseluisq authored Jan 3, 2025
1 parent 5ac8d75 commit d337f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ features = ["std"]
[package.metadata.cross.target.x86_64-unknown-netbsd]
pre-build = [
"mkdir -p /tmp/netbsd",
"curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O",
"curl -fO https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz",
"tar -C /tmp/netbsd -xJf base.tar.xz",
"cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib",
"rm base.tar.xz",
Expand Down

0 comments on commit d337f1a

Please sign in to comment.