aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge bmake-20230622Simon J. Gerraty2023-06-27214-1112/+2674
| | | | Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'
* sys.dirdeps.mk use ?= for OBJTOPSimon J. Gerraty2023-05-131-1/+1
| | | | This broke bmake's after-import step.
* Merge bmake-20230510Simon J. Gerraty2023-05-1347-559/+1547
| | | | Merge commit '945078deae448e0a13c34b3393d836087719fb16'
* Merge bmake-20230414Simon J. Gerraty2023-04-2485-722/+1556
| | | | Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'
* Merge bmake-20230208Simon J. Gerraty2023-02-1010-46/+149
| | | | Merge commit 'f4d51098686d961fc03dc5aa327619d0af3c9dcd'
* Merge/update to bmake-20230126Simon J. Gerraty2023-01-28109-5303/+7182
|
* Update to bmake-20220726Simon J. Gerraty2022-07-274-4/+28
| | | | Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'
* Update to bmake-20220724Simon J. Gerraty2022-07-2665-1370/+1934
| | | | Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'
* Merge bmake-20220418Simon J. Gerraty2022-04-2223-112/+378
| | | | | | | | o ignore '.POSIX:' if not in first non-comment line of Makefile as specified by POSIX. add unit-tests for above. Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'
* Merge bmake-20220330Simon J. Gerraty2022-04-0395-561/+1144
| | | | Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'
* cc-wrap.mk: fix typo in modifiersSimon J. Gerraty2022-02-161-1/+1
|
* Merge bmake-20220208Simon J. Gerraty2022-02-0914-31/+163
| | | | | | | | | | * 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'
* bmake: make opt-debug-x-trace broken on LinuxEd Maste2022-02-091-0/+3
| | | | | | | | | | It fails during GitHub cross-build actions from Ubuntu 20.04. sjg investigated and found it is a dash bug; a more extensive change to handle this case will come in the next bmake update. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D34219
* Merge bmake-20220204Simon J. Gerraty2022-02-05219-4168/+5442
|
* Merge bmake-20211212Simon J. Gerraty2021-12-18166-1888/+4798
| | | | commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
* make: fix MAKE_JOB_ERROR_TOKENSimon J. Gerraty2021-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rework of GetBooleanVar to GetBooleanExpr requires we add "${" and ":U}" around the expression so it can be directly evaluated. Reported by: mjg MFC after: 1 week # # 72 columns --| # # Uncomment and complete these metadata fields, as appropriate: # # PR: <If and which Problem Report is related.> # Reported by: <If someone else reported the issue.> # Reviewed by: <If someone else reviewed your modification.> # Approved by: <If you needed approval for this commit.> # Obtained from: <If the change is from a third party.> # MFC after: <N [day[s]|week[s]|month[s]]. Request a reminder email> # MFH: <Ports tree branch name. Request approval for merge.> # Relnotes: <Set to 'yes' for mention in release notes.> # Security: <Vulnerability reference (one per line) or description.> # Sponsored by: <If the change was sponsored by an organization.> # Pull Request: <https://github.com/freebsd/<repo>/pull/###> # Differential Revision: <https://reviews.freebsd.org/D###> # # "Pull Request" and "Differential Revision" require the *full* GitHub or # Phabricator URL. The commit author should be set appropriately, using # `git commit --author` if someone besides the committer sent in the change. # # Uncomment and complete these metadata fields, as appropriate: # # PR: # Reported by: <If someone else reported the issue.> # Reviewed by: <If someone else reviewed your modification.> # Approved by: <If you needed approval for this commit.> # Obtained from: <If the change is from a third party.> # MFC after: <N [day[s]|week[s]|month[s]]. Request a reminder email> # MFH: <Ports tree branch name. Request approval for merge.> # Relnotes: <Set to 'yes' for mention in release notes.> # Security: <Vulnerability reference (one per line) or description.> # Sponsored by: <If the change was sponsored by an organization.> # Pull Request: <https://github.com/freebsd/<repo>/pull/###> # Differential Revision: <https://reviews.freebsd.org/D###> # # "Pull Request" and "Differential Revision" require the *full* GitHub or # Phabricator URL. The commit author should be set appropriately, using # `git commit --author` if someone besides the committer sent in the change. #
* Update to bmake-20210621Simon J. Gerraty2021-06-251-4/+5
| | | | MFC after: 1 week
* Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_mergeSimon J. Gerraty2021-06-25144-3540/+5491
|
* Merge bmake-20210206Simon J. Gerraty2021-02-11127-2133/+3156
| | | | | | | | | | | 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
* Merge bmake-20210110Simon J. Gerraty2021-01-14241-14523/+24264
| | | | | | | | | | | | | | | | | | | | | 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
* Merge bmake-20201117Simon J. Gerraty2020-11-20247-4177/+6144
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=367863
* Update to bmake-20201101Simon J. Gerraty2020-11-07387-12182/+15725
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=367465
* Update to bmake-20200902Simon J. Gerraty2020-09-05657-10884/+14930
| | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=365366
* Update to bmake-20200710Simon J. Gerraty2020-07-1285-3445/+3606
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=363117
* Revert r363031Simon J. Gerraty2020-07-0981-3388/+3210
| | | | Notes: svn path=/head/; revision=363035
* Update to bmake-20200704Simon J. Gerraty2020-07-0881-3210/+3388
| | | | | | | | | | Key changes include reduced noise at end of failed build log and avoid evaluation of unnecessary terms in conditionals. MFC after: 1 week Notes: svn path=/head/; revision=363031
* Merge bmake-20200606Simon J. Gerraty2020-06-0916-112/+389
| | | | | | | | | | Relevant items from ChangeLog: o dir.c: cached_stats - don't confuse stat and lstat results. o var.c: add :Or for reverse sort. Notes: svn path=/head/; revision=361986
* Merge bmake-20200517Simon J. Gerraty2020-05-2074-863/+3281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes since 20181221 are mostly portability related hence the large gap in versions imported. There are however some bug fixes, and a rework of filemon handling. In NetBSD make/filemon/filemon_ktrace.c allows use of fktrace and elimination of filemon(4) which has not had the TLC it needs. FreeBSD filemon(4) is in much better shape, so bmake/filemon/filemon_dev.c allows use of that, with a bit less overhead than the ktrace model. Summary of changes from ChangeLog o str.c: empty string does not match % pattern plus unit-test changes o var.c: import handling of old sysV style modifier using '%' o str.c: refactor brk_string o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD a blank command is perfectly valid. o meta.c: meta_oodate, check for corrupted meta file earlier and more often. * meta.c: meta_compat_parent check for USE_FILEMON patch from Soeren Tempel o meta.c: fix compat mode, need to call meta_job_output() o job.c: extra fds for meta mode not needed if using filemon_dev o meta.c: avoid passing NULL to filemon_*() when meta_needed() returns FALSE. o filemon/filemon_{dev,ktrace}.c: allow selection of filemon implementation. filemon_dev.c uses the kernel module while filemon_ktrace.c leverages the fktrace api available in NetBSD. filemon_ktrace.c can hopefully form the basis for adding support for other tracing mechanisms such as strace on Linux. o meta.c: when target is out-of-date per normal make rules record value of .OODATE in meta file. o parse.c: don't pass NULL to realpath(3) some versions cannot handle it. o parse.c: ParseDoDependency: free paths rather than assert plus more unit-tests Notes: svn path=/head/; revision=361307
* MFV r359442: bmake: import -fno-common fix build back from upstreamKyle Evans2020-03-302-5/+5
| | | | | | | | sjg@ committed the local patch previously committed upstream; pull it in to vendor/ to ease any potential stress of future imports. Notes: svn path=/head/; revision=359443
* bmake: fix -fno-common buildKyle Evans2020-03-302-1/+3
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=359433
* retire the LLVM_LIBUNWIND optionEd Maste2020-02-291-1/+0
| | | | | | | | | | | | LLVM's libunwind is used on all FreeBSD-supported CPU architectures and is a required component. Reviewed by: brooks (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23123 Notes: svn path=/head/; revision=358460
* retire BSD_CRTBEGIN optionEd Maste2020-01-311-1/+0
| | | | | | | | | | | | | | | | BSD crt is currently used on all architectures (other than sparc64). Remove the option and use BSD crt everywhere as part of the GCC 4.2.1 retirement plan. https://lists.freebsd.org/pipermail/freebsd-arch/2020-January/019823.html PR: 239851 Reviewed by: andrew, brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23122 Notes: svn path=/head/; revision=357338
* Merge bmake-20181221Simon J. Gerraty2018-12-237-22/+85
| | | | Notes: svn path=/head/; revision=342376
* Update bmake to version 20180919Simon J. Gerraty2018-12-0618-89/+154
| | | | | | | | Cleanup of stats cache and new :q modifier. Notes: svn path=/head/; revision=341652
* Cross-reference style.Makefile(5) from make(1) and make.conf(5).Mateusz Piotrowski2018-09-271-3/+4
| | | | | | | | | | Reviewed by: krion, mat, sjg Approved by: re (gjb), krion (mentor), mat (mentor) Sponsored by: Bally Wulff Games & Entertainment GmbH Differential Revision: https://reviews.freebsd.org/D17170 Notes: svn path=/head/; revision=338960
* Merge bmake-20180512Simon J. Gerraty2018-05-1916-97/+305
| | | | | | | | Skip polling job token pipe, better handle sysV style includes with variables. Notes: svn path=/head/; revision=333820
* Revert accidentally commited local change to bmake to prevent debilitatingMatt Macy2018-05-101-4/+2
| | | | | | | | | excess system time from poor API usage. Approved by: sbruno@ Notes: svn path=/head/; revision=333467
* Add simple preempt safe epoch APIMatt Macy2018-05-101-2/+4
| | | | | | | | | | | | | | | | | | Read locking is over used in the kernel to guarantee liveness. This API makes it easy to provide livenes guarantees without atomics. Includes epoch_test kernel module to stress test the API. Documentation will follow initial use case. Test case and improvements to preemption handling in response to discussion with mjg@ Reviewed by: imp@, shurd@ Approved by: sbruno@ Notes: svn path=/head/; revision=333466
* Update to bmake-201802222Simon J. Gerraty2018-03-0229-622/+870
| | | | | | | | Fixes segfault in Var_Set if val is NULL Don't treat .info as warning with -W Notes: svn path=/head/; revision=330260
* Update to bmake-20171028Simon J. Gerraty2017-11-0225-60/+148
| | | | | | | | | Ignore empty MAKEOBJDIR[PREFIX] Reported by: bdrewery Notes: svn path=/head/; revision=325340
* Import bmake-20170720Simon J. Gerraty2017-07-246-18/+47
| | | | | | | Includes fix for compat handling of interrupts. Notes: svn path=/head/; revision=321410
* Import bmake-20170711Simon J. Gerraty2017-07-1519-205/+380
| | | | Notes: svn path=/head/; revision=321036
* Merge bmake-20170510Simon J. Gerraty2017-05-1030-105/+405
| | | | | | | No-op change other than version update. Notes: svn path=/head/; revision=318163
* Ensure buf2 is in scopeSimon J. Gerraty2017-05-101-2/+1
| | | | Notes: svn path=/head/; revision=318161
* Str_Match: fix closure tests for [^] and add unit-test.Simon J. Gerraty2017-04-213-3/+8
| | | | Notes: svn path=/head/; revision=317274
* Merge bmake-20170420Simon J. Gerraty2017-04-2116-126/+274
| | | | Notes: svn path=/head/; revision=317239
* Update to bmake 20170413Simon J. Gerraty2017-04-1514-51/+152
| | | | Notes: svn path=/head/; revision=316949
* Do not consider using -C arg "as is" for .CURDIR unless it starts with /.Simon J. Gerraty2017-03-111-1/+2
| | | | | | | Reported by: bdrewery Notes: svn path=/head/; revision=315088
* Merge bmake-20170301Simon J. Gerraty2017-03-0624-104/+457
| | | | Notes: svn path=/head/; revision=314808
* Merge bmake-20161212Simon J. Gerraty2016-12-1925-278/+558
| | | | Notes: svn path=/head/; revision=310304