[Bug 268070] Mk/bsd.port.mk: Generalize the 'make describe' command to allow custom commands run on individual ports

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 07 Dec 2022 01:41:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268070

--- Comment #2 from Yuri Victorovich <yuri@freebsd.org> ---
(In reply to Tobias C. Berner from comment #1)

Hi Tobias,


What you are suggesting would work, but it would be ~100 times slower than
evaluating all expressions inside of one make process.

You are suggesting to traverse ports tree with a shell script and then to call
BSD make on individual ports. BSD make would have to re-read all/many Mk
scripts  for each port individually, which is a lot slower.

When BSD make runs hierarchically - it reuses previously read scripts for all
individual folders, which makes it a lot faster.

Currently PortsDB generation takes 20 minutes. With the shell approach it would
take days.


Yuri

-- 
You are receiving this mail because:
You are on the CC list for the bug.