aports/community/below/getrandom-0.2.10.patch
Jakub Jirutka f7c7d680a5 community/below: upgrade to 0.7.0, disable on 32-bit
error[E0308]: mismatched types
      --> /home/buildozer/.cargo/registry/src/index.crates.io-1cd66030c949c28d/libbpf-rs-0.20.1/src/program.rs:56:17
       |
    56 |             sz: mem::size_of::<Self>() as u64,
       |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`
    error[E0308]: mismatched types
      --> /home/buildozer/.cargo/registry/src/index.crates.io-1cd66030c949c28d/libbpf-rs-0.20.1/src/program.rs:79:17
       |
    79 |             sz: mem::size_of::<Self>() as u64,
       |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`
    error[E0308]: mismatched types
       --> /home/buildozer/.cargo/registry/src/index.crates.io-1cd66030c949c28d/libbpf-rs-0.20.1/src/program.rs:538:17
        |
    538 |             sz: mem::size_of::<Self>() as u64,
        |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`
2023-07-16 21:03:05 +00:00

33 lines
943 B
Diff

Fix build on musl 1.2.4+.
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/48706#note_321802
https://github.com/rust-random/getrandom/pull/326
`cargo update -p getrandom --precise 0.2.10`
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -916,9 +916,9 @@
[[package]]
name = "getrandom"
-version = "0.2.8"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
+checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
dependencies = [
"cfg-if",
"libc",
@@ -1162,9 +1162,9 @@
[[package]]
name = "libc"
-version = "0.2.141"
+version = "0.2.147"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3304a64d199bb964be99741b7a14d26972741915b3649639149b2479bb46f4b5"
+checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
[[package]]
name = "libm"