Building a port with poudriere that depends on a cargo crate that needs net access

Jan Beich jbeich at FreeBSD.org
Wed Feb 10 14:38:46 UTC 2021


Adam Jimerson <vendion at gmail.com> writes:

> I'm trying to make a port that depends on a number of cargo crates, both 
> direct and indirect dependencies, one of these crates needs network access to 
> build. The crate in question is psl (https://crates.io/crates/psl).

To avoid network see cargo-configure in Mk/Uses/cargo.mk. How much is necessary
depends on a particular project/port. Sometimes you can merge different build
systems like x11/squeekboard did USES=meson + USES=cargo, sometimes upstream
already vendored crates like graphics/librsvg2-rust.

If you still can't figure out attach the WIP port (or just Makefile if
there're no patches), so others can expirement.


More information about the freebsd-ports mailing list