mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 00:02:14 -04:00
Update import.sh to generate below
ChangeLog since bmake-20230622
2023-09-09 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230909
Merge with NetBSD make, pick up
o main.c: allow -j to compute a multiple of ncpu
If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating
point number or ends in 'C' compute .MAKE.JOBS as a multiple of
_SC_NPROCESSORS_ONLN
.MAKE.JOBS.C will be "yes" if -jC is supported
2023-08-20 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230820
Merge with NetBSD make, pick up
o make.1: note that :localtime is better for %s
o parse.c: improve error messages for invalid input.
o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get
correct result, it is still better to use %s:L:localtime.
2023-08-18 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230818
Merge with NetBSD make, pick up
o meta.c: meta_ignore - check raw path against metaIgnorePaths
to potentially skip call to realpath.
o var.c: be strict when parsing the argument of the ':mtime' modifier
o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}'
should be used to get an equivalent value to time(3).
2023-08-16 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230816
Merge with NetBSD make, pick up
o cond.c: clean up multiple-inclusion guards
2023-07-25 Simon J Gerraty <sjg@beast.crufty.net>
* unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS
if configure cannot work out how to control TZ.
Remove varmod-localtime from BROKEN_TESTS for IRIX*
2023-07-24 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230723
* configure.in: fix the test for wether TZ=Europe/Berlin works.
Depending on the time of year, if run between 22:00 and 00:00 UTC
the check in configure would fail incorrectly.
Take the day into account as well.
2023-07-18 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230711
Merge with NetBSD make, pick up
o make.1: clean up wording, clarify scope of '!' in conditions
2023-07-15 Simon J Gerraty <sjg@beast.crufty.net>
* make-bootstrap.sh.in: set prefix
If configure is run using ksh we get unexpanded ${prefix} in
DEFAULT_SYS_PATH, by ensuring prefix is set we should still get
correct result.
2023-07-13 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230711
bump version for IRIX tweaks
* make.h: undef OP_NONE if defined
* unit-tests/Makefile: set BROKEN_TESTS for IRIX
* configure.in: override INSTALL on IRIX
2023-06-27 Simon J Gerraty <sjg@beast.crufty.net>
* boot-strap op_test: ensure we set TEST_MAKE as we want it.
mk/ChangeLog since bmake-20230622
2023-09-09 Simon J Gerraty <sjg@beast.crufty.net>
* jobs.mk (JOB_MAX): use -jC if we can
we actually use JOB_MAX_C which defaults to 1.33C
2023-08-18 Simon J Gerraty <sjg@beast.crufty.net>
* now_utc: %s only works with :localtime
2023-07-14 Simon J Gerraty <sjg@beast.crufty.net>
* install-sh: ignore -c as claimed and only insist on
a directory for destination when more than one file to copy.
* sys.mk: when looking for SYS_OS_MK try ${.MAKE.OS} and
${.MAKE.OS:S,64,,} early (so we find sys/IRIX.mk for IRIX64)
2023-07-13 Simon J Gerraty <sjg@beast.crufty.net>
* install-mk (MK_VERSION): 20230711
* sys.mk: set SYS_MK and INSTALL_SH for systems with incompatible
install(1)
* sys/IRIX.mk: when setting ROOT_GROUP only match the first :0:
set INSTALL to install-sh rather than pathname that may not exist
(yet).
2023-07-07 Simon J Gerraty <sjg@beast.crufty.net>
* dirdeps.mk: pass DIRDEP_TARGETS to DIRDEP_MAKE
normally this is empty - for the default target, but there are
use-cases where we might set it to something else.
2023-07-04 Simon J Gerraty <sjg@beast.crufty.net>
* install-mk (MK_VERSION): 20230704
* dirdeps.mk: apply DEBUG_DIRDEPS_LIST_FILTER to lists we output
when DEBUG_DIRDEPS is in effect.
Eg. DEBUG_DIRDEPS_LIST_FILTER=ts\n
can greatly improve readability.
55 lines
2.2 KiB
Makefile
55 lines
2.2 KiB
Makefile
# $NetBSD: parse.mk,v 1.7 2023/08/19 11:09:02 rillig Exp $
|
|
#
|
|
# Test those parts of the parsing that do not belong in any of the other
|
|
# categories.
|
|
|
|
# expect+1: Invalid line '<<<<<< old'
|
|
<<<<<< old
|
|
|
|
# No diagnostic since the following line is parsed as a variable assignment,
|
|
# even though the variable name is empty. See also varname-empty.mk.
|
|
====== middle
|
|
|
|
# expect+1: Invalid line '>>>>>> new'
|
|
>>>>>> new
|
|
|
|
|
|
# Since parse.c 1.578 from 2021-12-14 and before parse.c 1.681 from
|
|
# 2022-07-24, if a line of a makefile could only be a dependency specification
|
|
# but didn't contain any of the dependency operators ':', '!', '::' and its
|
|
# expansion ended with a space, make read a single byte from the memory beyond
|
|
# the expanded line's terminating '\0'.
|
|
#
|
|
# https://bugs.freebsd.org/265119
|
|
# expect+1: Invalid line 'one-target ${:U }', expanded to 'one-target '
|
|
one-target ${:U }
|
|
|
|
|
|
# Since parse.c 1.656 from 2022-01-27 and before parse.c 1.662 from
|
|
# 2022-02-05, there was an out-of-bounds read in Parse_IsVar when looking for
|
|
# a variable assignment in a dependency line with trailing whitespace. Lines
|
|
# without trailing whitespace were not affected. Global variable assignments
|
|
# were guaranteed to have no trailing whitespace and were thus not affected.
|
|
#
|
|
# Try to reproduce some variants that may lead to a crash, depending on the
|
|
# memory allocator. To get a crash, the terminating '\0' of the line must be
|
|
# the last byte of a memory page. The expression '${:U}' forces this trailing
|
|
# whitespace.
|
|
|
|
# On FreeBSD x86_64, a crash could in some cases be forced using the following
|
|
# line, which has length 47, and if the memory for the expanded line starts at
|
|
# 0xXXXX_XXd0, the terminating '\0' may end up at 0xXXXX_Xfff:
|
|
Try_to_crash_FreeBSD.xxxxxxxxxxxxxxxxxx: 12345 ${:U}
|
|
|
|
# The following line has length 4095 after being expanded, so line[4095] ==
|
|
# '\0'. If the line is
|
|
# allocated on a page boundary and the following page is not mapped, this line
|
|
# leads to a segmentation fault.
|
|
${:U:range=511:@_@1234567@:ts.}: 12345 ${:U}
|
|
|
|
# The following line has length 8191, so line[8191] == '\0'. If the line is
|
|
# allocated on a page boundary and the following page is not mapped, this line
|
|
# leads to a segmentation fault.
|
|
${:U:range=1023:@_@1234567@:ts.}: 12345 ${:U}
|
|
|
|
12345:
|