HomeFreeBSD

Fix share/zoneinfo for DIRDEPS_BUILD

Description

Fix share/zoneinfo for DIRDEPS_BUILD

The tranditional build makes multiple passes through the tree.
The DIRDEPS_BUILD visits each directory only once per architecture,
thus makefiles should be able to everything they need in a single pass.

The use of TZS!= when doing make(*install*)
only works if the directory has previously been visited to do zoneinfo
since before the zoneinfo target is run TZS will be empty.

To fix this, have the zoneinfo target capture the list of files to
zoneinfo, and install-zoneinfo use that list.
Rename that target to zonefiles - since that is now what it does.

This is more efficient - we only gather the list of zones when it is
likely to have changed, and allows the makefile to do everything in a
single pass.

Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D42624

(cherry picked from commit 0a45a7e99fc3061e91732ad88671721e95082d5e)

Details

Provenance
sjgAuthored on Nov 20 2023, 8:51 PM
emasteCommitted on Thu, Apr 24, 2:01 PM
Reviewer
stevek
Differential Revision
D42624: Fix share/zoneinfo for DIRDEPS_BUILD
Parents
rG5e1249009d25: zoneinfo: fix makefile rules script
Branches
Unknown
Tags
Unknown