History log of /freebsd-current/usr.bin/bmake/unit-tests/Makefile
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 548bfc56 03-May-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20240430

Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'


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

bmake Makefile.config

# 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'


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

# 148ee845 27-Jun-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230622

Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'


# 477f6e3c 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

sys.dirdeps.mk use ?= for OBJTOP

This broke bmake's after-import step.

# e0e24ae5 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

bmake forloop test was removed

# 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


# 532d4fbf 27-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220726

Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'


# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo

# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724

# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

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

bmake Makefile.config


# 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'


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

# 148ee845 27-Jun-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230622

Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'


# 477f6e3c 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

sys.dirdeps.mk use ?= for OBJTOP

This broke bmake's after-import step.

# e0e24ae5 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

bmake forloop test was removed

# 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


# 532d4fbf 27-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220726

Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'


# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo

# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724

# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

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

Merge bmake-20230909

Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

# 148ee845 27-Jun-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20230622

Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'


# 477f6e3c 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

sys.dirdeps.mk use ?= for OBJTOP

This broke bmake's after-import step.

# e0e24ae5 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

bmake forloop test was removed

# 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


# 532d4fbf 27-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220726

Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'


# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo

# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724

# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 477f6e3c 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

sys.dirdeps.mk use ?= for OBJTOP

This broke bmake's after-import step.


# e0e24ae5 13-May-2023 Simon J. Gerraty <sjg@FreeBSD.org>

bmake forloop test was removed


# 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


# 532d4fbf 27-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220726

Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'


# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo

# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724

# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

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

Merge/update to bmake-20230126


# 532d4fbf 27-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220726

Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'


# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo

# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724

# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

# 532d4fbf 27-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220726

Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'


# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo

# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724

# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

# 08604a02 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Auto-create bmake/unit-tests objdir if appropriate

Given the way bmake/unit-tests is visited, when doing 'test'
MK_AUTO_OBJ=yes will not be effective.
So create the objdir before running the sub-make.

Also ensure MAKEOBJDIR is passed to opt-m-include-dir

Reviewed by: deo


# 58cd3695 26-Jul-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Finish update to bmake-20220724


# 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'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

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

Merge bmake-20220330
Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'


# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

# a6f0e10b 09-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20220208

* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
is any chance we have dash as .SHELL

* meta.c: use a variable to hold command line to be filtered
to avoid any side effects from content of command line.

Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'


# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204

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

After-import bmake-20211212

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

Update to bmake-20210621

MFC after: 1 week

# 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


# 2eae894c 06-Dec-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.


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

Merge bmake-20151201


# 28a6bc81 10-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20150505 improve detection of malformed conditionals.


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

Merge bmake-20150418

PR: 199486


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

Merge bmake-20130904


# 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.


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

Update to bmake-20130330


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)

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

Merge bmake-20130123

Approved by: marcel (mentor)


# 59a02420 15-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)

# 6598559f 05-Feb-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Update to bmake-20220204


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

After-import bmake-20211212


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

Update to bmake-20210621

MFC after: 1 week


# 4639b858 04-Feb-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by: marcel (mentor)


# d4d90f10 06-Oct-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)