Commit Graph

301459 Commits

Author SHA1 Message Date
lukem 20f6009ff2 mk.conf(5): add remaining vars from BUILDING
Add more variables from BUILDING:
	INSTALLBOOT_BOARDS INSTALLWORLDDIR NOCLEANDIR
	NODISTRIBDIRS NOINCLUDES.

Add build.sh related notes (from BUILDING).

Clarify "target" as "target architecture" where appropriate
(versus a make target where that's obvious from context.)

Move all obsolete and deprecated variables to
new "OBSOLETE VARIABLES" section at the end.

Add some per-variable editorial improvements from BUILDING.

Change sub headings to headings; it's easier to read.
(I don't know why mdoc doesn't allow blank lines around .Ss)
2023-06-11 10:44:33 +00:00
lukem 922f5e2588 more NBUILDJOBS deprecation
The NBUILDJOBS option was deprecated in 2002;
there's no need to keep warning about it,
remove from params / show-params,
and only document as obsolete.
2023-06-11 10:43:51 +00:00
rillig 4e81574b54 indent: rename misleading variable
The name started with 'line_start', but the value is not always the
value from the beginning of the line.

No functional change.
2023-06-10 21:36:38 +00:00
rillig 5cfa711364 indent: fix debug output
When the parser state was first printed, there were unintended diff
markers.  Treat the previous lexer symbol like the other parts of the
parser state, as omitting it from the diff output is confusing.
2023-06-10 20:37:12 +00:00
rillig bae713c412 indent: fix line break between semicolon and brace 2023-06-10 18:46:42 +00:00
rillig 3d124ccbbf tests/indent: add move coverage tests 2023-06-10 17:56:29 +00:00
rillig 8bcc07836b indent: fix stack overflow, add more tests
For several parser symbols, 2 symbols are pushed in a row, which led to
an out-of-bounds write.
2023-06-10 17:35:40 +00:00
dbj 54caabcd8c gratuitous commit to fix spelling error 2023-06-10 17:14:57 +00:00
rillig b3bf029a38 indent: miscellaneous cleanups 2023-06-10 16:43:55 +00:00
lukem 5b36091254 sets: enhance MAKEVERBOSE support
Add more messages for various sets operations.
Add ${_MKMSG_CREATE} to bsd.own.mk.

Enhance maketars to be a bit more verbose even with -q,
to make it more obvious why certain operations may be slow.
May help debugging PR 47562.
2023-06-10 16:08:41 +00:00
lukem 7e6b40ad41 maketars: add comments for skipped mtree keywords
Reorder skipkeys alphabetically and add comment explaining
the purpose and why sha256 is not part of the variable.
2023-06-10 14:11:08 +00:00
lukem 35d5234ef6 3RDPARTY: libarchive latest is 3.6.2. note local fixes 2023-06-10 13:16:44 +00:00
rillig 41d9e13054 indent: clean up function names, fix blank lines in debug output 2023-06-10 13:03:17 +00:00
rillig 9e1c17039c indent: in debug mode, null-terminate buffers 2023-06-10 12:59:31 +00:00
lukem 305799b10f libarchive: fail if name_max is 0
Add error handling to the USE_READDIR_R code paths that set name_max
from struct statfs or statvfs; if the determined name_max == 0
then return an error.

Avoids a crash in tree_dir_next_posix() when the calculation of
dirent_size from name_max is too small for the memory allocated
for struct dirent.

Submitted to upstream in pull request
	https://github.com/libarchive/libarchive/pull/1903

Should fix PR bin/56080
2023-06-10 12:46:32 +00:00
rillig dd953560a9 indent: distinguish blank lines from newline characters 2023-06-10 11:01:58 +00:00
rillig 89f19ae349 indent: clean up debug output
In diff mode, don't print a diff of the very first parser state, instead
print its full state.

Don't print headings for empty sections of the parser state.
2023-06-10 09:31:41 +00:00
skrll 044debd7d3 Remove magic numbers. NFCI.
Copyright maintenance while I'm here.
2023-06-10 09:18:50 +00:00
rillig f6ead5d9af indent: fix indentation of continuation lines in initializers 2023-06-10 08:17:04 +00:00
rillig c5d0de36c0 indent: extract output of an indented line to separate function 2023-06-10 07:53:00 +00:00
rillig 8fd18c4a8a indent: clean up function names and order in output 2023-06-10 07:48:55 +00:00
rillig 645d5d2282 indent: clean up function and variable names 2023-06-10 07:42:41 +00:00
skrll 31fc5d10a5 KASSERT(kpreempt_disabled()) before accessing curcpu() to reflect why
preemption needs to be disabled more clearly.
2023-06-10 07:33:32 +00:00
skrll f59ffdd78c Trailing whitespace. 2023-06-10 07:30:57 +00:00
rillig 334e4e757d indent: explain right-aligned code 2023-06-10 07:05:18 +00:00
skrll fed0d2f283 Whitespace. 2023-06-10 07:02:26 +00:00
rillig f74eb54815 indent: fix token classification in declarations
As a side effect, indent handles _Generic from C11 properly now, at
least in -nlp mode.
2023-06-10 06:52:35 +00:00
rillig 338e471fd4 indent: rename and sort variables in parser state
No functional change.
2023-06-10 06:38:20 +00:00
simonb 9e6cc36b1a Pull git commit way-etc-20140221.tar.bz2 by Xin Li from FreeBSD:
Remove unneeded checks for prelen.

    In order to determine the type of a compressed file, we have to read
    in the first four bytes which may also be important for decompression
    purposes, to do that we would pass the buffer that we have already
    read in, along with the size of it.

    Rename header1 to fourbytes to make that explicit, and remove all
    checks for prelen.
2023-06-10 04:45:25 +00:00
kim fe60335256 Add some backwards compat. Adjust grammar. 2023-06-10 04:02:39 +00:00
rillig d3be4ec43d indent: trim trailing blank lines 2023-06-09 22:01:26 +00:00
gutteridge 373751d8bd Add bpf to the device nodes provided in the evbmips ramdisk
Intended to address an issue noted by Denis Ovsienko on port-mips,
where dhcpcd doesn't work with the netbsd-INSTALL_OCTEON kernel. (I am
not able to test this directly, but verified by mounting the ramdisk
images generated before and after this change.)
2023-06-09 21:41:52 +00:00
gutteridge e86cf4b839 INSTALL_*: correct a path in a comment 2023-06-09 21:33:16 +00:00
hgutch 2e29618c09 Add riscv port
Took the date of the first public announcement on port-riscv
of something usable (qemu).
2023-06-09 20:27:28 +00:00
rillig 6c12badb98 indent: clean up lexer
No functional change.
2023-06-09 19:50:51 +00:00
martin ecc52c0d0a If the install medium does not come with any openssl trusted root certs,
tell ftp(1) not to verify trust chains when doing https downloads.
2023-06-09 18:44:16 +00:00
rillig 860bbf700d indent: sync debug information for lexer symbols 2023-06-09 18:09:30 +00:00
rillig 028546bebe indent: group lexer symbols by topic, sort processing functions
No functional change.
2023-06-09 16:23:43 +00:00
rillig c29f3de3ef lint: miscellaneous clean-ups
No binary change, except for line numbers in assertions.
2023-06-09 15:36:31 +00:00
rillig 7b51cf32ad lint: sort functions in calling order
No functional change.
2023-06-09 13:31:11 +00:00
rillig 816aa865f2 lint: indent local variables consistently
No binary change.
2023-06-09 13:03:49 +00:00
rillig 1fc3c56ecf indent: support C99 compound literals 2023-06-09 11:22:31 +00:00
rillig ae40ebbc6b indent: don't treat function call expressions as cast expressions 2023-06-09 10:24:55 +00:00
rillig 1f304706fb indent: improve heuristics for function declaration vs. definition 2023-06-09 09:49:07 +00:00
rillig 1cc572504b tests/indent: add real-life test cases from make(1) and lint(1) 2023-06-09 09:45:55 +00:00
rillig 6b7c7358e9 indent: eliminate unused variable
No functional change.
2023-06-09 08:16:06 +00:00
rillig eace873087 indent: when an indentation is ambiguous, indent one level further
The '-eei' mode now applies whenever the indentation from a multi-line
expression could be confused with a following statement.
2023-06-09 08:10:58 +00:00
rillig 2a0d16ddf2 tests/indent: test extra indentation in expressions 2023-06-09 07:54:05 +00:00
rillig 545ff05aaa indent: format its own code 2023-06-09 07:20:30 +00:00
rillig 0fcafc89fc indent: preserve block comments with delimiters 2023-06-09 07:18:52 +00:00