[ADT] Group public functions in DenseMap.h (NFC) (#168239)
This patch groups public functions, including the constructors, the
destructor, and the copy/move assignment operators.
VPN: IPsec: Status Overview - hide phase 2 output based on phase 1 status instead of the row count for phase 2. closes https://github.com/opnsense/core/issues/9397
This likely has been in here for a very long time, but when filtering phase 2 entries, the grid can hide to never being shown again. To solve this without too much glue, look at the connected status of the phase 1 in order to show the children.
vmimage.subr: Enable FreeBSD-base repo if pkgbase
When creating a VM image using pkgbase, create a configuration file in
/usr/local/etc/pkg/repos/FreeBSD.conf which enables the FreeBSD-base
repository. (This repository is defined in /etc/pkg/FreeBSD.conf as
being disabled by default.)
Reported by: Mark Millard
MFC after: immediately (needed for 15.0-RC1)
bsdinstall: Enable FreeBSD-base repo when pkgbase
When performing a pkgbase install, create a configuration file in
/usr/local/etc/pkg/repos/FreeBSD.conf which enables the FreeBSD-base
repository. (This repository is defined in /etc/pkg/FreeBSD.conf as
being disabled by default.)
Reported by: Mark Millard
Reviewed by: markj
MFC after: immediately (needed for 15.0-RC1)
Differential Revision: https://reviews.freebsd.org/D53777
backend: move Safe to Shell class
Migrate the one user in the Monit migration to shell_safe() because
that is the most appropriate here (no error code needed, just output).
[LV] Use VPlan pattern matching in adjustRecipesForReductions (NFC)
Replace the assert checking if CurrentLinkI is a CmpInst with a pattern
matching check in the if condition. This uses VPlan-level pattern matching
instead of inspecting the underlying instruction type.
vmimage.subr: Log pkg/local.sqlite if pkgbase
We were doing this in vm_extra_install_packages but VM images without
any extra packages installed would not get this installed. This
results in a pkgbase system which thinks it doesn't have any packages
installed (even though all the files are right there).
Add a "metalog_add_data ./var/db/pkg/local.sqlite" call to the pkgbase
install code path, and make the call from vm_extra_install_packages
conditional on !PKGBASE.
Reported by: Michael Dexter
MFC after: immediately (needed for 15.0-RC1)
backend: move exec_safe, pass_safe and shell_safe to a class #9325
Do a clean cut to a class for these functions first. We need them in the
MVC code and this is a good opportunity to try and add them to the legacy
code via the wrappers.
The others should follow but let's settle on better names first perhaps.
audio/sndio: initial import of package
Import sndio-1.0.1 from wip.
Initially ported to NetBSD by Kamil Rytarowski.
Maintained by @kikadf in wip in more recent years,
with minor modifications added by @vins.
Sndio is a small audio and MIDI framework part of the OpenBSD project. It
provides an lightweight audio & MIDI server and a fully documented user-space
API to access either the server or directly the hardware in a uniform way.
Sndio is designed to work for desktop applications, but pays special attention
to synchronization mechanisms and reliability required by music applications.
Reliability through simplicity are part of the project goals.
pf: handle divert packets
In a divert setup pf_test_state() may return PF_PASS, but not set the state
pointer. We didn't handle that, and as a result crashed immediately afterwards
trying to dereference that NULL state pointer.
Add a test case to provoke the problem.
PR: 260867
MFC after: 2 weeks
Submitted by: Phil Budne <phil.budne at gmail.com>
Sponsored by: Rubicon Communications, LLC ("Netgate")
sndio: more fixes
* Standardise configure options across target platforms, to avoid PLIST
inconsistencies.
* Use /var/run/sndio as home directory for the _sndio users, as stated
in the official docs.
* Fix OSS patch for NetBSD.
* USe libbsd on Linux.
* Improve rc.d script:
- create /var/run/sndio directory if non existent.
- use daemonize to put sndio in background with debug option
enabled. Redirect output to a log file inside sndio's directory.
Package tested and working on NetBSD 10.1, with AUDIODEVICE set to
`rsnd/0' (accessing /dev/audio directly through libsndio).
I also built SoX with sunaudio disabled and sndio support turned on.
Playing a .wav file works fine when AUDIODEVICE points to rsnd/0.
[SelectionDAG] Fix AArch64 machine verifier bug when expanding LOOP_DEPENDENCE_MASK (#168221)
TargetConstant nodes don't match TableGen ImmLeaf patterns during
instruction selection. When this zero constant flows into the AArch64
CCMP formation code, the machine verifier hits an assertion in expensive
checks.
Fixes: #168227