[Bug 256581] CARGO_GIT_SUBDIR doesn't work with unpacked [dependencies.<crate>]

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Jun 2021 16:03:08 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256581

            Bug ID: 256581
           Summary: CARGO_GIT_SUBDIR doesn't work with unpacked
                    [dependencies.<crate>]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: rust_at_FreeBSD.org
          Reporter: jbeich_at_FreeBSD.org
                CC: ports-bugs_at_FreeBSD.org

CARGO_GIT_SUBDIR expects each line to start with a crate name but fails to
substitute local paths if a crate dependency spans multiple lines e.g.,

  [dependencies.wgt]
  package = "wgpu-types"
  git = "https://github.com/gfx-rs/wgpu"
  rev = "53eab747a32414232be45d47cae8a43a369395d0"

To reproduce:

1. Remove games/veloren/files/patch-wgpu
2. Build without network -> failed
3. Adjust CARGO_GIT_SUBDIR: s/wgc/wgpu-core/ + s/wgt/wgpu-types/
4. Build without network -> failed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sun Jun 13 2021 - 16:03:08 UTC

Original text of this message