The NetBSD Project

CVS log for src/usr.bin/make/unit-tests/var-recursive.exp

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make / unit-tests

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Aug 29 20:20:36 2024 UTC (5 months, 2 weeks ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +12 -5 lines
make: reduce line length in error messages

The error messages for deeply nested parse errors were hard to decipher,
due to the large amount of text.  Split these messages into individual
lines, just as in the backtrace for .include files and .for loops.  This
unified backtrace makes the output more uniform.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Aug 27 05:01:03 2024 UTC (5 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1 lines
tests/make: add stricter checks to test for recursive variables

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Aug 27 04:52:14 2024 UTC (5 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +14 -17 lines
make: treat recursive variables non-fatally

A recursive variable is no worse than an unknown modifier, so treat them
in the same way by continuing parsing until the end of the makefile.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Aug 25 20:44:31 2024 UTC (5 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +9 -8 lines
make: add more context to error message about recursive variables

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jul 4 20:18:40 2024 UTC (7 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
make: on error, print the targets to be made

This helps to understand situations with several nested sub-makes in
varying directories.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jul 4 17:47:54 2024 UTC (7 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -0 lines
make: add more context information to error messages

In case of a parse error or evaluation error, print the variable value
in addition to the variable name, to see the effects of previous
expression modifiers.

In nested make calls, print the current directory at the bottom of a
stack trace, as that information is otherwise hard to get in a parallel
build spanning multiple directories.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jan 7 01:33:57 2024 UTC (13 months, 1 week ago) by sjg
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
make: more consistent error messages

Move %s: progname from Job_CheckCommands to Fatal
to avoid is being repeated when Job_CheckCommands is passed Error.

This means some errors from var also report progname (and level)
which is useful.

Reviewed by: rillig

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jun 1 20:56:35 2023 UTC (20 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -6 lines
tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jan 29 10:19:49 2022 UTC (3 years ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -1 lines
make: for recursive variables in commands, print location

Print the approximate location based on the last command that has been
defined for the target.  It would be possible to get more detailed
location information by counting the number of commands of the target,
but that would get messy due to .USEBEFORE, .USE and .DEFAULT, and
still, this is an edge case, so don't waste too much code for it now.
Having this hint about the location is more helpful than just a plain
"Variable X is recursive" without any further details.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jan 29 10:09:37 2022 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -0 lines
tests/make: demonstrate recursive variable in target

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jan 29 09:38:27 2022 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -0 lines
make: print stack trace on fatal errors

The only fatal error that occurs while the makefiles are read in is the
one about recursive variables, which didn't give any hint about the
location before.

If a recursive variable is detected while evaluating the commands of a
target to be made, there is no location information, as before.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Oct 31 13:45:00 2020 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -0 lines
make(1): add test for recursion detection with short variable names

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 31 11:30:57 2020 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
make(1): add test for recursive variable expressions

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>