Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2021 15:38:37 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Adam Jimerson <vendion@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Building a port with poudriere that depends on a cargo crate that needs net access
Message-ID:  <ft24-rnrm-wny@FreeBSD.org>
In-Reply-To: <1652337.MsCH1bHPGx@heimdall> (Adam Jimerson's message of "Wed, 10 Feb 2021 08:24:46 -0500")
References:  <1652337.MsCH1bHPGx@heimdall>

next in thread | previous in thread | raw e-mail | index | archive | help
Adam Jimerson <vendion@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ft24-rnrm-wny>