x11-wm/leftwm: Disable journald-log feature
The leftwm binary is built with default log feature using journald,
which is for Linux (using systemd), but for FreeBSD it needs to be
built with sys-log (or file-log) feature.
PR: 301488, 292926
MFH: 2026Q4
(cherry picked from commit ef516f80a9d38008ba142cd900ae505113ebacf5)
administration: glebius and pstef to bugmeister
This matches what we did in organization.dot in the src tree.
While here, document linimon as the lead matching other teams entries.
x11-wm/leftwm: Disable journald-log feature
The leftwm binary is built with default log feature using journald,
which is for Linux (using systemd), but for FreeBSD it needs to be
built with sys-log (or file-log) feature.
PR: 301488, 292926
MFH: 2026Q4
devel/llvm-apple: upgrade to 6.4.3 and disable i386
I got a warning from portscout that it doesn’t build i386. We don’t
need i386 support, so we can drop it.
Differential Revision: https://reviews.freebsd.org/D62420
graphics/shaderc: Unbreak after unflavorization of glslang
glslc and libshaderc_shared.so.1 try to link in libglslang.so and
libSPIRV.so, which are now installed along with their static parts. So
we need to add glslang to LIB_DEPENDS instead of BUILD_DEPENDS.
PR: 301481
Reported by: Bruno Damour <bruno at ruomad.net>, dim
Tested by: Bruno Damour <bruno at ruomad.net>, dim
Co-authored-by: Dimitry Andric <dim at FreeBSD.org>
rtld: keep FP and vector registers out of the C code on powerpc64
_rtld_bind_start only saves r3-r10 around the binder, but functions also
take arguments in f1-f13 and v2-v13. The binder doesn't clobber them
today only because clang happens to use vs0 for the copies and the
memset() it vectorizes there.
Build rtld without AltiVec, VSX and hard float so that it stays this
way, like amd64 and i386 do with SSE. glibc does the same for its
binder.
Reported by: llm-postcr
Approved by: jhibbits (blanket)
MFC after: 1 week
linuxulator/powerpc: don't single step signal handlers
linux_rt_sendsig() kept MSR[SE] set for the handler, so a PT_STEP that
delivers a signal stopped on the handler's first instruction. Since
7a7733ff01cc the saved MSR[SE] also comes back at rt_sigreturn(), and
the debugger got a second SIGTRAP after the handler.
Clear it for the handler, like sendsig() does. The saved context keeps
it, so the step ends after one instruction of the interrupted code.
Reported by: llm-postcr
Approved by: jhibbits (blanket)
powerpc: don't single step a thread created while stepping
cpu_copy_thread() copies the trap frame of the thread that creates the
new one, MSR[SE] included. thr_new(2) doesn't care, cpu_set_upcall()
builds a new MSR, but a Linux clone(CLONE_THREAD) keeps the copy. The
new thread then takes a trace trap on its first instruction: the
debugger gets a SIGTRAP from a thread it never stepped, and if it has
detached by then, the process dies.
Clear it there too, like cpu_fork() does.
Reported by: llm-postcr
Approved by: jhibbits (blanket)
rtld: add unwind info to the powerpc64 trampolines
_rtld_bind_start and _rtld_tls_get_addr_slow set up a stack frame but
don't tell the unwinder about it, so a backtrace taken in the binder or
in the slow path of __tls_get_addr() stops at the trampoline.
Reported by: llm-postcr
Reviewed by: jhibbits
Fixes: 78599c32efed ("Add CFI start/end proc directives to arm64, i386, and ppc")
Fixes: 365638b0d498 ("rtld: preserve the FP and vector registers in __tls_get_addr() on powerpc64")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62383
powerpc: zero the FPU save area in PT_SETVSRREGS when it was not valid
PT_SETVSRREGS marks the saved FPU registers valid and fills in the VSX
halves of VSR0-31. The FP registers and the FPSCR are left alone, and
on a thread that hasn't used the FPU since exec they still hold whatever
the previous program left there.
So after a PT_SETVSRREGS on such a thread PT_GETFPREGS and a core dump
show the FP registers of the program that ran before the exec, and the
new program gets them on its first FP instruction.
Zero the save area first when it wasn't valid, like set_fpregs() does.
Reported by: llm-postcr
Reviewed by: jhibbits
Fixes: 2ab5877e45d8 ("powerpc: use the register validity flags in the vector ptrace requests")
MFC with: 2ab5877e45d8
Differential Revision: https://reviews.freebsd.org/D62379
Mk/Uses/npm.mk: Introduce NPM_PREFETCH_REVISION variable
The prefetch function of USES=npm automatically generates an archive
of node modules needed for a port. The versioning for the archive only
include DISTVERSION and not PORTREVISION to avoid generating duplicate
node modules archive on each port revision bump.
There is a case that a porter wants to update the contents of the node
modules archive (without port version bump) due to some changes to
package.json and/or lockfile. The prefetch function cannot overwrite a
pre-existing node modules archive with one with updated distinfo due
to a limitation of the ports framework.
In such a case, a porter can set NPM_PREFETCH_REVISION to a non-zero
value to produce a new name for node modules archive to work around
the limitation.
NPM_PREFETCH_REVISION should be left undefined unless absolutely
necessary.
[3 lines not shown]
kern.post.mk: Really fix ports module build
The package target was never needed; we install directly from the
staging directory.
Fixes: b393df657811 ("kern.post.mk: Fix unprivileged ports module build")
pkill: Fix typo in test
The cleanup function for pkill -j <jname> had the wrong name.
PR: 301350
Fixes: 93f8c45c0314 ("pkill: Convert pgrep / pkill -j tests to ATF")