CVS commit: src/usr.bin/make/unit-tests

2020-10-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Oct 30 23:54:42 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: directive-unexport.exp directive-unexport.mk Log Message: Fix directive-unexport to focus only on the variables we care about To generate a diff

CVS commit: src/usr.bin/make

2020-10-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Oct 31 06:18:21 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: Do not use an objdir that is not writable. To generate a diff of this commit: cvs rdiff -u -r1.412 -r1.413 src/usr.bin/make/main.c Please note that

CVS commit: src/usr.bin/make

2020-10-31 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Oct 31 21:09:22 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: Main_SetObjdir is first called for curdir which may be readonly Skip access check if path is curdir. This ensures that all proper initialization is d

CVS commit: src/usr.bin/make/unit-tests

2020-11-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Nov 9 19:12:52 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Control TZ for depsrc-optional To generate a diff of this commit: cvs rdiff -u -r1.192 -r1.193 src/usr.bin/make/unit-tests/Makefile Pl

CVS commit: src/usr.bin/make

2020-11-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Nov 12 23:35:21 UTC 2020 Modified Files: src/usr.bin/make: main.c make.1 make.h parse.c src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: objdir-writable.exp objdir-writable.mk Log Me

CVS commit: src/usr.bin/make/unit-tests

2020-11-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Nov 12 23:53:17 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: objdir-writable.mk Log Message: Use explicit MAKEOBJDIR to avoid tripping over /usr/obj To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.b

CVS commit: src/distrib/sets/lists/tests

2020-11-13 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Nov 13 17:19:06 UTC 2020 Modified Files: src/distrib/sets/lists/tests: mi Log Message: Add new make unit-test To generate a diff of this commit: cvs rdiff -u -r1.967 -r1.968 src/distrib/sets/lists/tests/mi Please note that dif

CVS commit: src/usr.bin/make/unit-tests

2020-11-13 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Nov 14 07:36:00 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: objdir-writable.mk Log Message: Remove RO_OBJDIR when done To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/objdir-wri

CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Nov 15 05:43:56 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: opt-chdir.mk Log Message: Avoid problem with /usr/obj To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt-chdir.mk P

CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Nov 15 06:06:20 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: opt.exp opt.mk Log Message: Avoid reading unexpected makefiles To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt.ex

CVS commit: src/usr.bin/make/unit-tests

2020-11-17 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Nov 18 01:06:59 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: opt.exp opt.mk Log Message: Always use -r -f /dev/null when not intending to read a makefile To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src

CVS commit: src/usr.bin/make/unit-tests

2020-11-17 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Nov 18 01:12:00 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Some tests need help with dash To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/usr.bin/make/unit-tests/Makefile Pl

CVS commit: src/usr.bin/make/unit-tests

2020-11-17 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Nov 18 04:10:34 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Cleanup - colliding fixes for same issue To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/usr.bin/make/unit-tests/Ma

CVS commit: src/usr.bin/make/unit-tests

2020-11-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Nov 25 00:32:18 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: access(2) does not work for root, so skip objdir-writable To generate a diff of this commit: cvs rdiff -u -r1.224 -r1.225 src/usr.bin/m

CVS commit: src/usr.bin/make

2020-11-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Nov 25 00:50:44 UTC 2020 Modified Files: src/usr.bin/make: main.c make.1 src/usr.bin/make/unit-tests: Makefile opt-debug-graph1.exp suff-main-several.exp suff-transform-debug.exp Log Message: Add .MAKE.UID and

CVS commit: src/usr.bin/make/unit-tests

2020-11-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Nov 30 18:32:49 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: meta-cmd-cmp.exp meta-cmd-cmp.mk Log Message: Add some tests for meta mode To generate a diff of t

CVS commit: src/distrib/sets/lists/tests

2020-11-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Nov 30 21:36:52 UTC 2020 Modified Files: src/distrib/sets/lists/tests: mi Log Message: Added meta-cmd-cmp To generate a diff of this commit: cvs rdiff -u -r1.978 -r1.979 src/distrib/sets/lists/tests/mi Please note that diffs a

CVS commit: src/usr.bin/make/unit-tests

2020-12-04 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Dec 5 03:42:15 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Use .MAKE.OS if we can To generate a diff of this commit: cvs rdiff -u -r1.235 -r1.236 src/usr.bin/make/unit-tests/Makefile Please not

CVS commit: src/usr.bin/make/unit-tests

2020-12-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Dec 5 22:51:34 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: meta-cmd-cmp.mk Log Message: Don't let gcov mess up results To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/meta-cmd-

CVS commit: src/usr.bin/make/unit-tests

2020-12-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Dec 13 02:09:33 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Ensure we have a value for .MAKE.UID To generate a diff of this commit: cvs rdiff -u -r1.246 -r1.247 src/usr.bin/make/unit-tests/Makefi

CVS commit: src/usr.bin/make/unit-tests

2020-12-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Dec 13 02:09:55 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: shell-csh.mk Log Message: Avoid noise when csh does not exist To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/shell-c

CVS commit: src/usr.bin/make/unit-tests

2020-12-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Dec 13 05:13:38 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile sh-errctl.exp Log Message: Prune job debug output that may appear out of order. A race between child and parent means that we cannot guarantee whethe

CVS commit: src/usr.bin/make/unit-tests

2020-12-21 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Dec 21 18:22:31 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Set default for .MAKE.OS once To generate a diff of this commit: cvs rdiff -u -r1.253 -r1.254 src/usr.bin/make/unit-tests/Makefile Ple

CVS commit: src/usr.bin/make

2020-12-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Dec 26 03:54:48 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: Use .MAKE.DEPENDFILE as makefiles set it To generate a diff of this commit: cvs rdiff -u -r1.502 -r1.503 src/usr.bin/make/main.c Please note that d

CVS commit: src/usr.bin/make

2009-06-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jun 1 23:28:39 UTC 2009 Modified Files: src/usr.bin/make: make.1 Log Message: Missing ':' in .ORDER example To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/usr.bin/make/make.1 Please note that diffs are no

CVS commit: src/usr.bin/make

2009-06-15 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jun 16 05:44:06 UTC 2009 Modified Files: src/usr.bin/make: var.c Log Message: Child of vfork() must not alter the state of parent. There is no need to touch the state of vars in child anyway. Change 2nd arg to Var_Export1() to in

CVS commit: src/usr.bin/make

2009-06-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jun 26 01:26:32 UTC 2009 Modified Files: src/usr.bin/make: job.c Log Message: JobExec: child of vfork must not empty the sigset_t that parent will restore. Use a separate mask. To generate a diff of this commit: cvs rdiff -u -

CVS commit: src/usr.bin/make

2009-08-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Aug 26 23:17:11 UTC 2009 Modified Files: src/usr.bin/make: main.c make.1 Log Message: Add -C directory, same as gmake and freebsd make. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 src/usr.bin/make/main.c cvs

CVS commit: src/usr.bin/make

2009-08-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Aug 26 23:18:58 UTC 2009 Modified Files: src/usr.bin/make: make.1 Log Message: Bump date To generate a diff of this commit: cvs rdiff -u -r1.159 -r1.160 src/usr.bin/make/make.1 Please note that diffs are not public domain; the

CVS commit: src/usr.bin/make

2009-09-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Sep 7 17:56:24 UTC 2009 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: modmatch test.exp Log Message: PR: 41998 :Ufu\:goo should expand to fu:goo even when it appears in :M${:Ufu\:goo} When scanni

CVS commit: src/usr.bin/make

2009-09-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Sep 8 17:29:20 UTC 2009 Modified Files: src/usr.bin/make: main.c make.1 make.h var.c Log Message: Reviewed by: apb Use .MAKE.LEVEL to track recursion. The first instance of make will have .MAKE.LEVEL 0, which can be handy for e

CVS commit: src/usr.bin/make

2009-09-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Sep 9 17:09:49 UTC 2009 Modified Files: src/usr.bin/make: main.c Log Message: We must delay setting .CURDIR and .OBJDIR until after MainParseArgs() in case -C is used - in which case we should also ignore $PWD. To generate a d

CVS commit: src/usr.bin/make

2010-01-04 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jan 4 17:05:25 UTC 2010 Modified Files: src/usr.bin/make: main.c Log Message: We need to have set curdir before calling Dir_FindHereOrAbove(). We can call getcwd again if -C is used. To generate a diff of this commit: cvs rdif

CVS commit: src/usr.bin/make

2020-09-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Sep 28 01:24:34 UTC 2020 Modified Files: src/usr.bin/make: parse.c src/usr.bin/make/unit-tests: error.exp Log Message: Ensure that parse errors report 'stopped in' To generate a diff of this commit: cvs rdiff -u -r1.338

CVS commit: src/usr.bin/make

2020-09-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Sep 28 02:06:27 UTC 2020 Modified Files: src/usr.bin/make: parse.c Log Message: Remove unnecessary dieQuietly calls To generate a diff of this commit: cvs rdiff -u -r1.339 -r1.340 src/usr.bin/make/parse.c Please note that diff

CVS commit: src/usr.bin/make

2020-09-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Sep 28 03:32:51 UTC 2020 Modified Files: src/usr.bin/make: .cvsignore Log Message: more unit-tests To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/.cvsignore Please note that diffs are not public d

CVS commit: src/usr.bin/make

2020-09-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Sep 28 03:34:07 UTC 2020 Modified Files: src/usr.bin/make: .cvsignore Log Message: Revert last To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/.cvsignore Please note that diffs are not public domai

CVS commit: src/usr.bin/make/unit-tests

2020-10-10 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Oct 10 19:25:19 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile export.exp Log Message: Limit output of export tests to POSIX compatible env vars To generate a diff of this commit: cvs rdiff -u -r1.164 -r1.165 sr

CVS commit: src/usr.bin/make/unit-tests

2020-10-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Oct 18 22:55:52 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: In meta mode we do not have to re-run all tests when Makefile is touched To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.16

CVS commit: src/usr.bin/make

2020-10-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Oct 25 17:37:36 UTC 2020 Modified Files: src/usr.bin/make: main.c src/usr.bin/make/unit-tests: varmod-match-escape.exp Log Message: Skip reading .MAKE.DEPENDFILE if set to "/dev/null" or anything starting with "no". Ref:

CVS commit: src/usr.bin/make

2020-07-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Jul 18 21:37:38 UTC 2020 Modified Files: src/usr.bin/make: hash.c hash.h main.c make.1 make.h Log Message: Add -dh for DEBUG_HASH Allow tracking of max chain length, to see how well the hash tables are working. Pull the actual h

CVS commit: src/usr.bin/make

2020-07-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jul 20 18:12:48 UTC 2020 Modified Files: src/usr.bin/make: hash.c hash.h main.c nonints.h targ.c var.c Log Message: Make DEBUG_HASH less of a fire-hose. Reporting keys on every lookup is overkill unless playing with a new HASH,

CVS commit: src/usr.bin/make/unit-tests

2020-07-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jul 28 00:48:00 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Use -r for export.mk to minimize interference To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/usr.bin/make/unit-tests

CVS commit: src/usr.bin/make/unit-tests

2020-07-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jul 28 16:26:37 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Ensure .CURDIR is correct for tests that run sub-makes To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/usr.bin/make/u

CVS commit: src/usr.bin/make/unit-tests

2020-07-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jul 28 18:39:56 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Use cat if no POSTPROC.${.TARGET:R} On Linux sed with no flags throws an error. To generate a diff of this commit: cvs rdiff -u -r1.73

CVS commit: src/usr.bin/make/unit-tests

2020-07-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jul 28 18:53:07 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: export.mk Log Message: Use egrep rather than grep -E Also we need to exclude noise that some shells include. This is why the original test restricted itself t

CVS commit: src/usr.bin/make

2020-07-31 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jul 31 20:22:10 UTC 2020 Modified Files: src/usr.bin/make: main.c make.1 make.h parse.c Log Message: Add -dL for LINT When parsing variable assignments other than := and if value contains '$' attempt Var_Subst the same as for :=

CVS commit: src/usr.bin/make

2020-08-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Aug 6 16:03:04 UTC 2020 Modified Files: src/usr.bin/make: parse.c Log Message: Remove VARE_WANTRES for LINT We need the parsing checked. I might make sense to add a VARE_LINT flag for corner cases. Time will tell. Reviewed by:

CVS commit: src/usr.bin/make/unit-tests

2020-08-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Aug 6 16:09:33 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: recursive.exp Log Message: Update test result To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/recursive.exp Please n

CVS commit: src/usr.bin/make/unit-tests

2020-08-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Aug 6 16:23:53 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Use -r for recursive To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/usr.bin/make/unit-tests/Makefile Please note th

CVS commit: src/usr.bin/make/unit-tests

2020-08-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 22 15:25:50 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Supress /bin/sh: in error for sh-dots To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108 src/usr.bin/make/unit-tests/Makef

CVS commit: src/usr.bin/make

2020-08-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 22 19:30:59 UTC 2020 Modified Files: src/usr.bin/make: job.c make.1 nonints.h var.c src/usr.bin/make/unit-tests: export.exp Log Message: Add .SHELL as read-only variable The .SHELL variable represents the shellPath u

CVS commit: src/usr.bin/make

2020-08-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 22 20:50:44 UTC 2020 Modified Files: src/usr.bin/make: Makefile src/usr.bin/make/unit-tests: Makefile Log Message: Use TEST_MAKE to run unit-tests This lets us take advantage of new features like ${.SHELL} To gener

CVS commit: src/usr.bin/make/unit-tests

2020-08-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 22 21:30:52 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: bash says 'command not found' To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/usr.bin/make/unit-tests/Makefile Ple

CVS commit: src/usr.bin/make/unit-tests

2020-08-31 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Aug 31 16:20:00 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmisc.exp varmisc.mk Log Message: Add test case for FLAGS dependent on .TARGET To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/usr.bin/ma

CVS commit: src/usr.bin/make/unit-tests

2021-01-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jan 1 23:07:49 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: var-op-expand.mk Log Message: var-op-expand needs MAKE.SAVE_DOLLARS=yes To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/usr.bin/make/unit-t

CVS commit: src/usr.bin/make/unit-tests

2021-01-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jan 7 18:11:23 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: jobs-error-nested-make.exp jobs-error-nested-make.mk Log Message: Remove .MAKE from nested target which is not a sub-make This does not fix the is

CVS commit: src/usr.bin/make

2021-01-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jan 8 04:36:45 UTC 2021 Modified Files: src/usr.bin/make: job.c Log Message: Set wantToken when none available. PR: 53285 Reviewed by: gson To generate a diff of this commit: cvs rdiff -u -r1.392 -r1.393 src/usr.bin/make/job.

CVS commit: src/usr.bin/make

2021-01-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jan 8 21:46:50 UTC 2021 Modified Files: src/usr.bin/make: job.c main.c src/usr.bin/make/unit-tests: jobs-error-nested-make.exp Log Message: Ensure PrintOnError always reports 'stopped in' on first call. We may still sup

CVS commit: src/usr.bin/make

2021-01-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jan 31 07:07:53 UTC 2021 Modified Files: src/usr.bin/make: job.c Log Message: Reduce unnecessary calls to waitpid Set a flag when we catch SIGCHLD and don't call waitpid if it is not set. Clear it when we call waitpid. To gene

CVS commit: src/usr.bin/make

2021-02-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Feb 1 17:10:23 UTC 2021 Modified Files: src/usr.bin/make: job.c Log Message: Use sig_atomic_t for caught_sigchld To generate a diff of this commit: cvs rdiff -u -r1.405 -r1.406 src/usr.bin/make/job.c Please note that diffs ar

CVS commit: src/usr.bin/make

2021-02-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Feb 5 19:19:17 UTC 2021 Modified Files: src/usr.bin/make: job.c job.h main.c make.h meta.c Log Message: Avoid strdup in mkTempFile Require caller to pass a buffer and size if they want the tempfile not unlinked. Add Job_TempFi

CVS commit: src/usr.bin/make

2021-02-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Feb 5 22:15:44 UTC 2021 Modified Files: src/usr.bin/make: job.c Log Message: Job_TempFile: unlink while signals blocked To generate a diff of this commit: cvs rdiff -u -r1.419 -r1.420 src/usr.bin/make/job.c Please note that d

CVS commit: src/usr.bin/make/unit-tests

2021-02-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 6 04:55:08 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: var-op-shell.exp var-op-shell.mk Log Message: Use plain kill to test signaled child Recent update to Darwin18 make the test using kill -14 stop working. Revi

CVS commit: src/usr.bin/make/unit-tests

2021-02-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 6 18:26:03 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: Makefile cmdline.exp cmdline.mk export.exp objdir-writable.exp Log Message: Avoid test failures when more than one user run them. Use a private T

CVS commit: src/usr.bin/make

2020-03-29 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Mar 30 02:41:06 UTC 2020 Modified Files: src/usr.bin/make: main.c make.h Log Message: make: fix -fno-common build debug was declared extern, but debug_file was not; correct this and define debug_file in main.c (as debug is) to f

CVS commit: src/usr.bin/make

2020-04-02 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Apr 3 03:32:28 UTC 2020 Modified Files: src/usr.bin/make: make.h meta.c Log Message: CHECK_VALID_META is too agressive for CMD check. An empty CMD is perfectly valid. So using CHECK_VALID_META results in too much rebuilding.

CVS commit: src/usr.bin/make

2020-04-02 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Apr 3 03:35:16 UTC 2020 Modified Files: src/usr.bin/make: make.h Log Message: Revert arraycount To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/usr.bin/make/make.h Please note that diffs are not public dom

CVS commit: src/usr.bin/make

2017-07-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jul 9 04:54:00 UTC 2017 Modified Files: src/usr.bin/make: meta.c Log Message: Ensure that command output is always followed by newline, even when filemon is not being used. Tweak MAKE_META_IGNORE_PATTERNS matching to avoid usin

CVS commit: src/usr.bin/make

2017-07-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jul 20 19:29:54 UTC 2017 Modified Files: src/usr.bin/make: compat.c job.c make.h Log Message: Make compat.c handle SIGINT etc more like job.c If there is a running child, pass the signal on, and wait for it to exit before we sel

CVS commit: src/usr.bin/make

2017-08-10 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Aug 10 21:07:48 UTC 2017 Modified Files: src/usr.bin/make: meta.c Log Message: Avoid full path meta file names for subdir of .OBJDIR To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/usr.bin/make/meta.c Please

CVS commit: src/usr.bin/make/unit-tests

2017-10-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Oct 8 20:44:19 UTC 2017 Modified Files: src/usr.bin/make/unit-tests: dotwait.exp dotwait.mk Log Message: Ensure consistent results on different platforms. With cycle.1.99 being written to stdout and make: Graph cycles through `

CVS commit: src/usr.bin/make

2017-10-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Oct 28 21:54:54 UTC 2017 Modified Files: src/usr.bin/make: main.c Log Message: Ignore empty MAKEOBJDIR Otherwise we end up with .OBJDIR = ${.CURDIR}/ which is quivalent, but fails the typial .if ${.OBJDIR} == ${.CURDIR} To gen

CVS commit: src/usr.bin/make

2017-11-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Nov 18 22:34:05 UTC 2017 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varcmd.exp varcmd.mk Log Message: Do not append to variable set on command line POSIX requires that variables set on the comma

CVS commit: src/usr.bin/make

2018-05-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat May 12 18:17:04 UTC 2018 Modified Files: src/usr.bin/make: job.c Log Message: Skip setting wantToken. polling the job token pipe adds a lot of overhead for little gain. For now, just leave wantToken=0 And avoid busy waiting whe

CVS commit: src/usr.bin/make

2018-05-13 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 13 22:13:28 UTC 2018 Modified Files: src/usr.bin/make: job.c Log Message: Just skip polling job token pipe. The sigchld pipe ensures no busy wait. PR: 53285 Reviewed by: To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/usr.bin/make

2020-01-21 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jan 22 00:26:45 UTC 2020 Modified Files: src/usr.bin/make: meta.c Log Message: meta.c: report OODATE value if not empty When a target is out-of-date per normal make rules .OODATE will be non-empty, report this in .meta file to h

CVS commit: src/usr.bin/make

2020-01-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jan 22 21:04:29 UTC 2020 Modified Files: src/usr.bin/make: meta.c Log Message: Check for filemon valid. If meta_needed() returns FALSE, mfp and filemon will be NULL in which case we should not call filemon_*(). To generate a d

CVS commit: src/usr.bin/make/filemon

2020-01-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jan 22 22:10:36 UTC 2020 Modified Files: src/usr.bin/make/filemon: filemon.h Log Message: Rename guard to avoid that already used by Linux filemon.h Reviewed by: riastradh To generate a diff of this commit: cvs rdiff -u -r1.1

CVS commit: src/usr.bin/make

2017-12-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Dec 8 03:36:42 UTC 2017 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varcmd.exp varcmd.mk Log Message: Ensure VAR+=val on command line is handled correctly If VAR is not previously set, call Var_

CVS commit: src/usr.bin/make

2019-04-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Apr 9 18:28:10 UTC 2019 Modified Files: src/usr.bin/make: parse.c Log Message: ParseDoDependency: free paths rather than assert PR: 52737 Reviewed by: christos To generate a diff of this commit: cvs rdiff -u -r1.231 -r1.232 s

CVS commit: src/usr.bin/make

2020-02-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 6 01:13:19 UTC 2020 Modified Files: src/usr.bin/make: Makefile job.c meta.c Log Message: Fix meta_compat mode. We need to call meta_job_output() from meta_compat_parent() Also, the need for extra fds for meta mode only appl

CVS commit: src/usr.bin/make

2020-02-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Feb 12 16:50:37 UTC 2020 Modified Files: src/usr.bin/make: meta.c Log Message: meta_compat_parent check for USE_FILEMON patch from Soeren Tempel To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/usr.bin/make/me

CVS commit: src/usr.bin/make

2020-03-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Mar 18 23:53:02 UTC 2020 Modified Files: src/usr.bin/make: meta.c Log Message: Check for meta file corruption earlier and more often. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/usr.bin/make/meta.c Please

CVS commit: src/usr.bin/make

2018-02-12 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Feb 12 21:38:09 UTC 2018 Modified Files: src/usr.bin/make: make.h parse.c Log Message: Do not treat .info as warning for -W Reported by: lwhsu at FreeBSD.org To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/

CVS commit: src/usr.bin/make

2018-02-13 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Feb 13 19:37:31 UTC 2018 Modified Files: src/usr.bin/make: meta.c Log Message: Avoid unused variable warning To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/usr.bin/make/meta.c Please note that diffs are not

CVS commit: src/usr.bin/make

2018-02-17 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Feb 18 00:52:42 UTC 2018 Modified Files: src/usr.bin/make: var.c Log Message: Var_Set: avoid SIGSEGV if val is NULL A NULL val is handled gracefully (by VarAdd) when var is not previously set, so we ought not crash the second ti

CVS commit: src/usr.bin/make

2018-02-21 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 22 01:59:28 UTC 2018 Modified Files: src/usr.bin/make: parse.c Log Message: Avoid calling sysconf for every file loaded. At start of a meta build this can be measurable overhead. Patch from bdrewery at freebsd.org To gener

CVS commit: src/usr.bin/make

2018-12-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Dec 21 05:50:19 UTC 2018 Modified Files: src/usr.bin/make: var.c Log Message: unexport-env: avoid SEGFAULT if MAKELEVEL not in env To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/usr.bin/make/var.c Please n

CVS commit: src/usr.bin/make

2018-12-21 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Dec 22 00:36:32 UTC 2018 Modified Files: src/usr.bin/make: parse.c Log Message: ParseVErrorInternal: use .PARSEDIR and apply realpath(3) if not absolute, and use .PARSEFILE for consitent results. Reviewed by: christos To gener

CVS commit: src/usr.bin/make/unit-tests

2021-05-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 18 17:05:45 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-chdir.mk Log Message: Do not trust that /nonexistent does not exist Use /nonexistent.${.MAKE.PID} to avoid failure when /nonexistent actually exi

CVS commit: src/usr.bin/make

2021-06-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jun 21 04:24:17 UTC 2021 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: moderrs.exp moderrs.mk Log Message: Do not report unmatched regex subexpressions It is not always an error for a subexpression

CVS commit: src/usr.bin/make/unit-tests

2021-06-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jun 29 00:35:23 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Allow BROKEN_TESTS to cause TESTS to be skipped. Some tests simply do not work in some environments. Eg. shell-ksh on macos/arm64 Allow

CVS commit: src/usr.bin/make/unit-tests

2021-07-03 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jul 4 01:28:54 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: objdir-writable.exp objdir-writable.mk Log Message: Do not assume /tmp is safe to use if TMPDIR is set To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/usr.bin/make

2021-07-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jul 30 19:55:22 UTC 2021 Modified Files: src/usr.bin/make: make.1 var.c src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: varmod-order-numeric.exp varmod-order-numeric.mk

CVS commit: src/usr.bin/make

2020-06-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jun 5 18:03:59 UTC 2020 Modified Files: src/usr.bin/make: dir.c Log Message: cached_stats: do not conflate stat and lstat While make uses lstat quite rarely, it does so for reason. Avoid confusing the results. Reviewed by: chr

CVS commit: src/usr.bin/make

2020-06-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jun 5 19:20:46 UTC 2020 Modified Files: src/usr.bin/make: make.1 var.c Log Message: make: add :Or for reverse sort :Or is more efficient than :O:[-1..1] Reviewed by: christos To generate a diff of this commit: cvs rdiff -u -

CVS commit: src/usr.bin/make/unit-tests

2020-06-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Jun 9 01:48:17 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: modorder.exp modorder.mk Log Message: Add test case for :Or To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/modorder.

CVS commit: src/usr.bin/make

2020-06-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jun 19 21:17:48 UTC 2020 Modified Files: src/usr.bin/make: job.c main.c make.h Log Message: Avoid unnecessary noise when sub-make or sibling dies When analyzing a build log, the first 'stopped' output from make, is the end of in

CVS commit: src/usr.bin/make

2020-06-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jun 22 20:15:25 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: dieQuietly: ignore OP_SUBMAKE Stick to OP_MAKE for deciding when to supress noise as OP_SUBMAKE can be too aggressive. Reviewed by: gson To genera

  1   2   3   4   >