Bug 265703 - Mk/Uses/cargo.mk: Rust fails to build the project: failed to parse manifest at xxx
Summary: Mk/Uses/cargo.mk: Rust fails to build the project: failed to parse manifest a...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Rust Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-08 05:02 UTC by Yuri Victorovich
Modified: 2022-08-25 21:38 UTC (History)
2 users (show)

See Also:


Attachments
Makefile (1.70 KB, text/plain)
2022-08-08 05:03 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 2022-08-08 05:02:40 UTC
> ===>   Updating Cargo.lock
> error: failed to parse manifest at `/disk-samsung/freebsd-ports/math/py-retworkx/work-py39/retworkx-0.11.0/Cargo.toml`
> 
> Caused by:
>   virtual manifests must be configured with [workspace]
> *** Error code 101

See the attached Makefile from the port.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-08-08 05:03:15 UTC
Created attachment 235764 [details]
Makefile
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2022-08-23 09:18:59 UTC
The workdir is empty:
ls work-py39/retworkx-0.11.0/
./            ../           cargo-crates/

You can use github instead of cheesechop: https://github.com/Qiskit/rustworkx/
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2022-08-25 21:38:29 UTC
FWIW, USES=cargo appends stuff to DISTFILES, so the framework's
default DISTFILES value is ignored (semantics of ?=). This means
DISTFILES is currently missing retworkx-0.11.0.tar.gz.

So the solution is not to use a workaround like falling back to
USE_GITHUB but to address the immediate cause of the problem by adding

DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

to the port.