Bug 286584 - lang/rust-nightly: When CARGO_CRATES contains the GitHub revision the build fails: error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
Summary: lang/rust-nightly: When CARGO_CRATES contains the GitHub revision the build f...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Rust Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 19:21 UTC by Yuri Victorovich
Modified: 2025-05-04 19:21 UTC (History)
0 users

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


Attachments
testcase.shar (97.89 KB, text/plain)
2025-05-04 19:21 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2025-05-04 19:21:19 UTC
Created attachment 260157 [details]
testcase.shar

See the attached port as a testcase.

The log:
===>  Configuring for py311-polars-1.29.0
===>   Additional optimization to port applied
===>   Cargo config:
[source.cargo]
directory = '/usr/ports/misc/py-polars/work-py311/polars-py-1.29.0/py-polars/cargo-crates'
[source.crates-io]
replace-with = 'cargo'
[patch.'https://github.com/pola-rs/jemallocator']
tikv-jemalloc-sys = { path = '/usr/ports/misc/py-polars/work-py311/jemallocator-c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936/jemalloc-sys' }
tikv-jemallocator = { path = '/usr/ports/misc/py-polars/work-py311/jemallocator-c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936/jemallocator' }
===>   Updating Cargo.lock
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /usr/ports/misc/py-polars/work-py311/polars-py-1.29.0/py-polars/Cargo.toml
workspace: /usr/ports/misc/py-polars/work-py311/polars-py-1.29.0/Cargo.toml
error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`

Caused by:
  patch for `tikv-jemallocator` in `https://github.com/rust-lang/crates.io-index` failed to resolve

Caused by:
  The patch location `https://github.com/pola-rs/jemallocator?rev=c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936` does not appear to contain any packages matching the name `tikv-jemallocator`.
*** Error code 101