Address review
* Use CallError to explicitly state that symlinks aren't
permitted in paths.
(cherry picked from commit 00371e5d9292f1c36d9479ee5f15107d56c45987)
protect some more against TOCTOU in fs plugins/utils
This commit adds a few more usages of RESOLVE_NO_SYMLINKS and
fixes a TOCTOU concern in attrs utils.
(cherry picked from commit d0730f443ff88d9f612fe692a1ce70036747ede7)
NAS-140151 / 27.0.0-BETA.1 / protect some more against symlink races (#18379)
This commit adds a few more usages of RESOLVE_NO_SYMLINKS and fixes a
TOCTOU concern in attrs utils.
packages: Don't create empty packages
If a package plist only contains directories, but no files, do not
create the package.
This fixes an issue where setting "package=foo" in mtree causes the
"foo" package to always be created, even if nothing else installs in
that package, because the mtree entry is always added to the plist.
This most often happens:
* With architecture-specific directories, because mtree can't install
a directory conditionally based on architecture, and
* With packages that are completely empty when a particular src.conf
knob is disabled, because mtree will still create the directories.
Although it's theoretically possible that we might want to create a
package that only contains directories, there are no such packages
[8 lines not shown]
Makefile.inc1: Remove svn support
We don't need this, and we don't use this. It's left over from the svn
days. We stopped supporting svn as a project entirely when 12.x went
EOL. And VCS_REVSION isn't in any current ucl file or anywhere else in
the tree.
Sponsored by: Netflix
Reviewed by : kevans, brd
Differential Revision: https://reviews.freebsd.org/D52912
(cherry picked from commit 28b858f5059c8b25fa08be494699997000fce58c)
Makefile.inc1: Add back missing if
The .if defined(_MKSHOWCONFIG) covered an unusually large area, so it
should have not been removed in the last commit. I must have tested in
the wrong tree before pushing...
[4 lines not shown]
[clang-tidy] Fix spurious errors from builtin macros in modernize-use-trailing-return-type (#184022)
## Summary
I hit the same issue as in #168360 when upgrading to LLVM 21 with
clang-tidy reporting cryptic:
`error: missing '(' after '__has_feature'`
Further investigation confirmed that the issue is localized to
`modernize-use-trailing-return-type` and only happens with C++20+ and llvm
21 system headers (where `__has_feature` started to be used by libc++).
Initial non-localized repro had this error firing 7k+ on LLVM 21, but
when I switched to HEAD the incidence dropped to just 5 'check()' calls
firing. The drop in incidence is likely to be related to
https://github.com/llvm/llvm-project/pull/151035 as there are no other
plausibly relevant changes.
However, as I was still hitting the issue with HEAD, this helped develop
[20 lines not shown]
Fix packed being ignored on ms_struct bitfields (#182792)
For ms_struct structs on Itanium layout targets, the packed attribute is
ignored on bit-fields (2014 commit
76e1818a2b1248579557de2927c135c322577c82), mismatching the GCC behavior.
Remove the `!IsMsStruct` guard to fix it.
NAS-139425 / 26.0.0-BETA.2 / Add support for different cache types to cache plugin (by anodos325) (#18443)
This commit adds ability to specify that cache entries
should be clustered. As a side-effect of common library
for clustered and local caches, the normal cache will
also persist across middleware restarts.
In basic benchmarking there wasn't that much perf difference
between implementations and so this reduces overall complexity
CLUSTERED:
* Persists across reboots
* Persists across middleware restarts
* Does not persist across upgrades
VOLATILE:
* Persists across middleware restarts
[4 lines not shown]
Add persistent option to cache plugin
This commit adds ability to specify that cache entries
should be clustered. As a side-effect of common library
for clustered and local caches, the normal cache will
also persist across middleware restarts.
In basic benchmarking there wasn't that much perf difference
between implementations and so this reduces overall complexity
CLUSTERED:
* Persists across reboots
* Persists across middleware restarts
* Does not persist across upgrades
VOLATILE:
* Persists across middleware restarts
(cherry picked from commit 189532e12d56bb6d383e7df11f6a25210f191d1e)
NAS-139425 / 27.0.0-BETA.1 / Add support for different cache types to cache plugin (#18081)
This commit adds ability to specify that cache entries
should be clustered. As a side-effect of common library
for clustered and local caches, the normal cache will
also persist across middleware restarts.
In basic benchmarking there wasn't that much perf difference
between implementations and so this reduces overall complexity
CLUSTERED:
* Persists across reboots
* Persists across middleware restarts
* Does not persist across upgrades
VOLATILE:
* Persists across middleware restarts
graphics/zxing-cpp: Update to 3.0.2
* Packaged by wiz@ in pkgsrc-wip/zxing-cpp.
Changelog:
3.0.2:
Patch release
This is a patch release, fixing three issues:
Workaround for missing <format> C++20 header in GCC 11 and GCC 12
This is required to make Homebrew and older distros happy.
Zint Header Detection Fix
Fixed an issue that caused a <zint.h> not found error when building the library with -DZXING_USE_BUNDLED_ZINT=OFF and libzint was installed in a non-standard install prefix (e.g., /opt/homebrew).
Typo Fix in ReaderOptions API
Fixed a typo in the newly added ReaderOptions::validateOptionalCheckSum, now correctly named validateOptionalChecksum. If anyone is angry at me for breaking their brand new code, let me know and I’ll consider adding a compatibility symbol with the "one week old" name.
[62 lines not shown]
x11/nvidia-driver, x11/nvidia-kmod, x11/linux-nvidia-libs, graphics/nvidia-drm*-kmod, x11/nvidia-settings, x11/nvidia-xconfig: Update to 580.142
Update to latest Production Branch of drivers 580.142:
https://www.nvidia.com/en-us/drivers/details/265444/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/265443/
Add graphics/egl-wayland2 as a dependency for non-legacy branches.
This library can be installed alongside the previous egl-wayland
implementation (graphics/egl-wayland) and has a higher selection
priority by default, but doesn't support legacy branches.
PR: 293738
Differential Revision: https://reviews.freebsd.org/D55813