Bug 277633 - Mk/Uses/cargo.mk: Build of the port security/solana fails: error: failed to parse manifest at `/wrkdirs/usr/ports/security/solana/work/solana-1.18.5/Cargo.toml`
Summary: Mk/Uses/cargo.mk: Build of the port security/solana fails: error: failed to p...
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-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-11 16:27 UTC by Yuri Victorovich
Modified: 2024-03-13 00:52 UTC (History)
2 users (show)

See Also:


Attachments
patch (92.11 KB, patch)
2024-03-11 16:27 UTC, Yuri Victorovich
no flags Details | Diff
v0 (2.47 KB, application/toml)
2024-03-12 12:14 UTC, Mikael Urankar
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 2024-03-11 16:27:48 UTC
Created attachment 249095 [details]
patch

Build of the patched security/solana port with rust-1.76.0 fails:


===>  Configuring for solana-1.18.5
===>   Additional optimization to port applied
===>   Cargo config:
[source.cargo]
directory = '/wrkdirs/usr/ports/security/solana/work/solana-1.18.5/cargo-crates'
[source.crates-io]
replace-with = 'cargo'
[patch.crates-io]
crossbeam-epoch = { path = '/wrkdirs/usr/ports/security/solana/work/crossbeam-fd279d707025f0e60951e429bf778b4813d1b6bf/crossbeam-epoch' }
[patch.'https://github.com/RustCrypto/AEADs']
aes-gcm-siv = { path = '/wrkdirs/usr/ports/security/solana/work/AEADs-6105d7a5591aefa646a95d12b5e8d3f55a9214ef/aes-gcm-siv' }
[patch.'https://github.com/solana-labs/solana-tokio.git']
tokio = { path = '/wrkdirs/usr/ports/security/solana/work/solana-tokio-7cf47705faacf7bf0e43e4131a5377b3291fce21/tokio' }
tokio-macros = { path = '/wrkdirs/usr/ports/security/solana/work/solana-tokio-7cf47705faacf7bf0e43e4131a5377b3291fce21/tokio-macros' }
[patch.'https://github.com/solana-labs/crossbeam']
crossbeam-epoch = { path = '/wrkdirs/usr/ports/security/solana/work/crossbeam-fd279d707025f0e60951e429bf778b4813d1b6bf/crossbeam-epoch' }
[patch.'https://github.com/solana-labs/curve25519-dalek.git']
curve25519-dalek = { path = '/wrkdirs/usr/ports/security/solana/work/curve25519-dalek-b500cdc2a920cd5bff9e2dd974d7b97349d61464' }
===>   Updating Cargo.lock
error: failed to parse manifest at `/wrkdirs/usr/ports/security/solana/work/solana-1.18.5/Cargo.toml`

Caused by:
  key `rev` is ignored for dependency (aes-gcm-siv).
*** Error code 101

Stop.
make: stopped in /usr/ports/security/solana
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2024-03-12 12:14:07 UTC
Created attachment 249114 [details]
v0

We don't seem to support this kind of patch.crates-io.* in Cargo.toml. You can use the attached patch, it's compatible with our infra.
Sadly, I don't have time to fix our script to allow this patch.crates-io* notation