FreeBSD/ports e2df2f3databases/postgresql18-server Makefile, databases/postgresql19-server Makefile pkg-plist-contrib

databases/postgresql??-*: Update to latest versions

Update to 18.6, 17.11, 16.15, 15.19 and 14.24.

This release fixes 28 security vulnerabilities and over 110 bugs
reported over the last several months.

Welcome postgresql19 to the ports tree with 19-beta3.

Note: PostgreSQL 18.5 was skipped due to a regression; the fix
version is 18.6.

PostgreSQL 14 will stop receiving fixes on 2026-11-12.

Changes:        https://www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365/
Security:       05d311bc-9991-11f1-bc50-6cc21735f730
(cherry picked from commit 60c44ec8a907bb79b51fc6efb48ea2b7ed4c5d1e)
DeltaFile
+1,767-0databases/postgresql19-server/pkg-plist-server
+1,444-0databases/postgresql19-server/pkg-plist-client
+290-0databases/postgresql19-server/pkg-plist-contrib
+260-0databases/postgresql19-server/Makefile
+5-241databases/postgresql18-server/Makefile
+126-0databases/postgresql19-server/files/postgresql.in
+3,892-24145 files not shown
+4,623-30651 files

FreeBSD/ports 6647789security/sssd2 pkg-plist Makefile

security/sssd2: Fix @datadir@ and @sysconfdirs@ substitutions

PR:             297667
DeltaFile
+8-2security/sssd2/Makefile
+1-1security/sssd2/pkg-plist
+9-32 files

FreeBSD/ports 2fea867security/nmap-devel Makefile, security/nmap-devel/files patch-service__scan.cc patch-scan__engine__connect.cc

security/nmap-devel: Fix mksock_bind_addr EINVAL

Fix mksock_bind_addr EINVAL on FreeBSD in service/connect scans.

From https://github.com/nmap/nmap/pull/3439:

Summary

Fixes #3438 — mksock_bind_addr(): Bind to <IP>:0 failed ... Invalid argument (22)
on FreeBSD when running -sV (service version scan).
Root Cause

After commit eb79c42, nsock_iod_set_localaddr() is called for every service
probe whenever a source address can be determined via routing — not only when
the user explicitly requests source binding via -S or -e.

On FreeBSD, the subsequent bind() call fails with EINVAL because the stored
addrlen may equal sizeof(sockaddr_storage) (128 bytes) rather than the
protocol-specific size the POSIX-strict kernel requires:

    [23 lines not shown]
DeltaFile
+32-0security/nmap-devel/files/patch-nse__nsock.cc
+17-0security/nmap-devel/files/patch-service__scan.cc
+17-0security/nmap-devel/files/patch-scan__engine__connect.cc
+1-1security/nmap-devel/Makefile
+67-14 files

FreeBSD/ports 3d1e0c8security/nmap-devel pkg-plist Makefile

security/nmap-devel: Update to the latest GH commit
DeltaFile
+3-3security/nmap-devel/distinfo
+2-2security/nmap-devel/Makefile
+0-1security/nmap-devel/pkg-plist
+5-63 files

FreeBSD/src 78bbe9fusr.sbin/pmc cmd_pmc_record.cc

pmc: Use distinct names for arguments to the pmc_config constructor

This pacifies shadow warnings from GCC:

usr.sbin/pmc/cmd_pmc_record.cc: In constructor 'pmc_config::pmc_config(const std::__1::string&, uint64_t, cpuset_t)':
usr.sbin/pmc/cmd_pmc_record.cc:96:71: error: declaration of 'cpumask' shadows a member of 'pmc_config' [-Werror=shadow]
   96 |         pmc_config(const std::string &event, uint64_t count, cpuset_t cpumask)
      |                                                              ~~~~~~~~~^~~~~~~
usr.sbin/pmc/cmd_pmc_record.cc:90:25: note: shadowed declaration is here
   90 |         cpuset_t        cpumask;
      |                         ^~~~~~~
usr.sbin/pmc/cmd_pmc_record.cc:96:55: error: declaration of 'count' shadows a member of 'pmc_config' [-Werror=shadow]
   96 |         pmc_config(const std::string &event, uint64_t count, cpuset_t cpumask)
      |                                              ~~~~~~~~~^~~~~
usr.sbin/pmc/cmd_pmc_record.cc:89:25: note: shadowed declaration is here
   89 |         uint64_t        count;
      |                         ^~~~~
usr.sbin/pmc/cmd_pmc_record.cc:96:39: error: declaration of 'event' shadows a member of 'pmc_config' [-Werror=shadow]
   96 |         pmc_config(const std::string &event, uint64_t count, cpuset_t cpumask)

    [7 lines not shown]
DeltaFile
+4-3usr.sbin/pmc/cmd_pmc_record.cc
+4-31 files

FreeBSD/src 8502036sys/dev/thunderbolt nhi.c

thunderbolt: Fix v2.0 reset to reliably wait for the reset to finish

The `reg` value was never initialized, so the loop could potentially
abort without a single read of the register.  This was found by the
following warning from GCC:

sys/dev/thunderbolt/nhi.c: In function 'nhi_reset_v2':
sys/dev/thunderbolt/nhi.c:272:35: error: 'reg' is used uninitialized [-Werror=uninitialized]
  272 |         for (size_t i = 0; i < 10 && reg; i++) {
      |                                   ^~
sys/dev/thunderbolt/nhi.c:257:18: note: 'reg' was declared here
  257 |         uint32_t reg;
      |                  ^~~

Reported by:    GCC 15
Fixes:          efdb82413963 ("thunderbolt: Reset controllers")
DeltaFile
+1-0sys/dev/thunderbolt/nhi.c
+1-01 files

FreeBSD/src 01c0ddflib/libc/gen uexterr_format.c

exterr: Fix build with GCC on 32-bit architectures

Use an intermediate uintptr_t cast to avoid casting a uint64_t value
directly to void * on 32-bit platforms (including lib32 builds).

lib/libc/gen/uexterr_format.c: In function 'uexterr_format_msg':
lib/libc/gen/uexterr_format.c:248:35: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  248 |                         PFMT(fmt, (void *)ARG(nextarg));
      |                                   ^
lib/libc/gen/uexterr_format.c:144:47: note: in definition of macro 'PFMT'
  144 |                 psz = snprintf(buf, bufsz, f, a);                       \
      |                                               ^

Reported by:    GCC 15
Fixes:          2f024a7cfddd ("exterr: relax format restrictions")
DeltaFile
+1-1lib/libc/gen/uexterr_format.c
+1-11 files

FreeBSD/ports 7fe6699www/limesurvey Makefile distinfo

www/limesurvey: Update to 7.0.11
DeltaFile
+3-3www/limesurvey/distinfo
+2-2www/limesurvey/Makefile
+5-52 files

FreeBSD/ports a93a69atextproc/xml2rfc Makefile distinfo

textproc/xml2rfc: Update to 3.34.0

See https://github.com/ietf-tools/xml2rfc/releases/tag/v3.34.0 for a
list of changes in this release.
DeltaFile
+3-3textproc/xml2rfc/distinfo
+1-1textproc/xml2rfc/Makefile
+4-42 files

FreeBSD/ports 3eeddbbmultimedia/mediamtx Makefile distinfo

multimedia/mediamtx: Update to 1.20.1

Changelog: https://github.com/bluenviron/mediamtx/releases/tag/v1.20.1
DeltaFile
+7-7multimedia/mediamtx/distinfo
+2-3multimedia/mediamtx/Makefile
+9-102 files

FreeBSD/ports 81df3desysutils/gdu Makefile distinfo

sysutils/gdu: Update to 5.37.0

Changelog: https://github.com/dundee/gdu/releases/tag/v5.37.0
DeltaFile
+5-5sysutils/gdu/distinfo
+1-2sysutils/gdu/Makefile
+6-72 files

FreeBSD/ports 9175898net-p2p/mkbrr Makefile distinfo, net-p2p/mkbrr/files patch-cmd_root.go

net-p2p/mkbrr: Update to 1.25.0

Changelog: https://github.com/autobrr/mkbrr/releases/tag/v1.25.0
DeltaFile
+5-5net-p2p/mkbrr/distinfo
+3-3net-p2p/mkbrr/files/patch-cmd_root.go
+1-2net-p2p/mkbrr/Makefile
+9-103 files

FreeBSD/ports 13511e1print/pdfcpu Makefile distinfo

print/pdfcpu: Update to 0.15.0

Changelog: https://github.com/pdfcpu/pdfcpu/releases/tag/v0.15.0
DeltaFile
+5-5print/pdfcpu/distinfo
+1-2print/pdfcpu/Makefile
+6-72 files

FreeBSD/ports 36a4cc4security/nmap Makefile, security/nmap/files patch-ncat_ncat__ssl.h patch-libpcap_Makefile.in

security/nmap: Update to 7.991 and rework port

* Remove obsolete mirror in MASTER_SITES
* Import upstream PR #3439 [1]
* Convert multiple variables from ?= to =
* Remove old historical references
* Remove .if !defined(MASTERDIR) definition
* Add libpcap from ports as a permanent dependency, also removes
  local patch for bundled version
* Update pcre2 dependency definition
* Sort USES
* Unbundle lua, also removes local patches for bundled version
* Don't extract unbundled libraries
* Remove MAKE_JOBS_UNSAFE
* Rename SSH2 to LIBSSH2 for consistency with tree
* Remove DOCS from OPTIONS_DEFAULT as framework always enables DOCS
* Simplify LibreSSL guard
* Follow Porters Handbook's example about stripping binaries in
  post-install section

    [5 lines not shown]
DeltaFile
+54-58security/nmap/Makefile
+0-56security/nmap/files/patch-configure
+0-13security/nmap/files/patch-ncat__ncat_ssl.c
+0-13security/nmap/files/patch-liblua_Makefile
+0-12security/nmap/files/patch-ncat_ncat__ssl.h
+0-12security/nmap/files/patch-libpcap_Makefile.in
+54-1643 files not shown
+62-1799 files

FreeBSD/ports 28a4219textproc/expat2 pkg-plist Makefile

textproc/expat2: Update to 2.8.3

Changelog:
https://github.com/libexpat/libexpat/blob/R_2_8_3/expat/Changes

PR:             297428
Reviewed by:    desktop (arrowd)
Security:       CVE-2026-72522
Exp-run by:     antoine
DeltaFile
+3-3textproc/expat2/distinfo
+1-1textproc/expat2/pkg-plist
+1-1textproc/expat2/Makefile
+5-53 files

FreeBSD/ports ebf4c56net/mosquitto Makefile, net/mosquitto/files patch-CMakeLists.txt

net/mosquitto: Rework port

* Unbundle uthash as recommended by Porters Handbook
* Unbundle (lib)websockets as recommended by Porters Handbook
* Make (lib)websockets mandatory, default in all major distros
* Use sqlite helper
* Prefer libedit as upstream provides no way of selecting either libedit
  or readline and it'll try to find libedit first
* Remove hack for adding path(s) to localbase, use helper instead
* Disable WITH_HTTP_API as port will otherwise pick up libmicrohttpd
  in unclean environments
* Remove REINPLACE_CMD for CMakeLists.txt files as it does nothing
* Remove hardcoded cjson path

PR:             297568
Tested by:      leres (maintainer)
DeltaFile
+15-29net/mosquitto/Makefile
+0-12net/mosquitto/files/patch-CMakeLists.txt
+15-412 files

FreeBSD/ports 71a75demath/R-cran-alabama Makefile distinfo

math/R-cran-alabama: update 2015.3-1 to 2025.1.0

Upstream changelog: constrOptim.nl now returns a convergence code
when only equality constraints are present.

Submitted by: chris.longros at gmail.com
Differential Revision: https://reviews.freebsd.org/D56058
DeltaFile
+3-3math/R-cran-alabama/distinfo
+1-2math/R-cran-alabama/Makefile
+4-52 files

FreeBSD/ports 69eaa44mail/dovecot24 pkg-descr Makefile, mail/dovecot24/files patch-src_imap_imap-client-hibernate.c pkg-message.in

mail/dovecot24: new port

- adding the new version 2.4 of dovecot, while keeping 2.3 in place
- please note that the config syntax has changed between 2.3
  and 2.4 and needs to be manually adapted, so use/upgrade with care

PR:             286695
Reported by:    Ian Dickens <ian_dickens at icloud.com>
Author:         Jordan Ostreff <jordan at ostreff.info>
Co-authored-by: Sebastian Oswald <sko at rostwald.de>
Discussed with: Sebastian Oswald <sko at rostwald.de>,
                Eugene R <genie at geniechka.ru>,
                Herbert J. Skuhra <herbert at gojira.at>,
                Christos Chatzaras <chris at cretaforce.gr>,
                and others
Tested by:      Jordan Ostreff <jordan at ostreff.info>
DeltaFile
+872-0mail/dovecot24/pkg-plist
+261-0mail/dovecot24/Makefile
+94-0mail/dovecot24/files/dovecot.in
+43-0mail/dovecot24/files/pkg-message.in
+12-0mail/dovecot24/files/patch-src_imap_imap-client-hibernate.c
+9-0mail/dovecot24/pkg-descr
+1,291-02 files not shown
+1,295-08 files

FreeBSD/ports f452b89security/cyberchef Makefile

security/cyberchef: Use INSTALL_DATA for index.html

PR:             297688
Obtained from:  mce@
Sponsored by:   yes
DeltaFile
+2-1security/cyberchef/Makefile
+2-11 files

FreeBSD/ports 9cfb6b0deskutils/podman-desktop Makefile, editors/vscode Makefile

*/*: Bump port revision after electron42 update (49ce10da799e)
DeltaFile
+1-1net-im/signal-desktop/Makefile
+1-1net-im/deltachat-desktop/Makefile
+1-1graphics/drawio/Makefile
+1-1deskutils/podman-desktop/Makefile
+1-0net-im/teams/Makefile
+1-0editors/vscode/Makefile
+6-46 files

FreeBSD/ports 1689928lang/quickjs-ng Makefile distinfo

lang/quickjs-ng: update: 0.16.1 -> 0.16.2

ChangeLog:      https://github.com/quickjs-ng/quickjs/compare/v0.16.1...v0.16.2

Sponsored by:   tipi.work
DeltaFile
+3-3lang/quickjs-ng/distinfo
+1-1lang/quickjs-ng/Makefile
+4-42 files

FreeBSD/ports 49ce10ddevel/electron42 distinfo, devel/electron42/files patch-ui_base_cursor_cursor__factory.cc patch-ui_base_x_x11__cursor__loader.cc

devel/electron42: Update to 42.9.3

Changelog:
- https://github.com/electron/electron/releases/tag/v42.9.1
- https://github.com/electron/electron/releases/tag/v42.9.2
- https://github.com/electron/electron/releases/tag/v42.9.3

Reported by:    GitHub (watch releases)
DeltaFile
+23-23devel/electron42/files/patch-electron_shell_browser_native__window__views.cc
+8-8devel/electron42/files/patch-electron_shell_browser_api_electron__api__web__contents.cc
+7-7devel/electron42/distinfo
+11-0devel/electron42/files/patch-ui_base_cursor_cursor__unittest.cc
+5-5devel/electron42/files/patch-ui_base_x_x11__cursor__loader.cc
+4-4devel/electron42/files/patch-ui_base_cursor_cursor__factory.cc
+58-4712 files not shown
+86-7518 files

FreeBSD/ports f6817b0math/R-cran-acepack Makefile

math/R-cran-acepack: update 1.4.1 to 1.6.3

Submitted by: chris.longros at gmail.com
Reviewed by:  uzsolt
DeltaFile
+1-1math/R-cran-acepack/Makefile
+1-11 files

FreeBSD/src bdfae0fsys/kern subr_epoch.c

epoch: Fix epoch_drain_callbacks()

This function is supposed to wait until all pending callbacks have been
executed.  This is useful in some contexts where we tear down some
context (like a VNET jail and its associated UMA zones) synchronously,
and we want to make sure that all pending asynchronous callbacks (which
may free objects to said UMA zones) have run first.

The implementation schedules a callback on each CPU and waits for them
all to run.  This assumes that, on a given CPU, callbacks are executed
in the order that they are pushed.  This assumption depends on the
implementation of epoch_call_task() and ck_epoch_poll_deferred(), and it
is not true in general.

Callbacks are pushed onto a per-CPU stack in LIFO order.
ck_epoch_poll_deferred() first pulls out the callbacks from epoch - 2,
which are always safe to execute, and in so doing reorders them such
that the oldest callback as at the top of the stack, so in this case,
epoch_call_task() will execute them in order.  However,

    [26 lines not shown]
DeltaFile
+30-20sys/kern/subr_epoch.c
+30-201 files

FreeBSD/src eddae79share/man/man4 ctl.4

ctl.4: Document the assumption that CTL HA runs only on trusted networks

The CTL High Availablity clustering feature allows a pair of hosts to
implement transparent failover.  The implementation uses a TCP
connection to exchange messages.  There is no authentication mechanism
and the protocol itself embeds kernel pointers in the messages exchanged
between HA hosts.  This property (of CTL_MSG_DATAMOVE messages
specifically), as well as insufficient validation of inbound messages,
mean that anyone able to access a CTL HA port is able to remotely
execute code on that host.

Provide a warning to this effect in the CTL man page.

Approved by:    re (cperciva)
Reported by:    Ryan of Calif.io
Reviewed by:    ziaee, ken, mav
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58622

    [3 lines not shown]
DeltaFile
+6-1share/man/man4/ctl.4
+6-11 files

FreeBSD/src 10dd09cusr.sbin/ppp lcp.c

ppp: Reject invalid endpoint discriminator options

Per RFC1717 section 5.1.3, the option length must be at least three.
Processing an undersized option would trigger a large out-of-bounds
write.

Approved by:    re (cperciva)
PR:             271910
Reported by:    Robert Morris
Reported by:    Décio Brandão (0xDBJ)
Reviewed by:    emaste
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58554

(cherry picked from commit b9d07a4308226b683b64827e0aaed1180e0da996)
(cherry picked from commit 30b4bdd451ad4ec2470f9a378bd62e948a85ef81)
DeltaFile
+6-0usr.sbin/ppp/lcp.c
+6-01 files

FreeBSD/src 281fb7dusr.sbin/ppp mp.c

ppp: Avoid overflow when formatting endpoint discriminator options

Each byte of the address is represented by a pair of characters, so we
should be multiplying len by 2 when figuring out how much buffer space
we have.  Previously, a sufficiently large option could cause an
overflow of the global "result" buffer.

Approved by:    re (cperciva)
Reported by:    Joshua Rogers <joshua at joshua.hu>
Tested by:      Décio Brandão (0xDBJ)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58555

(cherry picked from commit e004ff15f87e6aa8f2aa13cd5600ae13457b95f1)
(cherry picked from commit 607c41d8f869243db275a6b1bd6cc66bf58d0f36)
DeltaFile
+6-6usr.sbin/ppp/mp.c
+6-61 files

FreeBSD/src 43bbea2sys/kern kern_fork.c

proc: Copy the p_reapsubtree field explicitly during fork

p_reapsubtree lives in the p_startcopy/p_endcopy block of struct proc,
which is copied during fork without any synchronization.  However, the
field is not stable except when the proctree lock is held, and indeed
may change if p1's reaper exits or explicitly releases its reaper
status.  This state change can race with fork() and leave the child with
an incorrect p_reapsubtree field.

Close the race: explicitly copy the field under the proctree lock during
fork.

Approved by:    re (cperciva)
Reported by:    syzkaller
Reviewed by:    kib
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58482


    [2 lines not shown]
DeltaFile
+7-0sys/kern/kern_fork.c
+7-01 files

FreeBSD/src dde5572sys/netinet6 raw_ip6.c

rawip: Fix handling of checksums in rip6_input()

A v6 raw socket may ask the kernel to validate the checksum of an
inbound packet.  If it does, and the validation fails, we discard the
packet, but this isn't really right: other raw sockets may wish to
receive a copy of the packet anyway.

Rework checksum handling to address this problem, and use a flag to
avoid computing the checksum more than once for a given packet.

Approved by:    re (cperciva)
Fixes:          de2d47842e880281 ("SMR protection for inpcbs")
Reviewed by:    pouria, glebius
Reported by:    Yunzhi Ke
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58559

(cherry picked from commit 196874ce2e97e3e6425493b1d501e716b356bc36)
(cherry picked from commit 1fe3a2897b4ad7a9b9128efd6ec0c24b371bf5bd)
DeltaFile
+15-11sys/netinet6/raw_ip6.c
+15-111 files

FreeBSD/src 9c5f813sys/netinet in_mcast.c, sys/netinet6 in6_mcast.c

in_mcast: Fix uninitialized variable usage in inm_merge()

When the first loop in inm_merge() hits an error, generally because it
hit some limit on the number of source filters for a multicast group,
inm_merge() tries to atomically roll back changes to the group source
filter list.

To roll back, it iterates over the global source filter list for the
multicast group, starting at the last entry that we updated ("nims").
But, if we have not yet updated any entries, this variable is
uninitialized.  Initialize it to NULL, so that RB_FOREACH_REVERSE_FROM
doesn't visit any source filters in this case.

All of the above applies to the v6 case.

Approved by:    re (cperciva)
Reported by:    Daniel Birtwhistle
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

    [3 lines not shown]
DeltaFile
+1-0sys/netinet6/in6_mcast.c
+1-0sys/netinet/in_mcast.c
+2-02 files