FreeBSD/ports f39a1cecad/verilator Makefile

cad/verilator: Fix run-time error when verilated program couldn't find lz4

/usr/local/share/verilator/include/verilated.mk is patched with relevant
values.

PR:             296673
Reported by:    Joel Bodenmann <jbo at FreeBSD.org>

(cherry picked from commit d9a357804e97a3ab009c2f865530226c44eb5ea7)
DeltaFile
+4-1cad/verilator/Makefile
+4-11 files

FreeBSD/src 6eaa8edlib/libfetch common.c http.c

libfetch: Reduce copying

Reduce the amount of copying we do when performing buffered reads.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D58113

(cherry picked from commit 60382b4a04fa39e9bf65b964b1b7b4bed6eaa56a)
DeltaFile
+29-16lib/libfetch/common.c
+18-23lib/libfetch/http.c
+12-11lib/libfetch/ftp.c
+2-0lib/libfetch/common.h
+61-504 files

FreeBSD/src 2902f7alib/libfetch common.h common.c

libfetch: Make fetch_ref an inline

Make fetch_ref() an inline and provide a fetch_deref().

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57944

(cherry picked from commit d4e0e1fbc237f0765b9f32b291c087348031c921)
DeltaFile
+12-1lib/libfetch/common.h
+0-11lib/libfetch/common.c
+1-1lib/libfetch/ftp.c
+13-133 files

FreeBSD/src 29564d9usr.bin/fetch fetch.c fetch.1

fetch: Stop setting an alarm

Now that fetchTimeout works reliably, setting an alarm is not only no
longer necessary but counterproductive, as it will trigger even if the
connection is not actually stalled but merely slow.

While here, improve the wording of the manual page's description of the
various options for setting a timeout.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57911

(cherry picked from commit 3dddfe29248c47d1a80dc96a76a308ae910b2a24)
DeltaFile
+9-24usr.bin/fetch/fetch.c
+6-4usr.bin/fetch/fetch.1
+15-282 files

FreeBSD/src c83d4edlib/libfetch fetch.3

libfetch: Document fetchTimeout

Document the global fetchTimeout variable, now that it works reliably.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57910

(cherry picked from commit 27b411734c75a7a5abe641d7fbb99dfc622e9aba)
DeltaFile
+16-2lib/libfetch/fetch.3
+16-21 files

FreeBSD/src 02e82d4lib/libfetch common.c http.c

libfetch: Add read buffering

Previously, we would read FTP control connection messages and HTTP
reponse headers one character at a time.  Now, we read as much as will
fit in our buffer and look for a newline.  If there is data left over,
it will be reused by the next fetch_getln() call.  This also requires
the addition of a fetch_bufread() which takes the buffer into account,
otherwise the start of the HTTP response body will be stuck in the
buffer after we read the last line of the header.

This should noticeably improve HTTP performance, especially for small
transfers.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57907

(cherry picked from commit a1978277379cf65f1339ab062f335c6f1fa6239f)
DeltaFile
+87-22lib/libfetch/common.c
+24-41lib/libfetch/http.c
+4-7lib/libfetch/ftp.c
+3-1lib/libfetch/common.h
+118-714 files

FreeBSD/src 74a9217lib/libfetch common.c

libfetch: Apply timeout to connection attempts

Mark the socket non-blocking before connecting and poll for completion,
applying fetchTimeout if set.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57909

(cherry picked from commit 848f360c8f9ae8d1d97c61f5d63fc624926d5dcd)
DeltaFile
+42-7lib/libfetch/common.c
+42-71 files

FreeBSD/src edf0ba5lib/libfetch common.c common.h

libfetch: Overhaul socket read / write

* Make fetch_ssl_read() and fetch_ssl_write() behave more like read(2)
  and write(2), and drop fetch_socket_read() in favor of read(2).

* Don't request POLLERR, it's implied.

* Don't needlessly set errno, it's relatively costly.

* Always check for EAGAIN from writev(2), otherwise we will abort on a
  short write instead of proceeding to poll(2).

* Always check for EAGAIN from poll(2) even though it can't happen on
  FreeBSD; POSIX says it can, and it might in the future.

* Rewrite fetch_read() and fetch_writev() to be more similar to each
  other.  The main difference is that a partial read is treated as
  success while a partial write is treated as failure.


    [6 lines not shown]
DeltaFile
+131-87lib/libfetch/common.c
+2-2lib/libfetch/common.h
+133-892 files

FreeBSD/ports 015f5camath/elpa pkg-plist distinfo

math/elpa: update 2026.02.001 → 2026.02.002
DeltaFile
+15-15math/elpa/pkg-plist
+3-3math/elpa/distinfo
+1-2math/elpa/Makefile
+19-203 files

FreeBSD/ports d9a3578cad/verilator Makefile

cad/verilator: Fix run-time error when verilated program couldn't find lz4

/usr/local/share/verilator/include/verilated.mk is patched with relevant
values.

PR:             296673
Reported by:    Joel Bodenmann <jbo at FreeBSD.org>
DeltaFile
+4-1cad/verilator/Makefile
+4-11 files

FreeBSD/src 520105clib/libfetch common.c http.c

libfetch: Reduce copying

Reduce the amount of copying we do when performing buffered reads.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D58113

(cherry picked from commit 60382b4a04fa39e9bf65b964b1b7b4bed6eaa56a)
DeltaFile
+29-16lib/libfetch/common.c
+18-23lib/libfetch/http.c
+12-11lib/libfetch/ftp.c
+2-0lib/libfetch/common.h
+61-504 files

FreeBSD/src 0786814lib/libfetch common.h common.c

libfetch: Make fetch_ref an inline

Make fetch_ref() an inline and provide a fetch_deref().

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57944

(cherry picked from commit d4e0e1fbc237f0765b9f32b291c087348031c921)
DeltaFile
+12-1lib/libfetch/common.h
+0-11lib/libfetch/common.c
+1-1lib/libfetch/ftp.c
+13-133 files

FreeBSD/src 98bfed5usr.bin/fetch fetch.c fetch.1

fetch: Stop setting an alarm

Now that fetchTimeout works reliably, setting an alarm is not only no
longer necessary but counterproductive, as it will trigger even if the
connection is not actually stalled but merely slow.

While here, improve the wording of the manual page's description of the
various options for setting a timeout.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57911

(cherry picked from commit 3dddfe29248c47d1a80dc96a76a308ae910b2a24)
DeltaFile
+9-24usr.bin/fetch/fetch.c
+6-4usr.bin/fetch/fetch.1
+15-282 files

FreeBSD/src a69d286lib/libfetch fetch.3

libfetch: Document fetchTimeout

Document the global fetchTimeout variable, now that it works reliably.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57910

(cherry picked from commit 27b411734c75a7a5abe641d7fbb99dfc622e9aba)
DeltaFile
+16-2lib/libfetch/fetch.3
+16-21 files

FreeBSD/src ad7a144lib/libfetch common.c

libfetch: Apply timeout to connection attempts

Mark the socket non-blocking before connecting and poll for completion,
applying fetchTimeout if set.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57909

(cherry picked from commit 848f360c8f9ae8d1d97c61f5d63fc624926d5dcd)
DeltaFile
+42-7lib/libfetch/common.c
+42-71 files

FreeBSD/src b56f3ealib/libfetch common.c common.h

libfetch: Overhaul socket read / write

* Make fetch_ssl_read() and fetch_ssl_write() behave more like read(2)
  and write(2), and drop fetch_socket_read() in favor of read(2).

* Don't request POLLERR, it's implied.

* Don't needlessly set errno, it's relatively costly.

* Always check for EAGAIN from writev(2), otherwise we will abort on a
  short write instead of proceeding to poll(2).

* Always check for EAGAIN from poll(2) even though it can't happen on
  FreeBSD; POSIX says it can, and it might in the future.

* Rewrite fetch_read() and fetch_writev() to be more similar to each
  other.  The main difference is that a partial read is treated as
  success while a partial write is treated as failure.


    [6 lines not shown]
DeltaFile
+131-87lib/libfetch/common.c
+2-2lib/libfetch/common.h
+133-892 files

FreeBSD/src fdef039lib/libfetch common.c http.c

libfetch: Add read buffering

Previously, we would read FTP control connection messages and HTTP
reponse headers one character at a time.  Now, we read as much as will
fit in our buffer and look for a newline.  If there is data left over,
it will be reused by the next fetch_getln() call.  This also requires
the addition of a fetch_bufread() which takes the buffer into account,
otherwise the start of the HTTP response body will be stuck in the
buffer after we read the last line of the header.

This should noticeably improve HTTP performance, especially for small
transfers.

MFC after:      1 week
Reviewed by:    op
Differential Revision:  https://reviews.freebsd.org/D57907

(cherry picked from commit a1978277379cf65f1339ab062f335c6f1fa6239f)
DeltaFile
+87-22lib/libfetch/common.c
+24-41lib/libfetch/http.c
+4-7lib/libfetch/ftp.c
+3-1lib/libfetch/common.h
+118-714 files

FreeBSD/src 2e38926sys/dev/hid u2f.c

hid: u2f: stop interrupts on last-close

This fixes an issue with the Solo2 (and likely some of the Nitrokey
family) where hangs would occur with OpenSSH- it issues a CANCEL prior
to closing the device unconditionally, and without draining the read
endpoint we end up seeing the response to that CANCEL the next time
OpenSSH tries to connect.  This throws the entire command/response
sequence out of whack.

This call used to break Yubikeys in some situations, but the fix that
landed in 28d85db46b48 ("xhci: Do not drop and add bits in xhci") seems
to have addressed that- presumably we sometimes end up stopping the
command and desyncing at the controller level.  This probably implies
that we need a SYNCWRITE HID quirk, but that requires a little more work
in usbhid_sync_xfer() and this doesn't seem to cause any problems in
normal usage.

Reviewed by:    aokblast, wulf
Differential Revision:  https://reviews.freebsd.org/D58199
DeltaFile
+0-3sys/dev/hid/u2f.c
+0-31 files

FreeBSD/ports 52f8a8amath/saga/files patch-src_tools_io_io__webservices_soilgrids.cpp

math/saga: Fix nullptr error

saga-gis/src/tools/io/io_webservices/soilgrids.cpp:433:57: error:
invalid operands to binary expression ('bool' and 'std::nullptr_t')
         bResult = Get_Variable(Variable, Distribution, Layer) != NULL;

The upstream fix will be released with the next bugfix version.

Reported by:    package builders
DeltaFile
+11-0math/saga/files/patch-src_tools_io_io__webservices_soilgrids.cpp
+11-01 files

FreeBSD/src a5307a5sys/dev/usb/video uvideo.c

uvideo: fix use-after-free in mmap buffer lifetime management

The uvideo driver freed the mmap buffer (contigmalloc'd) in several
paths (VIDIOC_STREAMOFF, last close, detach) without coordinating
with the lifetime of existing user-space mmap mappings.  This could
lead to use-after-free when user-space continued to access the
mapped memory after the backing pages had been freed.

Fix this by switching from the simple d_mmap callback to d_mmap_single
with custom cdev_pager_ops, and by attaching the contig buffer to a
single shared vm_object created at REQBUFS time:

- uvideo_reqbufs() allocates a uvideo_mmap_state (independent of the
  softc) and a shared vm_object via cdev_pager_allocate() that spans
  the whole buffer; the softc holds one reference to it.
- uvideo_cdev_mmap_single() simply hands out additional references to
  that shared object; the requested offset selects which buffer is
  mapped.  The VM system tracks mapping lifetime through the object
  reference count, so no per-mapping bookkeeping is needed.

    [18 lines not shown]
DeltaFile
+162-14sys/dev/usb/video/uvideo.c
+162-141 files

FreeBSD/src a141337usr.sbin/bsdinstall/scripts netconfig

bsdinstall/netconfig: use a better heuristic for wlan dev desc

For devices like the rtw88, they will show up in `ifconfig -l` as
rtw880, rtw881, etc. We want to query the rtw88.0 and rtw88.1 sysctl
respectively, not rtw.880.

Chances are that there aren't more than 9 wlan devices using the same
driver. Use a better heuristic to get the device description.

Reviewed by:    bz
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit c4b0b13cadac46b7c2cdfeeedeffa596c62568fa)
DeltaFile
+1-1usr.sbin/bsdinstall/scripts/netconfig
+1-11 files

FreeBSD/src d860a73usr.bin/awk/tests/bugs-fixed bug_fix_test.sh

awk/tests: xfail inf-nan-torture on riscv64

The fix for this is being tracked upstream here:
https://github.com/onetrueawk/awk/issues/269

While here, just cd into $SRCDIR while executing tests,
since the test engine isolates every testcase's working
directory. This ensures that the xfail actually applies
to the next command.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit d0b1a389003b1e6ff5bcf35a7c04654ea7ff87bd)
DeltaFile
+8-4usr.bin/awk/tests/bugs-fixed/bug_fix_test.sh
+8-41 files

FreeBSD/ports 9791b22devel/py-virtualenv distinfo Makefile

devel/py-virtualenv: Update to 21.7.0

ChangeLog:      https://github.com/pypa/virtualenv/releases/tag/21.7.0
Reported by:    Bernát Gábor <notifications at github.com>
DeltaFile
+3-3devel/py-virtualenv/distinfo
+1-1devel/py-virtualenv/Makefile
+4-42 files

FreeBSD/ports ec55c24devel/py-python-discovery distinfo Makefile

devel/py-python-discovery: Update to 1.5.0

ChangeLog:      https://github.com/tox-dev/python-discovery/releases/tag/1.5.0
Reported by:    Bernát Gábor <notifications at github.com>
DeltaFile
+3-3devel/py-python-discovery/distinfo
+1-1devel/py-python-discovery/Makefile
+4-42 files

FreeBSD/src 5aa70e0usr.sbin/bsdinstall/scripts netconfig

bsdinstall/netconfig: use a better heuristic for wlan dev desc

For devices like the rtw88, they will show up in `ifconfig -l` as
rtw880, rtw881, etc. We want to query the rtw88.0 and rtw88.1 sysctl
respectively, not rtw.880.

Chances are that there aren't more than 9 wlan devices using the same
driver. Use a better heuristic to get the device description.

Reviewed by:    bz
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit c4b0b13cadac46b7c2cdfeeedeffa596c62568fa)
DeltaFile
+1-1usr.sbin/bsdinstall/scripts/netconfig
+1-11 files

FreeBSD/src a4f38a5usr.bin/awk/tests/bugs-fixed bug_fix_test.sh

awk/tests: xfail inf-nan-torture on riscv64

The fix for this is being tracked upstream here:
https://github.com/onetrueawk/awk/issues/269

While here, just cd into $SRCDIR while executing tests,
since the test engine isolates every testcase's working
directory. This ensures that the xfail actually applies
to the next command.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit d0b1a389003b1e6ff5bcf35a7c04654ea7ff87bd)
DeltaFile
+8-4usr.bin/awk/tests/bugs-fixed/bug_fix_test.sh
+8-41 files

FreeBSD/src f22b084sys/netinet tcp_hostcache.c

tcp_hostcache: explicitly typecast atomic_load_int to (int) for comparison

Sponsored by:   NetApp, Inc.
MFC after:      1 week
Reviewed By:    tuexen, #transport, markj
Differential Revision: https://reviews.freebsd.org/D58360
DeltaFile
+1-1sys/netinet/tcp_hostcache.c
+1-11 files

FreeBSD/ports 7e6d0edfinance Makefile, finance/taler-merchant pkg-plist Makefile

finance/taler-merchant: (new port) Merchant components of GNU Taler

These are the components needed to us GNU Taler as merchant (seller)
to accept payments.
DeltaFile
+208-0finance/taler-merchant/pkg-plist
+41-0finance/taler-merchant/Makefile
+3-0finance/taler-merchant/distinfo
+1-0finance/taler-merchant/pkg-descr
+1-0finance/Makefile
+254-05 files

FreeBSD/ports 3f789a4finance/taler-exchange Makefile pkg-descr

finance/taler-exchange: portlint and repair WWW and COMMENT
DeltaFile
+9-9finance/taler-exchange/Makefile
+1-1finance/taler-exchange/pkg-descr
+10-102 files

FreeBSD/ports 7fce3d0sysutils/fakertc pkg-descr Makefile

sysutils/fakertc: document that recent ZFS updates wall-clock time now

This makes this tool obsolete on systems running UFS *and* recent ZFS.
DeltaFile
+3-0sysutils/fakertc/pkg-descr
+1-1sysutils/fakertc/Makefile
+4-12 files