Fix the unwind-sys build on latest Fedora (#30906)

The libunwind library version installed includes an rc number. The
latest released version of the `unwind-sys` crate doesn't handle this
properly, so rely on the latest commit in the upstream repository.
This commit is contained in:
Martin Robinson 2023-12-21 15:37:00 +01:00 committed by GitHub
parent a9bf29cf8a
commit d007d265bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

3
Cargo.lock generated
View file

@ -6446,8 +6446,7 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "unwind-sys"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d554005b247de226d124a523cae6cd6a4348277071258296dda837cf760e02e7"
source = "git+https://github.com/sfackler/rstack?rev=bd0f3ec#bd0f3eceb9f086a93c1e4c5fbccf1f886effe627"
dependencies = [
"libc",
"pkg-config",

View file

@ -29,4 +29,6 @@ mach = "0.3"
[target.'cfg(all(target_os = "linux", not(any(target_arch = "arm", target_arch = "aarch64"))))'.dependencies]
nix = "0.25"
unwind-sys = "0.1.1"
# There's a bug in 0.1.3 that prevent proper compilation against rc revisions
# of libunwind. Depend on the git repository version until 0.1.4 is released.
unwind-sys = { git = "https://github.com/sfackler/rstack", rev = "bd0f3ec" }