NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/57584: Running build.sh with -N 3 or -N 4 causes debug logging to be included in the MKVARS shell variable in distrib/sets/sets.subr



On Fri, 18 Aug 2023, Palle Lyckegaard wrote:

I've managed to fix the issue with the following patch (removing lines
with the string 'echo'):

diff --git a/distrib/sets/sets.subr b/distrib/sets/sets.subr
index 6f2223181713..61546167b956 100644
--- a/distrib/sets/sets.subr
+++ b/distrib/sets/sets.subr
@@ -129,7 +129,7 @@ done

  IFS=$oIFS

-MKVARS="$( MAKEVERBOSE= ${MAKE} -B -f ${rundir}/mkvars.mk mkvars | ${SED}
-e 's,=.*,,' | ${XARGS} )"
+MKVARS="$( MAKEVERBOSE= ${MAKE} -B -f ${rundir}/mkvars.mk mkvars | ${SED}
-e 's,=.*,,' -e 's,echo.*,,'| ${XARGS} )"

  #####




Updated patch:

diff --git a/distrib/sets/sets.subr b/distrib/sets/sets.subr
index 6f2223181713..77babdaa8f04 100644
--- a/distrib/sets/sets.subr
+++ b/distrib/sets/sets.subr
@@ -129,7 +129,10 @@ done

 IFS=$oIFS

-MKVARS="$( MAKEVERBOSE= ${MAKE} -B -f ${rundir}/mkvars.mk mkvars | ${SED} -e 's,=.*,,' | ${XARGS} )" +# The construction of the MKVARS variable includes some filtering out of the string 'echo' since +# mkvars.mk has a number of "@echo" commands that pollutes the output when building with MAKEVERBOSE=3 or
+# MAKEVERBOSE=4
+MKVARS="$( MAKEVERBOSE= ${MAKE} -B -f ${rundir}/mkvars.mk mkvars | ${GREP} -v 'echo' | ${SED} -e 's,=.*,,' | ${XARGS} )"

 #####


Comments?


Home | Main Index | Thread Index | Old Index