Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2023 04:55:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269057] Mk/Uses/cargo.mk: 'make cargo-crates' generates lines for crates that aren't seen by the build (port audio/psst)
Message-ID:  <bug-269057-7788-JnPqmbz09b@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269057-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269057-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269057

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=3D"linux", target_os=3D"openbsd"))'.dependencies]
piet-cairo =3D { version =3D "=3D0.5.0", path =3D "../piet-cairo" }
cairo-rs =3D { version =3D "0.14.0", default_features =3D false }
cairo-sys-rs =3D { version =3D "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 ?=3D ?"openbsd"|&, target_os =3D "freebs=
d"|' \
                ${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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269057-7788-JnPqmbz09b>