Skip to content

The libcvc family on FreeBSD, OpenBSD and NetBSD, built by the cvcpkg.org fleet on each tag - #1581

Merged
transfix merged 12 commits into
masterfrom
feat/fleet-bsd-haiku
Nov 28, 2026
Merged

transfix merged 12 commits into
masterfrom
feat/fleet-bsd-haiku

Conversation

@transfix

@transfix transfix commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Brings libcvc, ari, arisrv, ari-media, arisrvx, cvcgl, arigl and pycvc-cp312 to FreeBSD, OpenBSD and NetBSD, built on each v* tag. GitHub has no BSD runners, so the cvcpkg.org fleet builds them. Joe chose this design on 2026-11-26: the tag's tarball, built by the fleet. libcvc and ari also get Haiku rows, but Haiku is not submitted yet (see "Not here").

Why the fleet. Its builders made every dependency these bundles link. OpenBSD keeps no ABI between releases, so libcvc has to build on the same 7.7 its deps did. The builders run OpenBSD 7.7 (clang 16), FreeBSD 14.4 (clang 19) and NetBSD 10.1 (pkgsrc clang 19 on the base system's libstdc++ from gcc 10).

publish-cvcpkg.yml

  • push-recipes pushes the recipes with their source pinned to this run's GitHub tarball (the tag's, or the commit's on a dispatch). It downloads the tarball twice and pins only if both hashes agree. It also stamps each family package's +cvc.N from compute-revisions. The rewrite is .github/scripts/pin-recipe-source.py, which changes only the vendored source: block and cvc_revision. Before this, a pushed vendored recipe had no source a builder could fetch: recipe push doesn't bundle a tree that holds the recipes dir.
  • New fleet-bsd-haiku job submits the eight as one DAG in the cvc org, for freebsd, openbsd and netbsd. Each recipe builds only on the columns its matrix names. The submit uses --no-deps, because an auto-added dep would publish under cvc; the deps come from the catalog. It also uses --skip-existing, so a rerun fills only the gaps.
    • It follows the DAG for 100 min. Still building after that is a notice, not a failure.
    • A cancelled run cancels its queued fleet jobs.
  • A dry run now pins too, so it checks the tarball and the rewrite, and stops before the push and the DAG.

Recipes

  • BSD rows for the eight. libcvc's deps that have BSD bundles are no longer scoped off the BSDs, gRPC/curl/HDF5/Eigen/FTXUI/yaml-cpp/libsodium… among them.
  • Haiku rows for libcvc and ari (not submitted yet). Haiku has no gRPC chain, so both conference transports are off there (WS needs protobuf too). There's no openblas, so no levmar.
  • The build scripts count jobs with sysctl hw.ncpu where there is no nproc (OpenBSD), and use pkgsrc's clang on NetBSD, as cvcpkg's NetBSD deps do.
  • ari and arisrv get a test: that the fleet runs before it packs: ari renders an inline document with ari snapshot; arisrv opens a loopback room with its gRPC and WebSocket planes and stops cleanly on SIGTERM. The GitHub lanes pack from a prefix and run no recipe tests, so they are unchanged.

Code

  • cvc::process::self_path gains NetBSD's kern.proc_args pathname sysctl, OpenBSD's argv[0] resolved against the working directory or PATH (OpenBSD keeps no path), and Haiku's app image.
  • FreeBSD's libc++: relay_session.cpp's max of seconds::rep (long long) and int64_t (long) now takes the count's own type.
  • OpenBSD has no <sys/timeb.h>: xmlrpc includes it on Windows only.
  • NetBSD's libstdc++ (gcc 10) has no std::bit_cast: world/surface.cpp and world/weather.cpp use __builtin_bit_cast where __cpp_lib_bit_cast is missing (constexpr, as surface_registry::finalize needs).
  • NetBSD again: that libstdc++ has std::mutex but no timed mutex, which Boost.Config reads under clang as "no <mutex>", so Boost.Regex takes its C++03 path, whose static mutex lives in compiled sources a header-only Boost lacks. core/boost_regex_static_mutex.cpp, built on NetBSD only, defines its four members (pthreads); without it cvc-lod-bake, cvc-lsys and cvc-worldgen failed to link.

Tested on the dev cluster (throwaway draft cy-pca/cvcpkg#642, these recipes pinned to commits of this branch):

  • FreeBSD: all eight built (17c4258); ari and arisrv's tests passed (ffb4485).
  • OpenBSD: libcvc, ari, ari-media, arisrv, arisrvx and pycvc-cp312 built; ari and arisrv's tests passed. cvcgl and arigl were not tried there: dev's OpenBSD vtk is behind master's (prod has vtk cvc.7).
  • NetBSD: libcvc (399ea42, gRPC, WebSocket, curl and OpenSSL on), ari, ari-media, arisrv, arisrvx and pycvc-cp312 built, and ari and arisrv's tests passed. cvcgl and arigl were not tried, for the same vtk reason.
  • libcvc built with every feature on: gRPC, WebSocket, E2EE (libsodium), curl, OpenSSL.

cy-pca/cvcpkg, done: #641 (libsodium on the BSDs and Haiku) and #643 (NetBSD's CA store for openssl and curl, without which grpc couldn't download its sources there) are merged. Their bundles are on cvcpkg.org: libsodium on all three BSDs, and NetBSD's openssl, curl and grpc. Every dependency of the eight's BSD rows is now published, as --no-deps needs.

Not here

… OpenBSD and Haiku

The recipes get freebsd, openbsd and netbsd matrix rows, for builds on the
cvcpkg.org fleet from a release tag's tarball. libcvc's runtime deps that
have BSD bundles are no longer scoped off the BSDs: eigen, libigl, gsl,
hdf5, log4cplus, libopus, libsodium, fontconfig, expat, yaml, yaml-cpp,
nlohmann-json, json-schema-validator, ftxui, ncurses, levmar, libiimod,
curl, openssl, c-ares, re2, abseil, protobuf and grpc, plus assimp and
joltphysics on openbsd and tvision on freebsd and netbsd.

The build scripts count jobs with sysctl hw.ncpu where there is no nproc
(OpenBSD), and use pkgsrc's clang on NetBSD, as cvcpkg's NetBSD deps do.

cvc::process::self_path gains NetBSD's kern.proc_args pathname sysctl,
OpenBSD's argv[0] (resolved against the working directory or PATH, since
OpenBSD keeps no path), and Haiku's app image.
GitHub has no BSD or Haiku runners, and the fleet's builders made every
dependency those bundles link (OpenBSD keeps no ABI between releases). So
on a tag the fleet builds them.

push-recipes pushes the recipes with their source pinned to this run's
GitHub tarball (the tag's, or the commit's on a dispatch), hashed twice,
and with each family package's +cvc.N from compute-revisions:
.github/scripts/pin-recipe-source.py rewrites only the vendored source:
block and cvc_revision. A pushed vendored recipe had no source a builder
could fetch.

fleet-bsd-haiku submits libcvc, ari and arisrv as one cvc-org DAG for
freebsd, openbsd, netbsd and haiku (each recipe builds on the columns its
matrix names), with --no-deps and --skip-existing, and follows it for
100 minutes; still building past that is a notice, not a failure.
libcvc builds on Haiku with what the catalog has there: no gRPC chain
(abseil, protobuf, re2, grpc), so build.sh turns both conference
transports off on Haiku (the WebSocket one needs protobuf's wire too);
no openblas, so no levmar; and no fontconfig, tvision or openmp. Its
other runtime deps now cover haiku (boost, imagemagick, libigl, libiimod
and joltphysics through cy-pca/cvcpkg#644, libsodium through #641).

ari gets a haiku row; arisrv does not, since it needs gRPC.
Their dependencies all have FreeBSD, OpenBSD and NetBSD bundles: sdl3 and
ffmpeg-lgpl (ari-media, cvcgl), python312 and numpy-cp312 (arisrvx,
pycvc-cp312), vtk and imgui-w32 (cvcgl, arigl). cvcgl's ffmpeg-lgpl deps
now cover the BSDs, and pycvc-cp312's site-packages globs do too.

The build scripts count jobs with sysctl where there is no nproc and use
pkgsrc's clang on NetBSD, as libcvc's do.
FreeBSD (libc++): relay_session::status() called max(seconds::rep,
std::int64_t), which are long long and long there, so max could not
deduce one type. The zero takes the count's own type.

OpenBSD has no <sys/timeb.h>. XmlRpcDispatch only uses ftime on Windows,
so the header moves into the Windows branch; elsewhere getTime() already
uses gettimeofday.
…ore they pack

publish-cvcpkg's lanes pack from a prefix and run their own checks first
(ari renders terminal_tour.ari, arisrv opens a loopback room); the fleet
builds these recipes with `cvcpkg build`, which runs the recipe's test:
and nothing else. So:

- ari's test.sh renders a small document with `ari snapshot` and checks
  that init: ran with a command-line argument and the terminal backend
  drew the result.
- arisrv's test.sh runs the relay on loopback ports of the job's own,
  stops it with SIGTERM, and checks the exit status and the same log
  lines the lanes check: the gRPC room, the WebSocket plane, chat, Jolt
  avatars, libjpeg-turbo rungs.

A Windows host's test shell checks the files only. pack --from-prefix
runs no test, so the lanes are unchanged.
NetBSD's C++ library is the base system's libstdc++ from gcc 10, which has no
std::bit_cast (it arrived in gcc 11), so the cvcpkg.org NetBSD builder stopped
at surface.cpp ("no member named 'bit_cast' in namespace 'std'"). Both uses
now take std::bit_cast when __cpp_lib_bit_cast says it is there, else
__builtin_bit_cast, which pkgsrc's clang has and which stays constexpr for
surface_registry::finalize().
NetBSD's libstdc++ (base gcc 10) has std::mutex but no timed mutex
(_GTHREAD_USE_MUTEX_TIMEDLOCK 0), which Boost.Config, under clang's
__GNUC__ of 4, reads as "no <mutex>". Boost.Regex then takes its C++03
path, whose scoped_static_mutex_lock is defined in Boost.Regex's compiled
sources; cvcpkg's Boost is header-only, so cvc-lod-bake, cvc-lsys and
cvc-worldgen failed to link against libcvc.so (dev job 25574; the rest of
libcvc compiled). core/boost_regex_static_mutex.cpp defines the pthreads
version's four members, and only NetBSD builds it.
libcvc and ari keep their Haiku rows, but the fleet's Haiku box is
unreachable and their Haiku deps wait on cy-pca/cvcpkg#644, so a tag would
only queue jobs that cannot run. Also restore the pin steps' line
continuations, which had collapsed into runs of spaces.
@transfix transfix changed the title The libcvc family on FreeBSD, OpenBSD, NetBSD and Haiku, built by the cvcpkg.org fleet on each tag The libcvc family on FreeBSD, OpenBSD and NetBSD, built by the cvcpkg.org fleet on each tag Nov 27, 2026
@transfix
transfix marked this pull request as ready for review November 27, 2026 09:40
publish-cvcpkg.yml's coverage note keeps master's debug rows (#645) and adds the BSD columns.
@transfix
transfix merged commit f152617 into master Nov 28, 2026
30 checks passed
@transfix
transfix deleted the feat/fleet-bsd-haiku branch November 28, 2026 00:36
transfix added a commit that referenced this pull request Nov 28, 2026
Bumps libcvc to 4.0.11: CMakeLists VERSION and the 25 recipes (upstream_version, ==4.0.11 family pins), as bump-version.py writes them. v4.0.11 is the first tag that builds the FreeBSD, OpenBSD and NetBSD columns on the cvcpkg.org fleet (#1581).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant