Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2022 13:02:10 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        ports@freebsd.org
Subject:   Re: lang/rust is super slow to build
Message-ID:  <PSAPR03MB563910C27DDA089DBD8E1221FAE39@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <PSAPR03MB563952CD2A506AF689686FD3FAE29@PSAPR03MB5639.apcprd03.prod.outlook.com>
References:  <EDE0639D-04CE-44C6-922D-159F45576296@patmaddox.com> <Y5eBYNsToeEaFSTu@fuz.su> <PSAPR03MB563952CD2A506AF689686FD3FAE29@PSAPR03MB5639.apcprd03.prod.outlook.com>

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

#!/bin/sh
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 :)

#!/bin/sh
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? :)




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