[Bug 276116] Mk/Uses/cargo.mk: Build fails: failed to parse manifest

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 04 Jan 2024 17:31:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276116

            Bug ID: 276116
           Summary: Mk/Uses/cargo.mk: Build fails: failed to parse
                    manifest
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

Created attachment 247447
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247447&action=edit
Makefile

'cargo build' builds https://github.com/nvarner/typst-lsp successfully, but it
fails in the ports framework using rust-1.74.1:

> ===>  Moving crates to /usr/ports/lang/typst-lsp/work/typst-lsp-0.12.1/cargo-crates
> ===>  Patching for typst-lsp-0.12.1
> ===>   typst-lsp-0.12.1 depends on package: rust>=1.74.0 - found
> ===>   typst-lsp-0.12.1 depends on package: pkgconf>=1.3.0_1 - found
> ===>   typst-lsp-0.12.1 depends on file: /usr/local/bin/ccache - found
> ===>  Configuring for typst-lsp-0.12.1
> ===>   Additional optimization to port applied
> ===>   Cargo config:
> [source.cargo]
> directory = '/usr/ports/lang/typst-lsp/work/typst-lsp-0.12.1/cargo-crates'
> [source.crates-io]
> replace-with = 'cargo'
> [patch.'https://github.com/typst/typst.git']
> typst-syntax = { path = '/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-syntax' }
> typst = { path = '/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst' }
> typst-ide = { path = '/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-ide' }
> typst-macros = { path = '/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-macros' }
> typst-pdf = { path = '/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-pdf' }
> typst-syntax = { path = '/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-syntax' }
> [patch.'https://github.com/astrale-sharp/typstfmt']
> typstfmt_lib = { path = '/usr/ports/lang/typst-lsp/work/typstfmt-0.2.7/lib' }
> ===>   Updating Cargo.lock
> error: failed to parse manifest at `/usr/ports/lang/typst-lsp/work/typst-lsp-0.12.1/Cargo.toml`

-- 
You are receiving this mail because:
You are the assignee for the bug.