Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2023 06:49:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 273280] Mk/Uses/cargo.mk: Invalid ${WRKDIR}/.cargo/config.toml is generated
Message-ID:  <bug-273280-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273280

            Bug ID: 273280
           Summary: Mk/Uses/cargo.mk: Invalid ${WRKDIR}/.cargo/config.toml
                    is generated
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ports-bugs@FreeBSD.org

Created attachment 244277
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244277&action=
=3Dedit
Makefile

The build fails with the attached Makefile that has CARGO_CRATES generated =
with
'make cargo-crates':
> =3D=3D=3D>   Updating Cargo.lock
> error: failed to load manifest for workspace member `/usr/ports/security/=
solana/work/solana-1.16.9/account-decoder`
>=20
> Caused by:
>   failed to parse manifest at `/usr/ports/security/solana/work/solana-1.1=
6.9/account-decoder/Cargo.toml`
>=20
> Caused by:
>   could not load Cargo configuration
>=20
> Caused by:
>   could not parse TOML configuration in `/usr/ports/security/solana/work/=
.cargo/config.toml`
>=20
> Caused by:
>   could not parse input as TOML
>=20
> Caused by:
>   TOML parse error at line 8, column 1
>     |
>   8 | ntapi =3D { path =3D '/usr/ports/security/solana/work/ntapi-97ede98=
1a1777883ff86d142b75024b023f04fad' }
>     | ^
>   duplicate key `ntapi` in table `patch.crates-io`
> *** Error code 101


Additionally, after the duplicate is removed, the build fails again due to
missing dependencies:
> =3D=3D=3D>   Updating Cargo.lock
> error: no matching package found
> searched package name: `ntapi`
> perhaps you meant:      caps, clap, hidapi, ...
> location searched: registry `crates-io`
> required by package `mio v0.7.14`
>     ... which satisfies dependency `mio =3D "^0.7.6"` of package `tokio v=
1.14.1`
>     ... which satisfies dependency `tokio =3D "^1.13.0"` of package `quin=
n v0.9.4`
>     ... which satisfies dependency `quinn =3D "^0.9.4"` of package `solan=
a-client v1.16.9 (/usr/ports/security/solana/work/solana-1.16.9/client)`
>     ... which satisfies path dependency `solana-client` of package `solan=
a-accounts-cluster-bench v1.16.9 (/usr/ports/security/solana/work/solana-1.=
16.9/accounts-cluster-bench)`
> *** Error code 101


rust-1.71.0
FreeBSD 13.2

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273280-7788>