Re: lang/rust is super slow to build

From: void <void_at_f-m.fm>
Date: Mon, 19 Dec 2022 02:05:41 UTC
On Sun, Dec 18, 2022 at 07:05:54AM -0500, Gerard E. Seibert wrote:
>Question 1:
>
>Do I have to modify the existing /usr/local/etc/poudriere.d/make.conf
>file?

I have this in the make.conf for the poudriere jail (also it's symlinked
to /etc/make.conf):

SCCACHE_DIR=    /root/.sccache
OVERLAYS+=      /usr/local/share/sccache/overlay

So all the *cache stuff in there looks like this:

WITH_CCACHE_BUILD=YES
CCACHE_DIR=/var/cache/ccache
SCCACHE_DIR=    /root/.sccache
OVERLAYS+=      /usr/local/share/sccache/overlay

>Question 2:
>
>I am presently using "ccache". Do I have to modify the existing
>"CCACHE_DIR=" parameter in the /usr/local/etc/poudriere.conf file?

no (well I've not and it "works for me")

>Is there anything else I should be doing?

first, make it so poudriere can find sccache

# poudriere ports -c -p sccache -m null -M /usr/local/share/sccache/overlay

call poudriere like this:

poudriere bulk -O sccache -j buildername -f ports.txt

>This is on a FreeBSD 13.1-RELEASE-p5 amd64 system with
>poudriere-devel-3.3.99.20220831 installed.

Same poudriere but 13-stable here.

--