Hi,

The attached diff updates games/stockfish from 16.1 to 19. The port
has no maintainer, so I'm sending it here.

Release notes:
https://github.com/official-stockfish/Stockfish/releases/tag/sf_19

Changes:
- Bump to 19 and drop REVISION.
- Stockfish 19 uses a single NNUE network (src/evaluate.h now
  defines only EvalFileDefaultName = nn-1a298aa575a0.nnue), so the
  two 16.1 networks are replaced by one. The new distfile is about
  98.5 MB (was 65.4 MB + 3.5 MB).
- patches/patch-src_Makefile: refresh offsets, and stop linking with
  -lrt. Upstream now adds -lrt on everything except Windows and
  macOS; OpenBSD has no librt, so the link failed without this.
- No other changes were needed: upstream still builds with
  -std=c++17, the "-O3" replaced in pre-configure is still there,
  and all ARCH values the port uses are still supported upstream.

Tested on OpenBSD 8.0-current (GENERIC.MP #124, 1 Nov 2026), amd64,
with base-clang:
- make makesum: the source tarball checksum matches the one in
  FreeBSD's games/stockfish 19 port, and the net's hash matches its
  file name.
- make, make fake, make update-plist (no PLIST change),
  make port-lib-depends-check (clean), make package, make update
  from 16.1p0: all OK. The build gave no compiler warnings.
- portcheck: clean.
- "stockfish bench": Nodes searched 2497913, matching the Bench
  value in upstream's sf_19 release commit (57148 nps here).
- uci shows Skill Level, UCI_LimitStrength and UCI_Elo
  (1320-3190). Played a full game through a python-chess UCI
  script at Skill Level 20 with no problems.

Not tested:
- Any arch other than amd64, and ports-gcc builds.
- update-plist's conflict check (pkglocatedb is not installed).

Comments welcome.

Magnus

Attachment: stockfish-19.diff
Description: Binary data

Reply via email to