head 1.6; access; symbols netbsd-11-0-RC4:1.6 netbsd-11-0-RC3:1.6 netbsd-11-0-RC2:1.6 netbsd-11-0-RC1:1.6 perseant-exfatfs-base-20250801:1.6 netbsd-11:1.6.0.2 netbsd-11-base:1.6 netbsd-10-1-RELEASE:1.1 perseant-exfatfs-base-20240630:1.2 perseant-exfatfs:1.2.0.2 perseant-exfatfs-base:1.2 netbsd-10-0-RELEASE:1.1 netbsd-10-0-RC6:1.1 netbsd-10-0-RC5:1.1 netbsd-10-0-RC4:1.1 netbsd-10-0-RC3:1.1 netbsd-10-0-RC2:1.1 netbsd-10-0-RC1:1.1 netbsd-10:1.1.0.6 netbsd-10-base:1.1 cjep_sun2x-base1:1.1 cjep_sun2x:1.1.0.4 cjep_sun2x-base:1.1 cjep_staticlib_x-base1:1.1 cjep_staticlib_x:1.1.0.2 cjep_staticlib_x-base:1.1; locks; strict; comment @# @; 1.6 date 2025.06.13.03.51.18; author rillig; state Exp; branches; next 1.5; commitid Dmn2d9jxc5gaiGYF; 1.5 date 2025.03.22.12.23.00; author rillig; state Exp; branches; next 1.4; commitid F29sX1MZGn0DK3OF; 1.4 date 2024.11.23.22.59.51; author rillig; state Exp; branches; next 1.3; commitid oNgnE6uQS3Fi9PyF; 1.3 date 2024.11.23.22.48.09; author rillig; state Exp; branches; next 1.2; commitid KzgN46l3xpHu5PyF; 1.2 date 2024.06.01.18.44.05; author rillig; state Exp; branches 1.2.2.1; next 1.1; commitid qwnhrPOop3gEmjcF; 1.1 date 2020.08.16.12.07.52; author rillig; state Exp; branches; next ; commitid coEgPk3hgfeYGhkC; 1.2.2.1 date 2025.08.02.05.58.40; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; desc @@ 1.6 log @make: add on-demand inter-process stack traces When debugging a build that heavily uses nested calls to sub-makes, the chain of calls is useful to quickly assess the situation. If explicitly requested, include the actions from any parent processes in the stack traces. Reviewed by: sjg @ text @level 1: variable 0, env 1 level 2: variable 1, env 2 level 3: variable 2, env 3 : set-env-same ok : set-env-different make: Cannot override read-only global variable ".MAKE.LEVEL.ENV" with a command line variable in make[1] in directory "" make: Fatal errors encountered -- cannot continue make: stopped making "ok" in unit-tests set-env-different: exit 1 exit status 0 @ 1.5 log @make: ignore attempts to override a read-only global with the same value Up to NetBSD 9, make passed around the internal variable .MAKE.LEVEL.ENV via MAKEFLAGS. Allow these old versions of make to coexist with newer versions of make. See unit-tests/varname-dot-make-level.mk for details. Fixes PR pkg/59184. @ text @d8 1 @ 1.4 log @make: fix confusing error message when overriding a read-only variable @ text @d4 3 d9 3 a11 7 make: stopped in unit-tests *** Error code 1 (continuing) `all' not remade because of errors. Stop. make: stopped making "all" in unit-tests exit status 1 @ 1.3 log @tests/make: demonstrate confusing error message for .MAKE.LEVEL.ENV @ text @d4 1 a4 1 make: Cannot delete ".MAKE.LEVEL.ENV" as it is read-only @ 1.2 log @tests/make: test more modifiers and special variables @ text @d4 9 a12 1 exit status 0 @ 1.2.2.1 log @Sync with HEAD @ text @a3 8 : set-env-same ok : set-env-different make: Cannot override read-only global variable ".MAKE.LEVEL.ENV" with a command line variable in make[1] in directory "" make: Fatal errors encountered -- cannot continue make: stopped making "ok" in unit-tests set-env-different: exit 1 @ 1.1 log @make(1): add dummies for fine-grained tests, one per single feature The test names have been derived from the current manual page. All these tests are dummies right now, and the code from the existing tests will be moved into the new tests step by step. This is done to prevent modmisc, escape, varmod-edge and varmisc from growing without any bounds, and to reduce the side-effects of one test to the others. @ text @d1 3 @