Page MenuHomeFreeBSD

etcupdate: Consolidate nobuild cases and make more robust
ClosedPublic

Authored by jrtc27 on Jul 26 2023, 11:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 11:54 AM
Unknown Object (File)
Mon, Oct 21, 11:41 AM
Unknown Object (File)
Mon, Oct 21, 11:41 AM
Unknown Object (File)
Oct 5 2024, 5:30 PM
Unknown Object (File)
Sep 27 2024, 2:11 PM
Unknown Object (File)
Sep 24 2024, 8:47 PM
Unknown Object (File)
Sep 24 2024, 12:24 AM
Unknown Object (File)
Sep 23 2024, 5:19 PM
Subscribers

Details

Summary

The distrib-dirs and distribution steps are shared between the two, the
only difference is whether MAKEOBJDIRPREFIX is in the environment for
the latter. Having in the environment for the former is currently not
needed but does no harm and will be needed in future, so we can just
export it up-front in the subshell. When we do distrib-dirs relative to
_obj and everything also doesn't matter, so move it next to distribution
where it makes more sense. Finally, to avoid complicated && chains, use
"|| exit 1" everywhere to make the subshell fail, and add an extra one
on to the cd $SRCDIR to handle that failing (otherwise we'd go on and
try to build the current directory after cd prints its error, which is
unhelpful).

These changes will make it easier to bundle these steps up into new
top-level targets to allow the build system to manage the steps rather
than etcupdate, which will also handle BUILD_WITH_STRICT_TMPPATH, which
currently does not work with etcupdate.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable