Bug 244989 - devel/cargo-c: doesn't fetch curl-sys-0.4.30+curl-7.69.1.tar.gz
Summary: devel/cargo-c: doesn't fetch curl-sys-0.4.30+curl-7.69.1.tar.gz
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jan Beich
Depends on:
Reported: 2020-03-22 21:39 UTC by VVD
Modified: 2020-03-22 23:52 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (jbeich)


Note You need to log in before you can comment on or make changes to this bug.
Description VVD 2020-03-22 21:39:31 UTC
=> Attempting to fetch https://crates.io/api/v1/crates/curl-sys-0.4.30+curl/7.69.1/download?dummy=/rust/crates/curl-sys-0.4.30+curl-7.69.1.tar.gz
fetch: https://crates.io/api/v1/crates/curl-sys-0.4.30+curl/7.69.1/download?dummy=/rust/crates/curl-sys-0.4.30+curl-7.69.1.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this

But correct name of the file is:

This line of Makefile "curl-sys-0.4.30+curl-7.69.1" converted to "curl-sys-0.4.30+curl/7.69.1" for downloading, but must be "curl-sys/0.4.30+curl-7.69.1".

Probably bug is in Mk/Uses/cargo.mk:
.for _crate in ${CARGO_CRATES}
  MASTER_SITES+=  CRATESIO/${_crate:C/^(.*)-[0-9].*/\1/}/${_crate:C/^.*-([0-9].*)/\1/}:cargo_${_crate:C/[^a-zA-Z0-9_]//g}
  DISTFILES+=     ${CARGO_DIST_SUBDIR}/${_crate}.tar.gz:cargo_${_crate:C/[^a-zA-Z0-9_]//g}

If download file manually in distfiles/rust/crates/curl-sys-0.4.30+curl-7.69.1.tar.gz then devel/cargo-c build fine.
Comment 1 Jan Beich freebsd_committer 2020-03-22 22:47:40 UTC
Looks like I've landed the update without the workaround and before the fix.

*** This bug has been marked as a duplicate of bug 244977 ***
Comment 2 VVD 2020-03-22 23:52:20 UTC
Looked in the list of issues, but the name of that issue is not very obvious (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244977)…