USES=cargo vs. workspaces

Jan Beich jbeich at FreeBSD.org
Thu May 6 16:32:17 UTC 2021


Alex Dupre <ale at FreeBSD.org> writes:

> On 07/10/19 09:41, Alex Dupre wrote:
>
>>> Some projects (e.g., Servo, Veloren) bundle several packages together.
>>> When dependencies also bundle packages it confuses "git" override.
>>> Any tips/workarounds that scale beyond 1 port?
>> 
>> I haven't a solution, I can just say that I have the same issue with the
>> parity ethereum client (that in fact it's not in the ports tree yet).
>
> With the latest openethereum update, that adds the new rethutil
> dependency, the issue came up again:
>
> ===>  Configuring for openethereum-3.2.5
> error: failed to get `reth-util` as a dependency of package `ethcore
> v1.12.0
> (/wrkdirs/usr/ports/net-p2p/openethereum/work/openethereum-3.2.5/crates/ethcore)`
>
> Caused by:
>   failed to load source for dependency `reth-util`
>
> Caused by:
>   Unable to update
> /wrkdirs/usr/ports/net-p2p/openethereum/work/reth-573e128487d5651f301e21faa97fc8e80f91dee8
>
> Caused by:
>   found a virtual manifest at
> `/wrkdirs/usr/ports/net-p2p/openethereum/work/reth-573e128487d5651f301e21faa97fc8e80f91dee8/Cargo.toml`
> instead of a package manifest
> ** Error code 101

Did you try CARGO_GIT_SUBDIR? See https://cgit.freebsd.org/ports/commit/?id=ab415159b8b9
If that commit message is still unclear check existing consumers:

$ rg -l CARGO_GIT_SUBDIR
Mk/Uses/cargo.mk
dns/dog/Makefile
games/veloren/Makefile
security/bitwarden_rs/Makefile
sysutils/vector/Makefile
x11/wmfocus/Makefile


More information about the freebsd-ports mailing list