Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 May 2021 18:32:13 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Alex Dupre <ale@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org, freebsd-rust@freebsd.org
Subject:   Re: USES=cargo vs. workspaces
Message-ID:  <r1ij-x1pu-wny@FreeBSD.org>
In-Reply-To: <ff5a4774-c2e4-1123-d968-63ee7ea7d7d8@FreeBSD.org> (Alex Dupre's message of "Thu, 6 May 2021 18:25:14 %2B0200")
References:  <zhie-58co-wny@FreeBSD.org> <72cc189f-178d-008c-f2de-9a32b72fcd9e@FreeBSD.org> <ff5a4774-c2e4-1123-d968-63ee7ea7d7d8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alex Dupre <ale@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?r1ij-x1pu-wny>