tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem downloading some Rust crates



------- Ursprungligt meddelande --------
Den 2024-12-02 21:42, pin <voidpin%protonmail.com@localhost> skrev:

>  -------- Ursprungligt meddelande --------
>  Den 2024-12-02 21:32, Adam <adam%netbsd.org@localhost> skrev:
>  
>  >  I came across a problem with downloading some Rust/Cargo crates like curl-sys-0.4.78+curl-8.11.0. The regex in lang/rust/cargo.mk (${crate:C/-[0-9]+\.[0-9.]+.*$//}/${crate:C/^.*-([0-9]+\.[0-9.]+.*)$/\1/}) tries to make up an URL by extracting the last version component, in this case 8.11.0, but that is wrong. The correct version is 0.4.78+curl-8.11.0 (the full URL: https://crates.io/api/v1/crates/curl-sys/0.4.78+curl-8.11.0/download). I am not sure how to fix this. Any suggestions?
>  >  
>  >  Kind regards,
>  >  Adam
>  
>  Yes, specify it on the Makefile or, in cargo-depends.mk.
>  See, for example devel/cargo-c for the first or, graphics/simp for the second.
>  
>  /Pedro


Home | Main Index | Thread Index | Old Index