[Bug 269057] Mk/Uses/cargo.mk: 'make cargo-crates' generates lines for crates that aren't seen by the build (port audio/psst)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 19 Jan 2023 18:14:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269057

            Bug ID: 269057
           Summary: Mk/Uses/cargo.mk: 'make cargo-crates' generates lines
                    for crates that aren't seen by the build (port
                    audio/psst)
           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 239595
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239595&action=edit
shar

The attached port fails to build due to thi line in CARGO_CRATES:

> piet,piet-cairo,piet-common,piet-coregraphics,piet-direct2d,piet-web@git+https://github.com/jpochyla/piet?branch=psst\#0010af07c952803021afa3b89614b26cebf4e084 \

Failure:
error[E0432]: unresolved import `piet_cairo`
  -->
/usr/ports/audio/psst/work/piet-0010af07c952803021afa3b89614b26cebf4e084/piet-common/src/cairo_back.rs:18:9
   |
18 | pub use piet_cairo::*;
   |         ^^^^^^^^^^ use of undeclared crate or module `piet_cairo`

error[E0432]: unresolved import `cairo`
 -->
/usr/ports/audio/psst/work/piet-0010af07c952803021afa3b89614b26cebf4e084/piet-common/src/cairo_back.rs:6:5
  |
6 | use cairo::{Context, Format, ImageSurface};
  |     ^^^^^ use of undeclared crate or module `cairo`

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