net/ucx: fix build on FreeBSD 13.5 by defining s6_addr32 shim
FreeBSD's struct in6_addr does not provide s6_addr32 directly. Add a small
shim in src/uct/ib/base/ib_device.c to map s6_addr32 to the FreeBSD layout
(__u6_addr.__u6_addr32) when s6_addr32 is not already available.
PR: 293429
Tested by: kib
MFH: 2026Q1
(cherry picked from commit 63a68d9d459a0ed27f7b1dadaee6cf4cdbe8e2af)
misc/onnxruntime: fix build on armv7 and aarch64
A linux-only structure member of the cpuinfo.h API is used to determine
CPU affinity on some architectures. Use the fallback on FreeBSD, as on
platforms that do not support cpuinfo.h at all.
See also: https://github.com/microsoft/onnxruntime/issues/23181
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
(cherry picked from commit d8dc35987b95f29185aa53aeb9ddd72020e6b5ff)
net-mgmt/cacti88-spine: fix build
net-snmp-config --cflags returns some bogus cflags, including some
dreaded -Werror flags (?!), preventing the build. Filter those out
as a stop gap measure.
PR: 293905
MFH: 2026Q1
Approved by: portmgr (build fix blanket)
Sponsored by: Raptor Computing Systems, LLC
(cherry picked from commit fecd9038739e721fe150b4063f40c3cbb4fe9847)
biology/iolib: fix build on armv7
This port tries to use NEON if __ARM_NEON is defined. Unfortunately it
now requires a bunch of intrinsics available on AArch64 only, breaking
the armv7 build. Fix the build by disabling NEON on armv7.
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
misc/onnxruntime: fix build on armv7 and aarch64
A linux-only structure member of the cpuinfo.h API is used to determine
CPU affinity on some architectures. Use the fallback on FreeBSD, as on
platforms that do not support cpuinfo.h at all.
See also: https://github.com/microsoft/onnxruntime/issues/23181
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
textproc/sonic: Make tokenizer features optional via OPTIONS, adopt port
This patch makes the Japanese and Chinese word segmentation features
optional via FreeBSD OPTIONS helpers, and adopts the port.
Currently the port unconditionally downloads a ~100MB UniDic Japanese
dictionary (unidic-mecab-2.1.2_src.zip) for every build, regardless of
whether the user needs Japanese tokenization. Upstream removed
tokenizer-japanese from default cargo features in v1.4.2 because it
10x'd the final binary size. This patch brings the port in line with
upstream's intent.
Changes:
- MAINTAINER changed to wadegimpbc at tuta.com
- Added CHINESE and JAPANESE OPTIONS using OPTIONS helpers
- OPTIONS_DEFAULT includes CHINESE (matching upstream's default features)
- UniDic download now conditional on JAPANESE option
- CARGO_FEATURES uses --no-default-features with allocator-jemalloc as
base, per cargo.mk convention (lines 23-26, 192, 197-200)
[3 lines not shown]
net/ucx: fix build on FreeBSD 13.5 by defining s6_addr32 shim
FreeBSD's struct in6_addr does not provide s6_addr32 directly. Add a small
shim in src/uct/ib/base/ib_device.c to map s6_addr32 to the FreeBSD layout
(__u6_addr.__u6_addr32) when s6_addr32 is not already available.
PR: 293429
Tested by: kib
MFH: 2026Q1
*/*: Go ports that use modernc.org/sqlite are for aarch64, amd64 only
The module modernc.org/sqlite (and dependencies such as modernc.org/libc)
are only available on aarch64 and amd64 FreeBSD. Other platforms are
not supported on FreeBSD right now.
Consistently mark ports using these with ONLY_FOR_ARCHS.
See also: b1e7e12428e07a6f36afdc91b21ae044f4c4db3c
Approved by: portmgr (build fix blanket)
textproc/krep: fix build on armv7
Add polyfill for the vmaxvq_u8() intrinsic only available on AArch64.
This should probably be upstreamed.
Approved by: portmgr (build fix blanket)
sysutils/runwhen: Patch compatibility with skalibs 2.14.5.1
The exec0() function has been replaced by a macro. If the <skalibs/exec.h>
header isn't included the old *exec*() function names become missing symbols.
PR: 293916
net-mgmt/cacti88-spine: fix build
net-snmp-config --cflags returns some bogus cflags, including some
dreaded -Werror flags (?!), preventing the build. Filter those out
as a stop gap measure.
PR: 293905
MFH: 2026Q1
Approved by: portmgr (build fix blanket)
Sponsored by: Raptor Computing Systems, LLC
[mlir][CFGToSCF] Fix crash when region contains unconvertible multi-successor op (#183935)
`transformCFGToSCF` would crash with a use-list assertion when it
encountered an op like `spirv.BranchConditional` that implements
`BranchOpInterface` (passing the existing precondition checks) but is
not handled by `createStructuredBranchRegionOp`. The algorithm mutated
the IR significantly before discovering the op was unsupported, leaving
it in a corrupt half-transformed state that triggered the assertion on
teardown.
Fix by adding `canConvertBranchOp` to `CFGToSCFInterface` (default:
accept all ops) and calling it inside `checkTransformationPreconditions`
for every block with more than one successor, before any IR
modifications are made. `ControlFlowToSCFTransformation` overrides the
method to accept only `cf.cond_br` and `cf.switch`.
Fixes #173566
Assisted-by: Claude Code
Fix implicit val for OpenMP >= 52 and don't rely on static variables in processLinear
- Emit val for implicit linear clause if openmp version >= 52
- Turn `typeAttrs` and `linearModAttrs` from static to local to
avoid confusions about cleaning stale value
[mlir][arith] Mark `arith.remsi` and `arith.remui` as conditionally speculatable (#188263)
Division by zero is undefined behavior, so these two ops cannot be pure.
This commit marks them as conditionally speculatable, similar to
`arith.divsi` and `arith.divui`.
deskutils/copyq: Update to 14.0.0
Shipping without audio a qca support for the time being.
Note for packagers (upstream release notes):
- This requires QCA and QtKeychain libraries, but it can be
disabled at build time with CMake options WITH_QCA_ENCRYPTION and
WITH_KEYCHAIN
- This requires miniaudio library, but it can be disabled
at build time with CMake option WITH_AUDIO.
ChangeLog: https://github.com/hluk/CopyQ/releases/tag/v14.0.0
[RISCV] Use uimm3/4/5/6_plus1 for (P)SATI instructions. (#186541)
The encoded immediate is the number of trailing 1s in the maximum value.
Mailing list discussion has a preference to print and parse this value
plus one. https://lists.riscv.org/g/tech-p-ext/message/910
With this patch, saturating to a signed 8-bit integer would be "sati a0,
a0, 8". Previously it was "sati a0, a0, 7".
This is reflected in version 0.20 of the adoc spec here
https://github.com/riscv/riscv-p-spec/pull/226. I have updated our
RISCVUsage.rst to point to the adoc version of the spec.
Reland "[llvm][ADT] Refactor PointerUnion to use PunnedPointer. NFC." (#188242)
This reverts commit 040b7e0a1deb and re-lands the PointerUnion
refactoring from #187950, with a fix for the 32-bit crash.
The bug was in doCast: it masked with
PointerLikeTypeTraits<To>::NumLowBitsAvailable to strip tag bits, but
the old PointerIntPair-based code masked with minLowBitsAvailable() (the
minimum across all union members). When a member type's PLTT over-claims
spare low bits, the new mask was too aggressive and cleared bits
belonging to a nested PointerUnion's tag.
Concretely, on 32-bit systems, Redeclarable::DeclLink nests
LazyGenerationalUpdatePtr (LGUP) whose PLTT claims 2 spare bits (Decl*
has alignas(8) = 3 bits, minus 1). But LGUP's inner PointerUnion<Decl*,
LazyData*> only has 1 spare bit on 32-bit (alignof(LazyData) = 4 gives
LazyData* only 2 low bits, tagShift = 1). Extracting LGUP from the outer
PointerUnion cleared bit 1 (the inner PU's type tag), corrupting the
discriminator and breaking redeclaration chains.
[8 lines not shown]
[CIR] Use per-element zero-initialization with array new (#187760)
There was a discrepancy between the CIR and classic codegen handling of
zero-initialization of constructed objects with array new. Classic
codegen performs zero-initialization on a per-element basis, while CIR
had been inserting a single zero-initialization of the entire array
before individually constructing the elements.
This change aligns the CIR behavior with the classic codegen behavior.
[PowerPC] Add target feature validation for builtins in Sema (#187371)
Adds early target feature checking for PowerPC builtins during semantic
analysis, catching missing target features before code generation and
providing better error messages to users.
Assisted by AI.
[CIR] Implement pointer type RTTI (#184011)
#163601
#163850
---------
Signed-off-by: Nikita B <n2h9z4 at gmail.com>
Co-authored-by: Nikita B <n2h9z4 at gmail.com>
Co-authored-by: Copilot <175728472+Copilot at users.noreply.github.com>