[Bug 269057] Mk/Uses/cargo.mk: 'make cargo-crates' generates lines for crates that aren't seen by the build (port audio/psst)
Date: Fri, 20 Jan 2023 04:55:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269057 Tobias Kortkamp <tobik@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|portmgr@FreeBSD.org |rust@FreeBSD.org --- Comment #1 from Tobias Kortkamp <tobik@freebsd.org> --- I don't think this is a ports framework issue. I doubt this application would build on FreeBSD outside the ports framework. In ${WRKSRC_crate_piet-common}/piet-common/Cargo.toml I see: [target.'cfg(any(target_os="linux", target_os="openbsd"))'.dependencies] piet-cairo = { version = "=0.5.0", path = "../piet-cairo" } cairo-rs = { version = "0.14.0", default_features = false } cairo-sys-rs = { version = "0.14.0" } So yeah, piet-cairo isn't made available on FreeBSD and post-patch must be amended: post-patch: @${REINPLACE_CMD} \ -E -e 's|target_os ?= ?"openbsd"|&, target_os = "freebsd"|' \ ${WRKSRC_crate_piet-common}/piet-common/Cargo.toml \ ${WRKSRC_crate_piet-common}/piet-common/src/lib.rs \ ${WRKSRC_crate_piet-cairo}/piet-cairo/src/text.rs -- You are receiving this mail because: You are on the CC list for the bug.