pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust186: relax cargo.mk
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Thu Apr 10 11:46:00 2025 +0200
Changeset: d76b2c4d760122089d7ba1a96b545f998d8046bf
Modified Files:
rust186/cargo.mk
Log Message:
rust186: relax cargo.mk
From: Taylor R Campbell
Before, a crate name like wasi-0.11.0+wasi-snapshop-preview1.crate
(which has non-numeric/dot characters after the + delimiter) would be
mapped to the URL:
https://crates.io/api/v1/crates/wasi/wasi-0.11.0+wasi-snapshot-preview1/download
when the correct URL is:
https://crates.io/api/v1/crates/wasi/0.11.0+wasi-snapshot-preview1/download
Extension of the fix discussed on tech-pkg@ at:
https://mail-index.NetBSD.org/tech-pkg/2025/03/16/msg030612.html
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d76b2c4d760122089d7ba1a96b545f998d8046bf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust186/cargo.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diffs:
diff --git a/rust186/cargo.mk b/rust186/cargo.mk
index 987f534d22..5eb1aaa9ef 100644
--- a/rust186/cargo.mk
+++ b/rust186/cargo.mk
@@ -36,7 +36,7 @@ DISTFILES+= ${crate}.crate
. if ${crate:M*+*}
# E.g., for `curl-sys-0.4.75+curl-8.10.0', we use the URL:
# https://crates.io/api/v1/crates/curl-sys/0.4.77+curl-8.10.1/download
-SITES.${crate}.crate+= -${MASTER_SITE_CRATESIO}${crate:C/-[0-9]+\.[0-9.]+.*$//}/${crate:C/^.*-([0-9]+\.[0-9.]+.*\+.*-[0-9]+\.[0-9]+.*)$/\1/}/download
+SITES.${crate}.crate+= -${MASTER_SITE_CRATESIO}${crate:C/-[0-9]+\.[0-9.]+.*$//}/${crate:C/^.*-([0-9]+\.[0-9.]+.*\+.*)$/\1/}/download
. else
SITES.${crate}.crate+= -${MASTER_SITE_CRATESIO}${crate:C/-[0-9]+\.[0-9.]+.*$//}/${crate:C/^.*-([0-9]+\.[0-9.]+.*)$/\1/}/download
. endif
Home |
Main Index |
Thread Index |
Old Index