aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/var.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge bmake-20250707Simon J. Gerraty2025-07-191-19/+19
| | | | Merge commit '3d772e596c1acf76f555c1f51fd8d834e56b0c35'
* Merge bmake-20250618Simon J. Gerraty2025-06-281-29/+79
|
* Merge bmake-20250414Simon J. Gerraty2025-04-191-89/+89
| | | | Merge commit '284d1f7d496806b18558ab55e4654fd5e96d6a3e'
* Merge bmake-20250125Simon J. Gerraty2025-01-301-88/+61
| | | | Merge commit '5ad769f660f3d00853bc739f82d9bc62f6a682cb'
* Merge bmake-20240711Simon J. Gerraty2024-07-201-74/+91
| | | | Merge commit '84691af93185c692058ba55fa81a04103f5bf71b'
* Merge bmake-20240625Simon J. Gerraty2024-06-291-133/+165
| | | | Merge commit 'dbb5be7f07456d02ce444484c683b130439acb45'
* Merge bmake-20240508Simon J. Gerraty2024-05-141-10/+7
| | | | Merge commit '3c2ab5fddc576e58f3ffa70dc5fa95144646a513'
* Merge bmake-20240430Simon J. Gerraty2024-05-031-52/+107
| | | | Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'
* Merge bmake-20240309Simon J. Gerraty2024-03-141-38/+37
| | | | Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'
* Update to bmake-20240108Simon J. Gerraty2024-01-141-401/+295
|
* Merge bmake-20230909Simon J. Gerraty2023-09-181-18/+35
| | | | Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'
* Merge bmake-20230622Simon J. Gerraty2023-06-271-57/+58
| | | | Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'
* Merge bmake-20230510Simon J. Gerraty2023-05-131-17/+102
| | | | Merge commit '945078deae448e0a13c34b3393d836087719fb16'
* Merge bmake-20230414Simon J. Gerraty2023-04-241-173/+108
| | | | Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'
* Merge bmake-20230208Simon J. Gerraty2023-02-101-3/+3
| | | | Merge commit 'f4d51098686d961fc03dc5aa327619d0af3c9dcd'
* Merge/update to bmake-20230126Simon J. Gerraty2023-01-281-47/+85
|
* Update to bmake-20220724Simon J. Gerraty2022-07-261-61/+51
| | | | Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'
* Merge bmake-20220330Simon J. Gerraty2022-04-031-47/+52
| | | | Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'
* Merge bmake-20220204Simon J. Gerraty2022-02-051-382/+310
|
* Merge bmake-20211212Simon J. Gerraty2021-12-181-257/+374
| | | | commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
* Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_mergeSimon J. Gerraty2021-06-251-1403/+1654
|
* Merge bmake-20210206Simon J. Gerraty2021-02-111-318/+395
| | | | | | | | | | | 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-141-2848/+3162
| | | | | | | | | | | | | | | | | | | | | 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-201-354/+386
| | | | | | | | | | | | | | | 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-071-1261/+1576
| | | | | | | | | | | | | | 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-051-2554/+2195
| | | | | | | | | | | | | | | | | | | | 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-121-1907/+1670
| | | | | | | | | | | | 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-091-1670/+1907
| | | | Notes: svn path=/head/; revision=363035
* Update to bmake-20200704Simon J. Gerraty2020-07-081-1907/+1670
| | | | | | | | | | 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-091-4/+14
| | | | | | | | | | 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-201-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge bmake-20181221Simon J. Gerraty2018-12-231-4/+5
| | | | Notes: svn path=/head/; revision=342376
* Update bmake to version 20180919Simon J. Gerraty2018-12-061-6/+10
| | | | | | | | Cleanup of stats cache and new :q modifier. Notes: svn path=/head/; revision=341652
* Update to bmake-201802222Simon J. Gerraty2018-03-021-8/+9
| | | | | | | | Fixes segfault in Var_Set if val is NULL Don't treat .info as warning with -W Notes: svn path=/head/; revision=330260
* Merge bmake-20170420Simon J. Gerraty2017-04-211-12/+12
| | | | Notes: svn path=/head/; revision=317239
* Merge bmake-20170301Simon J. Gerraty2017-03-061-15/+113
| | | | Notes: svn path=/head/; revision=314808
* Import bmake-20160604Simon J. Gerraty2016-06-051-5/+5
| | | | | | | Performace improvements for meta mode. Notes: svn path=/head/; revision=301462
* Update to bmake-20160315Simon J. Gerraty2016-03-181-5/+5
| | | | | | | | | | | Archive member handling works again meta mode, treat missing reads as for writes. Update dirdeps.mk - much improved startup time. Update meta.stage.mk - avoid ln when chmod required. Notes: svn path=/head/; revision=297040
* Merge bmake-20160307Simon J. Gerraty2016-03-111-91/+131
| | | | Notes: svn path=/head/; revision=296637
* Merge bmake-20151201Simon J. Gerraty2015-12-081-34/+37
| | | | Notes: svn path=/head/; revision=291978
* Merge bmake 20151020Simon J. Gerraty2015-10-231-108/+121
| | | | Notes: svn path=/head/; revision=289842
* Merge bmake-20150505 improve detection of malformed conditionals.Simon J. Gerraty2015-05-101-4/+4
| | | | Notes: svn path=/head/; revision=282740
* Merge bmake-20150418Simon J. Gerraty2015-04-211-36/+31
| | | | | | | PR: 199486 Notes: svn path=/head/; revision=281812
* Update to bmake-20140620Simon J. Gerraty2014-07-081-9/+21
| | | | | | | | | Main change is detection of malformed variable references. Reviewed by: obrien Notes: svn path=/head/; revision=268437
* Portmgr no longer need the UL hack.Simon J. Gerraty2014-05-271-45/+1
| | | | | | | Reviewed by: obrien Notes: svn path=/head/; revision=266760
* Merge bmake-20130904Simon J. Gerraty2013-09-051-3/+12
| | | | Notes: svn path=/head/; revision=255253
* Merge bmake-20130730Simon J. Gerraty2013-08-021-27/+25
| | | | | | | | Main feature of interest is .MAKE.JOB.PREFIX= to suppress --- job --- tokens. Notes: svn path=/head/; revision=253883
* Update to bmake-20130604 to fix file descriptor leak.Simon J. Gerraty2013-06-051-6/+4
| | | | Notes: svn path=/head/; revision=251422
* Sync with upstream version (20130520) that includes same fixes made last week.Simon J. Gerraty2013-05-201-3/+3
| | | | Notes: svn path=/head/; revision=250837
* Match what is in netbsd.Simon J. Gerraty2013-05-181-1/+1
| | | | Notes: svn path=/head/; revision=250771