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)
Tue, May 21, 9:04 PM
Unknown Object (File)
Sat, May 18, 9:05 AM
Unknown Object (File)
Sat, May 18, 6:55 AM
Unknown Object (File)
Fri, May 17, 3:11 PM
Unknown Object (File)
Mon, May 6, 8:06 PM
Unknown Object (File)
May 3 2024, 2:47 AM
Unknown Object (File)
Apr 27 2024, 4:28 PM
Unknown Object (File)
Apr 27 2024, 4:13 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