[Bug 270604] Mk/Scripts/cargo-crates.awk: [[patch]] in Cargo.lock causes lossy output

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 02 Apr 2023 18:11:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270604

            Bug ID: 270604
           Summary: Mk/Scripts/cargo-crates.awk: [[patch]] in Cargo.lock
                    causes lossy output
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: rust@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: ports-bugs@FreeBSD.org

After ports d09e89181b41 or
https://github.com/fishfolk/jumpy/commit/f3ddaf31fbab one crate goes missing
despite still being listed in Cargo.lock.

$ cd games/jumpy
$ make cargo-crates BATCH= | portedit merge -i Makefile.crates
$ make makesum
$ make
[...]
===>   Updating Cargo.lock
error: no matching package found
searched package name: `zstd-sys`
perhaps you meant:      js-sys or zstd-safe
location searched: registry `crates-io`
required by package `zstd-safe v5.0.2+zstd.1.5.2`
    ... which satisfies dependency `zstd-safe = "^5.0.1"` of package `zstd
v0.11.2+zstd.1.5.2`
    ... which satisfies dependency `zstd = "^0.11.1"` of package `puffin
v0.14.3`
    ... which satisfies dependency `puffin = "^0.14.3"` of package `jumpy
v0.5.1 (/wrkdirs/usr/ports/games/jumpy/work/jumpy-0.6.1)`
*** Error code 101

Removing the following appears to help:

[[patch.unused]]
name = "bevy_simple_tilemap"
version = "0.11.0"
source =
"git+https://github.com/forbjok/bevy_simple_tilemap.git#9a1d4332e961327443adb16aca306f837b6f4da5"

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