Commit Graph

17571 Commits

Author SHA1 Message Date
thorpej 99cf5fb567 Add an example devpubd hook that looks for Minipro-compatible EEPROM
programmers and sets the access permissions to 0660.
2024-03-30 16:47:55 +00:00
thorpej 4e13543e2b Add an example devpubd hook that detects the generic USB interface
portion of a Tigard debug board and changes the permissions of the
appropriate /dev/ugenN.* nodes to allow access without superuser
permissions, suitable for using e.g. openocd with the device.

This example can be easily modified to support other generic USB devices
that have user-space drivers where running as the superuser is not desired.
2024-03-30 06:42:10 +00:00
thorpej 70f7362772 Add an example devpubd hook that makes stable path names, using symlinks,
for USB serial interfaces, regardless of where the interface is connected
or the order of enumeration.  This requires the USB device to have a
"serialnumber" to function.  Examples:

- uftdi serial adapter with two ports:

	/dev/tty-uftdi-FT64S4YP-1 -> /dev/ttyU0
	/dev/tty-uftdi-FT64S4YP-2 -> /dev/ttyU1

- uslsa serial adapter:

	/dev/tty-uslsa-01E7ABCC -> /dev/ttyU4

This allows something like the following in /etc/remote:

sun3:dv=/dev/tty-uftdi-FT64S4YP-1:br#9600:pa=none:dc:

That path will always be stable regardless of which /dev/ttyU* node is
actually assigned when the serial adapter is plugged in.
2024-03-30 06:29:01 +00:00
thorpej 870369fb30 Add an examples directory for devpubd hooks. 2024-03-30 06:11:58 +00:00
uwe d9e38a11b0 distrib/notes: add back the sentence final dot after .Lk
It was omitted in previous b/c of a bug in .Lk that was fixed
in PR bin/58074
2024-03-25 13:35:28 +00:00
martin 51641d9aad Use single-arg "Lk" macro for a link so we can get reasonable results
both in .more and .html output (still a bit odd, but better than before IMHO).
2024-03-24 13:18:02 +00:00
martin eaa45076fb Various style fixes (and some of VAX related errors and copy&pastos),
from Mouse on tech-install.
2024-03-24 12:53:19 +00:00
riastradh 40cfbdd6f3 acpihed(4): New driver for PNP0C33 to notify apei(4).
PNP0C33 denotes the ACPI Hardware Error Device, which exists only to
be a vector for event notifications.

PR kern/58046
2024-03-21 02:36:01 +00:00
riastradh 4b159fe528 apei(4): New driver for ACPI Platform Error Interfaces.
For now it is wired up only in x86 ALL kernels, and built as a module
for x86 and Arm.  Once it gets a little more testing on machines with
APEI, I would like to flip it on by default.

PR kern/58046
2024-03-20 17:11:42 +00:00
riastradh 9a55048f5c x86: Release the ramdisks too.
This way we will get cgdroot.fs (and zfsroot.fs too) in the release.

PR misc/57534
2024-03-20 13:51:35 +00:00
christos a47d0a4f5e Fix reproducible builds (Jan-Benedict Glaw) 2024-03-20 00:31:54 +00:00
riastradh 1e152b590b libcrypto: Add some trivial tests for truncated SHA-512 variants.
These should use more of the test vectors from

https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing#Testing

but this will do for now to detect the buffer overrun rake we left
lying around for ourselves.

PR lib/58039
2024-03-15 15:32:07 +00:00
riastradh 9c98722158 evbarm/instkernel/sshramdisk: Put firmware in the right paths.
Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035
2024-03-15 02:20:58 +00:00
rillig 897cdf26ba tests/stat: test the left-aligned and right-aligned 'S' format 2024-03-14 21:00:32 +00:00
christos b250f22a56 Fix reproducible build (Jan-Benedict Glaw) 2024-03-14 15:41:54 +00:00
mrg aa397e14a2 allow XZ_OPT to be overriden. 2024-03-09 06:50:15 +00:00
christos 81e2be5eb1 Add _dlauxinfo.3 2024-03-07 22:15:52 +00:00
macallan 6cd4d7a2ec install stireg.h 2024-03-04 10:19:13 +00:00
riastradh 5d9e12cf39 mozilla-certdata: Update set lists. 2024-03-03 04:35:18 +00:00
rillig c9de07fbb0 lint: check for unreachable bits and fields in snprintb formats
While here, clean up a few existing checks.
2024-03-03 00:50:41 +00:00
rillig 1ec17c714c lint: check snprintb formats for overlapping bits and fields 2024-03-02 11:56:37 +00:00
rillig 38c0bdf232 lint: test format strings from snprintb calls
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct.  Provide some assistance in
catching the most common mistakes.
2024-03-01 19:39:28 +00:00
christos 90b19e4963 new sqlite 2024-03-01 15:48:24 +00:00
christos ac69e99e78 one more timestamp fix I forgot to commit 2024-02-25 16:49:32 +00:00
christos 1fcbeeff9a new tool 2024-02-22 01:13:42 +00:00
christos e359e10520 add new bind tools 2024-02-22 00:58:49 +00:00
christos 21a52f56eb changes for new bind.
XXX: removing lint libraries where lint does not work anymore is temporary.
2024-02-21 22:53:47 +00:00
christos b37be858f1 fix debug sets for sun2 (libgcc_s_g.a and libgcc_eh_g.a should be in shl.mi) 2024-02-20 14:13:45 +00:00
riastradh b29b1fdf39 ramdisk-zfsroot: Enable build by default on amd64.
XXX Should maybe copy this to other ports like evbarm64 too.

PR port-amd64/57948
2024-02-19 17:55:46 +00:00
riastradh a7b033762e longjmp(3): Add test for PR lib/57946. 2024-02-19 04:30:38 +00:00
christos 2e4f73b7b0 bump libunbound 2024-02-17 18:32:19 +00:00
christos 25d856e749 Fix MKREPRO build (Jan-Benedict Glaw) 2024-02-17 15:07:03 +00:00
mlelstv 265bb24603 Quote argument to -n as required. [ -n ] is not a syntax error but
evaluates to true.
2024-02-12 11:30:33 +00:00
christos 5dc3a23d37 PR/57925: Jan-Benedict Glaw: Honor $MKREPRO_TIMESTAMP, don't embed name and
stamp in gzip.
2024-02-11 17:29:50 +00:00
andvar a10c2cec39 fix various typos in comments and log messages. 2024-02-10 09:21:51 +00:00
christos 5d78d08de1 PR/57913: Jan-Benedict Glaw: Don't embed build timestamp into archive
While here, modernize backquotes.
2024-02-09 15:34:34 +00:00
christos 05264c9b54 PR/57911: Jan-Benedict Glaw: Allow to set repro timestamp (and use it) 2024-02-08 19:24:43 +00:00
christos 40f2c3cc74 PR/57910: Jan-Benedict Glaw: Fix typo preventing reproducible builds 2024-02-08 18:14:02 +00:00
christos 7c3feac8da PR/57906: Jan-Benedict Glaw: Extend`mkbootimage` to allow for
$MKREPRO_TIMESTAMP usage
2024-02-08 17:57:54 +00:00
andvar d30e897588 s/dependancies/dependencies/ and s/independantly/independently/ in comments and
distrib notes.
2024-02-05 21:39:51 +00:00
andvar 23997cfc64 s/formated/formatted/ in comment and distrib sets descriptions. 2024-02-05 21:20:09 +00:00
rillig 139c6401cd lint: warn about short octal escape followed by '8' or '9'
These mistakes is typically found in snprintb format directives but is
probably a typo everywhere else as well.
2024-02-03 20:10:10 +00:00
rillig 3454588e0f tests/lint: test UTF-8 mode 2024-02-02 23:30:38 +00:00
rillig 183f84fe87 tests/lint: test lexing of characters and strings 2024-02-02 19:07:57 +00:00
martin 2cf65fcd1b Fix previous, use sed to fix up the set.${set} line in non-METAFILE mode 2024-01-30 10:24:39 +00:00
martin 49eab889a9 When building in priviledged mode, remove the entry for the output file
from etc/mtree/set.* - it may exist and contain stale data.
2024-01-29 15:56:49 +00:00
mrg 1fae5a330f properly quote arguments. 2024-01-29 05:46:55 +00:00
tsutsui fb1d4f6a14 Also put back libfb.a in xorg_server_ver=110 case.
It looks required only on building Xorg server binary and
unnecessary for release (actually marked as obsolete only on vax),
but no simple settings to "build static libraries without installation"
and most ports will be switched to Xorg 1.20 soon.
2024-01-28 06:20:02 +00:00
riastradh bbd1e6c887 NetBSD.dist.base: Nix /var/run/named.
/var/run is emptied at boot time by /etc/rc.d/mountcritlocal, so
there's no point in creating this at install time -- it has to be
created on the fly after /var/run is cleared on every boot anyway.

Mark /var/run/named obsolete in the set lists.  XXX This isn't quite
right, because it is legitimate for /var/run/named to exist in a
running installation, but it doesn't exist in a freshly installed
system any more.  Maybe we should just remove the entry from the set
lists and add a note to UPDATING about deleting it manually from the
destdir in incremental builds.

PR misc/57877
2024-01-27 21:06:09 +00:00
rillig a4d99aada1 tests/lint: test integer constants in different language levels 2024-01-27 15:10:56 +00:00