aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/bmake
Commit message (Collapse)AuthorAgeFilesLines
...
* Only set WARNS if not definedKyle Evans2020-09-111-1/+1
| | | | | | | | | | | | | This would allow interested parties to do experimental runs with an environment set appropriately to raise all the warnings throughout the build; e.g. env WARNS=6 NO_WERROR=yes buildworld. Not currently touching the numerous instances in ^/tools. MFC after: 1 week Notes: svn path=/head/; revision=365631
* Update to bmake-20200902Simon J. Gerraty2020-09-053-63/+346
| | | | | | | | | | | | | | | | | | | | 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
* Oops missed Makefile.configSimon J. Gerraty2020-07-191-0/+11
| | | | Notes: svn path=/head/; revision=363350
* Update to bmake-20200710Simon J. Gerraty2020-07-123-98/+114
| | | | | | | | | | | | 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-1/+1
| | | | Notes: svn path=/head/; revision=363035
* Update to bmake-20200704Simon J. Gerraty2020-07-081-1/+1
| | | | | | | | | | 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-093-5/+5
| | | | | | | | | | 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-204-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | Notes: svn path=/head/; revision=342376
* Update bmake to version 20180919Simon J. Gerraty2018-12-062-5/+6
| | | | | | | | Cleanup of stats cache and new :q modifier. Notes: svn path=/head/; revision=341652
* Don't override LDFLAGS set in bsd.cpu.mk.Brooks Davis2018-09-251-1/+1
| | | | | | | | | | | | | This is a direct commit to a generated file. Simon plans to fix this upstream before the next import. PR: 231557 Approved by: re (gjb) Obtained from: CheriBSD Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=338925
* Merge bmake-20180512Simon J. Gerraty2018-05-191-1/+1
| | | | | | | | Skip polling job token pipe, better handle sysV style includes with variables. Notes: svn path=/head/; revision=333820
* Update to bmake-201802222Simon J. Gerraty2018-03-023-6/+10
| | | | | | | | 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-023-12/+8
| | | | | | | | | Ignore empty MAKEOBJDIR[PREFIX] Reported by: bdrewery Notes: svn path=/head/; revision=325340
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Import bmake-20170720Simon J. Gerraty2017-07-242-2/+8
| | | | | | | Includes fix for compat handling of interrupts. Notes: svn path=/head/; revision=321410
* Import bmake-20170711Simon J. Gerraty2017-07-151-2/+2
| | | | Notes: svn path=/head/; revision=321036
* Merge bmake-20170510Simon J. Gerraty2017-05-101-2/+2
| | | | | | | No-op change other than version update. Notes: svn path=/head/; revision=318163
* Merge bmake-20170420Simon J. Gerraty2017-04-211-2/+2
| | | | Notes: svn path=/head/; revision=317239
* Update to bmake 20170413Simon J. Gerraty2017-04-151-2/+2
| | | | Notes: svn path=/head/; revision=316949
* Merge bmake-20170301Simon J. Gerraty2017-03-061-2/+2
| | | | Notes: svn path=/head/; revision=314808
* Merge bmake-20161212Simon J. Gerraty2016-12-191-3/+6
| | | | Notes: svn path=/head/; revision=310304
* Update to bmake-20170818Simon J. Gerraty2016-09-091-2/+2
| | | | | | | | This version has some new knobs for dealing with troublesome targets in meta mode. Notes: svn path=/head/; revision=305633
* Merge bmake-20160606Simon J. Gerraty2016-06-082-4/+7
| | | | | | | o dir.c: extend mtimes cache to others via cached_stat() Notes: svn path=/head/; revision=301665
* Import bmake-20160604Simon J. Gerraty2016-06-051-2/+2
| | | | | | | Performace improvements for meta mode. Notes: svn path=/head/; revision=301462
* Merge bmake-20160512Simon J. Gerraty2016-05-201-2/+2
| | | | Notes: svn path=/head/; revision=300313
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-0449-390/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299094
* MFHGlen Barber2016-04-041-2/+2
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * Update to bmake-20160315Simon J. Gerraty2016-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* | MFHGlen Barber2016-03-141-3/+3
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296869
| * Fix upgrade of bmake by not setting conflicting MAKE_VERSION.Bryan Drewery2016-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | This may be used in later checks, such as in bsd.dep.mk, to enable features that rely on the built-in value. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296644
| * Merge bmake-20160307Simon J. Gerraty2016-03-111-2/+2
| | | | | | | | Notes: svn path=/head/; revision=296637
* | MFHGlen Barber2016-03-1049-0/+539
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-0949-0/+539
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | MFHGlen Barber2016-02-181-0/+3
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295734
| * Test directories can build in parallel fine.Bryan Drewery2016-02-161-0/+3
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295643
* | More 'tests' package fixes.Glen Barber2016-02-0340-0/+120
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295179
* | First pass to fix the 'tests' packages.Glen Barber2016-02-029-0/+27
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Merge bmake-20151220Simon J. Gerraty2015-12-251-2/+2
| | | | | | | Fixed clearing suffixes impact on null suffix Notes: svn path=/head/; revision=292733
* Merge bmake-20151201Simon J. Gerraty2015-12-083-6/+24
| | | | Notes: svn path=/head/; revision=291978
* Merge bmake 20151020Simon J. Gerraty2015-10-231-2/+3
| | | | Notes: svn path=/head/; revision=289842
* Similar to r266147, don't define PROG in the test subdirs.Bryan Drewery2015-09-231-0/+2
| | | | | | | | | Magic things happen when including bsd.prog.mk in them. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288154
* new dependsSimon J. Gerraty2015-06-161-0/+1
| | | | Notes: svn path=/head/; revision=284481
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-36/+85
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=283595
| * \ Merge head from 7/28Simon J. Gerraty2014-08-19323-5/+2794
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | New dependenciesSimon J. Gerraty2014-05-171-1/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266284
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge from headSimon J. Gerraty2014-05-081-9/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720