HardenedBSD/src 9902c39include uchar.h, lib/clang/libllvm Makefile

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+89-0share/man/man3/unreachable.3
+26-17sys/dev/acpica/acpi.c
+1-29sys/dev/sound/pcm/mixer.c
+0-10lib/clang/libllvm/Makefile
+6-0sys/sys/stdatomic.h
+5-0include/uchar.h
+127-567 files not shown
+140-6613 files

HardenedBSD/src 26158e1sys/dev/sound/pci via8233.c envy24ht.c, sys/dev/sound/pcm mixer.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+51-54sys/dev/sound/pcm/mixer.c
+50-51sys/dev/sound/pci/via8233.c
+34-35sys/dev/sound/pci/envy24ht.c
+34-34sys/dev/sound/pci/envy24.c
+29-28sys/dev/sound/pci/emu10k1.c
+27-27sys/dev/sound/pci/cmi.c
+225-22934 files not shown
+589-65240 files

HardenedBSD/ports bf3e0a0misc/gitlogue distinfo Makefile.crates, misc/gitlogue/files patch-Cargo.lock

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+473-0misc/gitlogue/distinfo
+235-0misc/gitlogue/Makefile.crates
+26-0misc/gitlogue/files/patch-Cargo.lock
+24-0misc/gitlogue/Makefile
+24-0multimedia/ringrtc/files/patch-src__webrtc_src_rtc__base_cpu__info.cc
+20-0net/td-system-tools/pkg-plist
+802-040 files not shown
+932-10546 files

HardenedBSD/src 9978553lib/clang/libllvm Makefile

Remove TableGen objects from libllvm, fixing bad option registrations

In 986e05bc2a18 I revamped the build for all the llvm subprojects. Among
others I added objects under contrib/llvm-project/llvm/lib/TableGen, but
I missed that upstream explicitly removes these when building the shared
llvm library:

https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm/tools/llvm-shlib/CMakeLists.txt#L23

In 2e47f35be5dc I converted libllvm to a shared library. From that point
onwards, some of the global command line option objects registered in
llvm/lib/TableGen/Main.cpp conflict with similar objects in tools like
llvm-cov, llvm-as, etc.

This results in an error when running these tools: "CommandLine Error:
Option 'o' registered more than once!", followed by a fatal exit.

Fix this by removing the TableGen objects from libllvm. Note that we no
longer install any of the tblgen binaries, these are only used during

    [4 lines not shown]
DeltaFile
+0-10lib/clang/libllvm/Makefile
+0-101 files

HardenedBSD/ports 07a9b8fdevel/qlementine distinfo Makefile, games/solarus-quest-editor Makefile

devel/qlementine: Update to 1.4.0

- Bump games/solarus-quest-editor PORTREVISION

Changelogs:
https://github.com/oclero/qlementine/releases/tag/v1.4.0
https://github.com/oclero/qlementine/releases/tag/v1.3.0
DeltaFile
+3-3devel/qlementine/distinfo
+1-2devel/qlementine/Makefile
+2-1devel/qlementine/pkg-plist
+1-1games/solarus-quest-editor/Makefile
+7-74 files

HardenedBSD/ports 5760645sysutils/eksctl distinfo Makefile

sysutils/eksctl: Update to 0.219.0

Changelogs:
https://github.com/eksctl-io/eksctl/releases/tag/v0.219.0
https://github.com/eksctl-io/eksctl/releases/tag/v0.218.0
DeltaFile
+5-5sysutils/eksctl/distinfo
+1-1sysutils/eksctl/Makefile
+6-62 files

HardenedBSD/ports 5ab18d3sysutils/kops distinfo Makefile

sysutils/kops: Update to 1.34.1

Changelog:
https://github.com/kubernetes/kops/releases/tag/v1.34.1
DeltaFile
+3-3sysutils/kops/distinfo
+1-2sysutils/kops/Makefile
+4-52 files

HardenedBSD/ports a4c182cgraphics/pqiv distinfo Makefile

graphics/pqiv: Update to 2.13.3

- Drop patches now that they are part of the release

Changelog:
https://github.com/phillipberndt/pqiv/releases/tag/2.13.3
DeltaFile
+3-7graphics/pqiv/distinfo
+1-6graphics/pqiv/Makefile
+4-132 files

HardenedBSD/ports abc495anet/td-system-tools pkg-plist Makefile

net/td-system-tools: Update 2.1.9 => 2.2.1

Changelog:
https://github.com/dreibh/system-tools/blob/td-system-tools-2.2.1/ChangeLog

Commit log:
https://github.com/dreibh/system-tools/compare/td-system-tools-2.1.9...td-system-tools-2.2.1

PR:     291243
DeltaFile
+20-0net/td-system-tools/pkg-plist
+3-3net/td-system-tools/Makefile
+3-3net/td-system-tools/distinfo
+26-63 files

HardenedBSD/ports 0308906misc/gitlogue distinfo Makefile.crates, misc/gitlogue/files patch-Cargo.lock patch-Cargo.toml

Add misc/gitlogue: Watch your git commit history in a cinematic view

Gitlogue is a cinematic Git commit replay tool for the terminal
that can turn your Git history into a living, animated story.
Watch commits unfold with realistic typing animations, syntax
highlighting, and file tree transitions, transforming code
changes into a visual experience.

WWW: https://github.com/unhappychoice/gitlogue

PR:             291254
Reported by:    Yusuf Yaman <nxjoseph at protonmail.com> (new maintainer)
DeltaFile
+473-0misc/gitlogue/distinfo
+235-0misc/gitlogue/Makefile.crates
+26-0misc/gitlogue/files/patch-Cargo.lock
+24-0misc/gitlogue/Makefile
+11-0misc/gitlogue/files/patch-Cargo.toml
+6-0misc/gitlogue/pkg-descr
+775-01 files not shown
+776-07 files

HardenedBSD/ports 65a39dbdevel/arcanist-lib/files patch-src_utils_utf8.php

devel/arcanist-lib: Add missing patch file
DeltaFile
+17-0devel/arcanist-lib/files/patch-src_utils_utf8.php
+17-01 files

HardenedBSD/ports 74e8a80devel/arcanist-lib Makefile, devel/arcanist-lib/files extra-patch-src_utils_utf8.php

devel/arcanist-lib: Cleanup latest patch

Use code from devel/phorgeit-arcanist. Should work on
all supported PHP versions.
DeltaFile
+0-12devel/arcanist-lib/files/extra-patch-src_utils_utf8.php
+2-6devel/arcanist-lib/Makefile
+2-182 files

HardenedBSD/src b381d09include stddef.h, share/man/man3 unreachable.3 assert.3

stddef.h: add unreachable() for C23 compliance

unreachable() is a hint to the compiler that it is unreachable.
Add a new man page unreachable(3) to document this macro.

Reviewed by:    imp
Approved by:    markj (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D53967
DeltaFile
+89-0share/man/man3/unreachable.3
+3-2share/man/man3/assert.3
+4-0include/stddef.h
+2-1share/man/man3/Makefile
+98-34 files

HardenedBSD/src 04d000acontrib/jemalloc/include/jemalloc/internal util.h

jemalloc: avoid clash with C23 unreachable() macro

Summary: This avoids a clash with the new macro in <stddef.h>
introduced in D53967

Reviewed by:    imp
Approved by:    markj (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D53968
DeltaFile
+3-0contrib/jemalloc/include/jemalloc/internal/util.h
+3-01 files

HardenedBSD/src f0e5411include uchar.h, sys/sys stdatomic.h

uchar.h: add char8_t

A type similar to char16 and char32_t, for compliance with C23.
The related type atomic_char8_t is added to stdatomic.h.
As char8_t is always unsigned char, I've skipped adding __char8_t.
This can be added, too, if desired.

Reviewed by:    imp
Approved by:    markj (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D53952
DeltaFile
+6-0sys/sys/stdatomic.h
+5-0include/uchar.h
+11-02 files

HardenedBSD/src 5da388cinclude time.h

time.h: add timegm() to the C23 namespace

This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856.

Reviewed by:    imp
Approved by:    markj (mentor)
See also:       D47856
Fixes:          59677aecb67bbedcfa2ee5d7d2b189193cdc4af7
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D53951
DeltaFile
+1-1include/time.h
+1-11 files

HardenedBSD/ports 5df1ceamultimedia/ringrtc/files patch-src__webrtc_src_rtc__base_cpu__info.cc

multimedia/ringrtc: Fix build on aarch64
DeltaFile
+24-0multimedia/ringrtc/files/patch-src__webrtc_src_rtc__base_cpu__info.cc
+24-01 files

HardenedBSD/src e966eb4sys/dev/acpica acpi.c

acpi: Fix typos in sysctl descriptions

Reviewed by:    thj, emaste
Approved by:    thj
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-2sys/dev/acpica/acpi.c
+2-21 files

HardenedBSD/src eeaa865sys/dev/acpica acpi.c

acpi: Fix setting sleep state sysctls to NONE

This restores the functionality as it was pre-97d152698f48.

A stopgap was committed by glebius@ in 34dfccc64f47 ("acpi: in
acpi_stype_sysctl() use same logic as in acpi_sleep_state_sysctl()").

PR:             290651
Reviewed by:    thj, emaste
Approved by:    thj
Fixes:  97d152698f48 ("acpi: Use sleep types defined in sys/power.h")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53909
DeltaFile
+24-15sys/dev/acpica/acpi.c
+24-151 files

HardenedBSD/src e5d50a6sys/dev/sound/pci es137x.c, sys/dev/sound/pcm mixer.c mixer.h

sound: Retire snd_mixer->busy

Does not really serve any real purpose. It gets set on mixer_open() and
unset on mixer_close(), so it essentially tells us whether the mixer is
open or not.

mixer_close() uses it to return EBADF in case the mixer is not busied,
as in, the mixer has not been open()'d yet. This is redundant. The other
place where this is used is to decide whether to serve an ioctl issued
by userland, in which case it won't if, again, the mixer has not been
busied (i.e., opened). Again, seems redundant.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D53859
DeltaFile
+1-29sys/dev/sound/pcm/mixer.c
+0-4sys/dev/sound/pci/es137x.c
+0-2sys/dev/sound/pcm/mixer.h
+1-353 files

HardenedBSD/src 7587270share/examples/sound oss.h

sound examples: Fix buffer mapping/allocation

The buffer in struct config should be allocated or mmap'ed. The code
without this patch allocates the buffer unconditionally, even for mmap
configs.

MFC after:      1 week
Reviewed by:    christos
Differential Revision:  https://reviews.freebsd.org/D53939

(cherry picked from commit ebf1d98d60725feccd726ef8e4fa518661f9eae0)
DeltaFile
+18-3share/examples/sound/oss.h
+18-31 files

HardenedBSD/src b1e9512sys/dev/sound/midi midi.c

sound: Fix revents in midi_poll()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    christos
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1887

(cherry picked from commit 8f8b8e4af91d4e158caf6ba4b728482311bfc7c3)
DeltaFile
+9-11sys/dev/sound/midi/midi.c
+9-111 files

HardenedBSD/src 47bb49bsys/dev/sound/pci via8233.c envy24ht.c, sys/dev/sound/pcm mixer.c

sound: Retire snd_mtx* wrappers

Do not create mutexes with snd_mtxcreate(). It doesn't provide any
value, plus it first allocates the mutex with malloc(9). Allocate
mutexes in the stack and use mtx_* functions directly instead of the
snd_mtx* wrappers.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D53855

(cherry picked from commit 9d18115ca0ab0ef3f34173d4e2bdabec916d0b60)
(cherry picked from commit 120f8a4c2ae8a011827d83b098ecf70c791f794b)
DeltaFile
+51-54sys/dev/sound/pcm/mixer.c
+50-51sys/dev/sound/pci/via8233.c
+34-35sys/dev/sound/pci/envy24ht.c
+34-34sys/dev/sound/pci/envy24.c
+29-28sys/dev/sound/pci/emu10k1.c
+27-27sys/dev/sound/pci/cmi.c
+225-22931 files not shown
+537-58937 files

HardenedBSD/src 48765e9sys/dev/sound/pcm dsp.c

sound: Simplify logic in dsp_io_ops()

Use CHN_LOCK()/CHN_UNLOCK() directly, instead of
dsp_lock_chans()/dsp_unlock_chans(). These functions are useful when we
want to potentially lock both channels. Here we know which channel we
are locking, so we can just lock it directly. This way we get rid of the
prio variable as well.

Related to runpid again, there is no reason to assign it when
CHN_F_RUNNING is not set. channel->pid (as well as channel->comm) is
always assigned in dsp_chn_alloc().

Get rid of runpid. I do not see how we can end up with channel->pid
(td->td_proc->p_pid) not matching buf->uio_td->td_proc->p_pid.

Also improve errno values.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week

    [4 lines not shown]
DeltaFile
+10-22sys/dev/sound/pcm/dsp.c
+10-221 files

HardenedBSD/src efb513fsys/dev/sound/midi midi.c mpu401.c

sound: Clean up midi/ includes

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53841

(cherry picked from commit 4e8eb778803a8bffd0faa507ae2662725363cae5)
DeltaFile
+11-16sys/dev/sound/midi/midi.c
+2-9sys/dev/sound/midi/mpu401.c
+13-252 files

HardenedBSD/src 839da86sys/dev/sound/pcm sound.h sound.c

sound: Merge PCM_ALIVE() with PCM_REGISTERED()

PCM_ALIVE() is used only in pcm_unregister(), but it does not hurt to
use PCM_REGISTERED(), which uses PCM_ALIVE() internally. In fact, it's
more robust this way.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week

(cherry picked from commit 3107b952f534813846e4f58afdb57624a81618d8)
DeltaFile
+2-2sys/dev/sound/pcm/sound.h
+1-1sys/dev/sound/pcm/sound.c
+3-32 files

HardenedBSD/ports 65a3f08science/orthanc-mysql distinfo Makefile, science/orthanc-mysql/files patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake

science/orthanc-mysql: Bump orthanc version to 1.12.10
DeltaFile
+3-3science/orthanc-mysql/distinfo
+2-2science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake
+2-1science/orthanc-mysql/Makefile
+7-63 files

HardenedBSD/ports 4559017science/orthanc-postgresql Makefile distinfo

science/orthanc-postgresql: Bump orthanc version to 1.12.10
DeltaFile
+3-3science/orthanc-postgresql/Makefile
+3-3science/orthanc-postgresql/distinfo
+6-62 files

HardenedBSD/ports d9a9194science/orthanc distinfo Makefile

science/orthanc: Update to 1.12.10

Numerous enhancements and fixes
Changes: https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.10/NEWS

Reported by:    portscout
DeltaFile
+3-3science/orthanc/distinfo
+2-1science/orthanc/Makefile
+1-0science/orthanc/version.mk
+1-0science/orthanc/pkg-plist
+7-44 files

HardenedBSD/ports f83215fscience/orthanc-dicomweb distinfo Makefile

science/orthanc-dicomweb: Bump orthanc version to 1.12.10
DeltaFile
+3-3science/orthanc-dicomweb/distinfo
+3-1science/orthanc-dicomweb/Makefile
+6-42 files