Ensure that MAKE_TERM(OUT|ERR) are unset

Some packages use those variables to determine whether they are
talking to a terminal, and issue color codes that mess our
logs if the top level make has been launched from a terminal.
This commit is contained in:
Pierre Labastie 2021-11-14 15:18:38 +01:00
parent 0495e57e0a
commit 1870b56894

View file

@ -215,8 +215,13 @@ export JH_KEEP_FILES="</xsl:text>
</xsl:otherwise>
</xsl:choose>
<!-- Unsetting MAKELEVEL is needed for some packages which assume that
their top level Makefile is at level zero -->
their top level Makefile is at level zero.
Some packages (cmake) use MAKE_TERMOUT and MAKE_TERMERR to determine
whether they are talking to a terminal.
In our case, stdout/stderr are always redirected, so unset them.-->
<xsl:text>unset MAKELEVEL
unset MAKE_TERMOUT
unset MAKE_TERMERR
<!-- When installing several packages, and profile or profile.d
has been modified by a previous package, we need to ensure that
the updated profile is used.