syslogd: Make some code more clear.
This moves some math to where it logically makes more sense for skipping
over the ": " separator in the message formatted "app[PID]: MSG".
No functional change.
Fixes: 18bcf5a0 ("Restore local kernel "prog" filtering")
Sponsored by: Dell Inc.
release: Add images for almost all packages, with & without toolchain
Contains almost everything of use in a container except:
- *lib32
- *dev
- *dbg
- *src
- anything expecting hardware such as device config tools
Differential Revision: https://reviews.freebsd.org/D51471
Reviewed by: dfr, emaste
Approved by: cperciva
MFC after: 1 day
Sponsored by: SkunkWerks, GmbH
packages: Move kernel-man to the minimal set
Currently this is in the "kernels" set, which doesn't make sense
because it's not a kernel.
Move it to the "minimal" set, on the basis that minimal already includes
a bunch of manpages, and a user who installs with minimal expects that
e.g. "man ix" will work.
MFC after: 3 seconds
Reported by: des
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D52560
packages: Mark all sets as vital
At least "minimal" must be vital, because it's required for a functional
system. For example, we might create new packages in the future which
are required for the multi-user system and are part of the minimal set,
so it's important that users don't remove set-minimal to ensure they get
those new packages.
For the other sets, it's debatable whether they should be vital or not,
but let's start out with the assumption that if the user installed a
set, they should have to have to explicit request it be removed. This
means if, for example, they install set-devel, then remove lldb, pkg
won't remove set-devel and cause the next "pkg autoremove" to remove
everything else that was in set-devel.
We might want to adjust this later (or possibly adjust the behaviour
of pkg(8) itself) based on user feedback.
While here, fix a typo in the description of the devel set.
[5 lines not shown]
packages: Add minimal-jail set
This is minimal, but without bootloader, hardware and networking support
that's typically not required in jails.
This requires extending the 'set' annotation to be a comma-separated
list, so that packages can be in multiple sets.
MFC after: 3 seconds
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D52591
nuageinit: Add doas support
* Set mode of etc directory to 0755.
* Use user.localbase sysctl instead of /usr/local.
* Add test case for doas.
* Set ${LOCALBASE} instead of /usr/local in nuageinit(7) man page.
Reviewed by: bapt@
Approved by: bapt@
Differential Revision: https://reviews.freebsd.org/D52437
(cherry picked from commit 9a829e865697e623a046800545be7781a117125e)
nuageinit: Allow the use of network parameters from network-config
To better comply with the cloud-init specification, we need to
support the configuration of network-related parameters from
the network-config file, which is common in most deployments.
Reviewed by: bapt@
Approved by: bapt@
Differential Revision: https://reviews.freebsd.org/D52419
(cherry picked from commit 95230b248f6412c2d1c416c1e9795c3192cdf750)
nuageinit: Improvements for nuageinit
- Fix 'pkg update' usage:
- The function 'nuage:run_pkg_cmd(...)' adds the flag '-y', which
does not make sense with some commands such as 'pkg update',
causing an error when updating the repository catalogs.
- Fix typo 'ssh-authorized-keys -> ssh_authorized_keys' in
'nuageinit(7)' man page.
- Document 'ssh_authorized_keys' parameter.
- Use device configuration ID when no 'match' rule is specified:
- This is the default behavior of cloud-init when no match rule is
specified, so the device is configured anyway (even if it does not
exist). This greatly simplifies things, since in many cases
'if_vtnet(4)' is used, so there is no need to perform a comparison
with the MAC address.
- Document 'network' parameter:
- Add example to 'EXAMPLES' section.
- Set 'gateway[46]' only when 'addresses' is specified:
- To comply with the cloud-init specification, 'gateway4' and 'gateway6'
[28 lines not shown]
nuageinit: Add doas support
* Set mode of etc directory to 0755.
* Use user.localbase sysctl instead of /usr/local.
* Add test case for doas.
* Set ${LOCALBASE} instead of /usr/local in nuageinit(7) man page.
Reviewed by: bapt@
Approved by: bapt@
Differential Revision: https://reviews.freebsd.org/D52437
(cherry picked from commit 9a829e865697e623a046800545be7781a117125e)
nuageinit: Allow the use of network parameters from network-config
To better comply with the cloud-init specification, we need to
support the configuration of network-related parameters from
the network-config file, which is common in most deployments.
Reviewed by: bapt@
Approved by: bapt@
Differential Revision: https://reviews.freebsd.org/D52419
(cherry picked from commit 95230b248f6412c2d1c416c1e9795c3192cdf750)
witness: Record the first acquired file and line for recursable locks
and the last acquired file and line to witness object.
For recursable locks, unfortunately current implementation records only
the recurse count and the last acquired file and line, but does not
restore the previous acquired file and line on unlock. Hence it is
possible to report false acquired file and line, and that may mislead
developers and make the report by users a little harder to analyse.
Since subsequent recurse locks do not affect how witness order check,
record the first acquired file and line so that the logic is much clear.
Reported by: bz
Reviewed by: kib (previous version), markj
See also: https://lists.freebsd.org/archives/freebsd-current/2025-June/007944.html
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D52496
contrib/bc upgrade to version 7.1.0
This update fixes a few bugs:
- Improper response to double SIGINT with editline.
- Not letting libedit handle terminal size changes.
- A dc crash from improperly handling an error.
- A duplicate check for reference arrays.
- Build failures with GCC 15.
Merge commit '682da5a0fdb2c38ecc3951047a882471d62aa1d1'
(cherry picked from commit fdc4a7c8012b214986cfa2e2fb6d99731f004b1b)
usr.bin/gh-bc: fix invocation of test scripts
The “all.sh” script in version 7.1.0 accepts one less parameter for
selecting the tests to be run.
(cherry picked from commit 1a6ffcb27ddcfdc66c2ea58d6789b3d527f68ba9)
[6 lines not shown]