History log of /freebsd-current/contrib/bmake/main.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 9d3df31e 23-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240520

Merge commit '29efb3dcaedd9cbabc6f96f35545baf2c8b28501'


# c9f4001f 13-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240508

Merge commit '3c2ab5fddc576e58f3ffa70dc5fa95144646a513'


# 548bfc56 03-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240430

Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'


# c59c3bf3 13-Mar-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240309

Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'


# d5e0a182 13-Jan-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20240108


# 98875883 17-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# c9f4001f 13-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240508

Merge commit '3c2ab5fddc576e58f3ffa70dc5fa95144646a513'


# 548bfc56 03-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240430

Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'


# c59c3bf3 13-Mar-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240309

Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'


# d5e0a182 13-Jan-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20240108


# 98875883 17-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 548bfc56 03-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240430

Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'


# c59c3bf3 13-Mar-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240309

Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'


# d5e0a182 13-Jan-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20240108


# 98875883 17-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# c59c3bf3 13-Mar-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240309

Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'


# d5e0a182 13-Jan-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20240108


# 98875883 17-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# d5e0a182 13-Jan-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20240108


# 98875883 17-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 98875883 17-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 8c973ee2 24-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230414

Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 4fde40d9 27-Jan-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge/update to bmake-20230126


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 954401e6 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220724

Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 2f2a5ecd 22-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220418

o ignore '.POSIX:' if not in first non-comment line
of Makefile as specified by POSIX.
add unit-tests for above.

Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 1d3f2ddc 03-Apr-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 9f45a3c8 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220204


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 12904384 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# b0c40a00 25-Jun-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_merge


# dba7b0ef 10-Feb-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210206

Changes of interest

o unit-tests: use private TMPDIR to avoid errors from other users
o avoid strdup in mkTempFile
o always use vfork
o job.c: do not create empty shell files in jobs mode
reduce unnecessary calls to waitpid
o cond.c: fix debug output for comparison operators in conditionals


# 06b9b3e0 13-Jan-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20210110

Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD

Some interesting entries from ChangeLog

o .MAKE.{UID,GID} represent uid and gid running make.

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o add more unit tests for META MODE

Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main

Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c


# e2eeea75 19-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20201117

o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after: 1 week


# 956e45f6 07-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20201101

Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py


# 2c3632d1 05-Sep-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200902

Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.

Other significant changes:

o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).

o variable parsing detects more errors.

o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.


# 3841c287 11-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC after: 1 week


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031

# 2d147b47 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20200704

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.

MFC after: 1 week


# b766b8bf 30-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days

# e22fef7d 02-Nov-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20171028

Ignore empty MAKEOBJDIR[PREFIX]

Reported by: bdrewery


# 8695518c 15-Jul-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20170711


# cac6fd11 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170510

No-op change other than version update.


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope

# e1cee40d 20-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170420


# b46b9039 14-Apr-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake 20170413


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery

# 1ce939a7 06-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20170301


# 45447996 19-Dec-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20161212


# 95e3ed2c 08-Sep-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20170818

This version has some new knobs for dealing with troublesome targets
in meta mode.


# 39ac7ef4 08-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()


# b778b302 05-Jun-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Import bmake-20160604

Performace improvements for meta mode.


# e48f47dd 20-May-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160512


# be19d90b 10-Mar-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20160307


# ac3446e9 07-Dec-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20151201


# 4c620fe5 23-Oct-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake 20151020


# db29cad8 20-Apr-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150418

PR: 199486


# 5bcb7424 08-Jul-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien


# 0dede8b0 27-Jan-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20140101 from vendor


# 1bbe5942 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130904


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX

# 51ee2c1c 02-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130730
Main feature of interest is .MAKE.JOB.PREFIX=
to suppress --- job --- tokens.


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.

# 1748de26 02-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20130330


# 3cbdda60 01-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20130123

Approved by: marcel (mentor)


# 3955d011 02-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg


# 9093286b 08-Jul-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Revert r363031


# 661a2cb8 29-Mar-2020 Kyle Evans <kevans@FreeBSD.org>

bmake: 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 fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

MFC after: 3 days


# e23f3f6e 10-May-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure buf2 is in scope


# a3b2e0bc 11-Mar-2017 Simon J. Gerraty <sjg@FreeBSD.org>

Do not consider using -C arg "as is" for .CURDIR unless it starts with /.

Reported by: bdrewery


# d191243d 04-Aug-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX


# 8ebb9835 17-May-2013 Simon J. Gerraty <sjg@FreeBSD.org>

We really need to get the bsd.own.mk from this tree so the
correct options are set.
Also defined NO_PWD_OVERRIDE to match behavior of fmake.