libc: Improve POSIX conformance of dirfd()
POSIX states that dirfd() should set errno to EINVAL and return -1 if
dirp does not refer to a valid directory stream. Our interpretation is
that this applies if dirp is null or the file descriptor associated
with it is negative.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D55025
native-xtools: use static LLVM libraries
Set the MK_LLVM_LINK_STATIC_LIBRARIES knob to "yes" when building the
native-xtools target. This reverts to the behaviour prior to
2e47f35be5dc.
This avoids a build failure that occurs otherwise, where compilation
fails looking for a libllvmprivate.so that was not built.
It is unclear if this addresses the issue in all instances---some
replies in the PRs indicate otherwise. Still, some report success, and
in my own testing this fixed creation of a cross-compiled poudriere
jail. Commit this while we continue to investigate...
PR: 286710, 291409
Tested by: marck, rdunkle at smallcatbrain.com
Reviewed by: emaste
MFC after: 3 days
Fixes: 2e47f35be5dc ("Convert libllvm, libclang and liblldb into private shared libraries").
[4 lines not shown]
native-xtools: use static LLVM libraries
Set the MK_LLVM_LINK_STATIC_LIBRARIES knob to "yes" when building the
native-xtools target. This reverts to the behaviour prior to
2e47f35be5dc.
This avoids a build failure that occurs otherwise, where compilation
fails looking for a libllvmprivate.so that was not built.
It is unclear if this addresses the issue in all instances---some
replies in the PRs indicate otherwise. Still, some report success, and
in my own testing this fixed creation of a cross-compiled poudriere
jail. Commit this while we continue to investigate...
PR: 286710, 291409
Tested by: marck, rdunkle at smallcatbrain.com
Reviewed by: emaste
MFC after: 3 days
Fixes: 2e47f35be5dc ("Convert libllvm, libclang and liblldb into private shared libraries").
[4 lines not shown]
[LifetimeSafety] Track STL algorithm functions that return lifetimebound iterators (#179227)
Enhanced the `shouldTrackFirstArgument` function in
`LifetimeAnnotations.cpp` to recognize standard library algorithm
functions like `find`, `find_if`, `search`, etc. that return iterators
whose lifetimes are bound to their container arguments. This allows the
lifetime checker to detect when these iterators outlive their
containers.
The implementation now:
- Checks for standard library algorithm functions that take at least two
parameters
- Identifies specific functions by name (find, find_if, find_if_not,
etc.)
- Verifies the return type is a GSL pointer type
[Offload] Only issue a warning for building `offload` on the GPU and return (#179240)
Summary:
Right now this will fail because the GPU architectures will attempt to
build all of `offload` with the GPU, which obviously won't work. In the
future we will proably have some utility library that we will route
through this, but for now just silently return. This is useful because
the documentation states to use this, but it doesn't work right now.
```
-DLLVM_ENABLE_RUNTIMES=offload;openmp
-DLLVM_RUNTIME_TARGETS=default;amdgcn-amd-amdhsa
```
This PR makes this work.
sysutils/ruby-listen: update to 3.10.0
3.10.0 (2026-01-16)
What's Changed
* Rubocop workflow with GitHub actions by @AlexB52 in #573
* Fix the Rubocop offence by @y-yagi in #588
* Add logger gem as a runtime dependency by @y-yagi in #587
* Remove conditions from gem declarations in Gemfile by @larskanis in #584
* CI against Ruby 3.4 by @y-yagi in #590
* Remove link to Travis CI by @y-yagi in #593
* Use Naming/PredicatePrefix instead of deprecated Naming/PredicateName cop
by @y-yagi in #592
* Remove unused require by @y-yagi in #594
* Mention the relation with fs.inotify.max_user_watches and the memory
allocation by @y-yagi in #595
* CI against Ruby 4.0 by @y-yagi in #596
[4 lines not shown]
security/ruby-simple_oauth: update to 0.4.0
0.4.0 (2026-02-01)
Added
* Extensible signature method registry allowing custom signature methods to
be registered at runtime
* Support for RSA-SHA256 and HMAC-SHA256 signature methods
* OAuth Request Body Hash support (oauth_body_hash parameter) for signing
requests with non-form-encoded bodies
* Support for parsing OAuth credentials from POST body via
Header.parse_form_body
* Support for realm parameter in OAuth Authorization header
Fixed
* Avoid symbolizing untrusted input in parse methods for security
* Refactored Header.parse for improved robustness using StringScanner
[6 lines not shown]
mail/ruby-mime-types-data: update to 3.2026.0127
3.2026.0127 (2026-01-27)
* Updated registry entries from the IANA media registry and provisional
media registry and the Apache Tika media registry as of the release date.
[DebugInfo] Convert format() to formatv() in DWARFVerifier (#179194)
Replace all of calls of `format()` with `formatv()` in
`DWARFVerifier.cpp`. Also use `formatv()` when strings were concatenated
with `+` or streamed with `<<`.
See
[llvm/include/llvm/Support/FormatProviders.h](https://github.com/llvm/llvm-project/blob/2f3935bcee6eaf7df8c85a21b7c0fbef967316b5/llvm/include/llvm/Support/FormatProviders.h#L96-L117)
for the hexadecimal grammar. e.g. `x+` to print the `0x` prefix or `x-`
to not print it.
My motivation is to:
1. make it easier to read the format strings and
2. have less `formatv()` calls when it was used on arguments to the
format string before.
Relates to #35980
devel/ruby-pathname2: update to 2.0.0
2.0.0 (2025-11-29)
* Pathname has been renamed Pathname2, so it's no longer competing for the
same constant name as the stdlib vedrsion. Recent versions of Ruby simply
weren't allowing it, and this is probably the better way to go anyway.
* Added addressable as a dependency since the stdlib uri library is a
constant source of warnings.