HomeFreeBSD

Push and pop xtrace correctly for run_early_customize

Description

Push and pop xtrace correctly for run_early_customize

run_early_customize is run as a shell list, not as a subshell, so that the side
effects of setting variables can affect later stages of the build (for better or
worse, it's been like this since it was introduced). It therefore has the side
effect of turning off xtrace always, which limits the usefulness of sh -x
nanobsd.sh. Remember the old setting and only turn off tracing after the command
if tracing was off before. All the other places where we do similar things we use
a subshell, so we don't need to do this.

Details

Provenance
impAuthored on
Parents
rS352820: Remove workaround for building on FreeBSD hosts prior to FreeBSD 10.
Branches
Unknown
Tags
Unknown