Re: lang/rust is super slow to build

From: Tatsuki Makino <>
Date: Tue, 13 Dec 2022 04:02:10 UTC
Actually, I recently created a spell to automate how to find packages that are taking a long time to create because of ALLOW_MAKE_JOBS* :)
This is finding out what will be needed for more than 3 minutes.

find -- /usr/local/poudriere/data/logs/bulk/latest-per-pkg/ -iname \*.log\
 -exec grep -l --null -e 'DISABLE_MAKE_JOBS=poudriere' {} + |
 xargs -0 -- grep -L --null -e 'build time: 00:0[0-2]:' |
 xargs -0 -- grep -h -e 'package name: ' |
 sed -e 's,^[^:]*: ,,; s,-[^-]*$,,;'

It seems that 3.3.7_1 of poudriere does not save distfiles, so it is necessary to download distfiles in DISTFILES_CACHE beforehand.
It is a spell to find the one that downloads distfiles every time the package is created.
This is where it can take a long time :)

find -- /usr/local/poudriere/data/logs/bulk/latest-per-pkg/ -iname \*.log\
 -exec grep -l --null -e 'doesn'\''t seem to exist in /portdistfiles/.*\.' {} + |
 xargs -0 -- grep -h -e 'port directory: ' |
 sed -e 's,^[^:]*: ,,;'

Did you find anything good? :)