nuageinit: Use -n with pw usershow
We previously used `"pw usershow " .. shell_escape(pwd.name)`, which
returns root's info for a user named `0`. Add `-n` to explicitly
perform a name lookup.
Reported by: llm-postcr
Reviewed by: bapt
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61753
sched_ule: Skip the CPU search for threads bound to one CPU
sched_pickcpu() returns early only for pinned threads (td_pinned != 0).
A thread whose cpuset holds a single CPU, as set by
cpuset_setaffinity(2) or pthread_setaffinity_np(3), is not pinned in
that sense. Unless its last CPU is idle, it falls through to
cpu_search_lowest() over the whole topology, even though the only
possible answer is that one CPU.
The search is costly in a common layout: one worker thread bound to each
CPU, with a NIC interrupt thread on the same CPU waking its worker for
every batch of received packets. The worker's CPU is busy running the
interrupt thread at wakeup, so the idle-CPU shortcut never applies, and
every wakeup walks the cpu_group tree.
sched_pickcpu() now checks whether the thread's cpuset mask holds one
CPU: CPU_FFS() finds the first CPU, and CPU_FFS_AT() looks for another
after it. If there is none, sched_pickcpu() returns that CPU without
the search. Add CPU_FFS_AT(), on top of __BIT_FFS_AT() and documented
[11 lines not shown]
sched: Use CPPFLAGS in 'compile-with' for namespacing headers
This gives an example of what stance to use should running the
preprocessor safely be necessary to generate other files.
Because _KERNEL is now defined via a '-D' directive in CPPFLAGS, the
explicit '_KERNEL' define in 'sys/kern/sched_ns.h' is no more necessary.
Remove it.
No functional change (intended).
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61169
build: sys: Define CPPFLAGS variable, to be used in 'files*'
Define the CPPFLAGS Makefile variable to contain the preprocessor
options that are passed for compilation of normal C files, including
usual '-I' and '-D' directives.
This enables safely using the preprocessor in 'files*' on "template"
source files to generate other source files (see next commit).
Do not define NORMAL_CPP (as discussed with des@), as other NORMAL_*
variables do include ${.IMPSRC} and thus NORMAL_CPP would need to
include it for consistency, making it unusable to generate files through
explicit make rules.
Discussed with: des (do not define NORMAL_CPP)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61168
mail/getmail6: Update 6.20.02 => 6.21.01
Changelog:
https://github.com/getmail6/getmail6/blob/v6.21.01/docs/CHANGELOG
While here:
* Switch to PEP 517 build format to prepare for future setuptools.
* Switch to PYPI and non-zero DISTVERSION since our Python framework
seems to expect a *.whl with zeroed version number when using GitHub.
PR: 300552
Approved by: osa, vvd (mentors, implicit)
(cherry picked from commit d573b4ed93c65e7b73e3ea01da23d27d71d320d4)
github: Only run the checklist checker for PRs against main
Currently this check is run on every push to stable branches which all
fail since they fail to fetch the non-existent .github/path-rules.txt
from the just-updated branches.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D60709
(cherry picked from commit 19a5023e45bd34d6bf5ee15e580f945caece5d2c)
databases/postgresql19-*: Update to 19.0
First production release of the 19 series.
This release introduces the REPACK (CONCURRENTLY) command so users can
optimize tables for their current workload without disruption to ongoing
operations. PostgreSQL 19 gives users better control over plan stability
and query performance with the new pg_plan_advice extension. Developers
will find many delightful features in this release, from support for
"read-your-writes" consistency on standbys to "get or create" behavior
that saves a network round trip.
Upgrading from 18 or earlier requires a dump/restore or pg_upgrade.
Release notes: https://www.postgresql.org/docs/19/release-19.html
depend-cleanup: Fix incremental libcrypto build
Note that our clean_obj() function previously used plain `strings`, but
in this case the offending symbol is not in a loadable section so it was
not being picked up. Switching to `strings -a` fixes this case and
should not break cases that already worked.
Fixes: 46453f0abb85 ("openssl: build legacy provider as upstream does")
www/py-django-mezzanine-grappelli: Mark DEPRECATED
- Mezzanine-specific fork and Mezzanine was removed from the tree in
2021
- No consumers in the tree
- Switch to DISTVERSION while I am here
- Set EXPIRATION_DATE 2026-12-19
(cherry picked from commit 2f28d2dea56121c9f5e0464e1d9eba99a323490f)
www/py-jonpy: Mark DEPRECATED
- jon.cgi fails under Python 3 (missing io import)
- Unmaintained CGI framework
- No consumers in the tree
- Set EXPIRATION_DATE 2026-12-19
(cherry picked from commit bb0c3236b396ff28558d1caad4a8315b10869cd8)