Skip to content

publish-cvcpkg: make the volrover2 job build, pack and run - #51

Merged
transfix merged 2 commits into
masterfrom
fix/volrover2-publish
Nov 9, 2026
Merged

transfix merged 2 commits into
masterfrom
fix/volrover2-publish

Conversation

@transfix

@transfix transfix commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

volrover2 has never been published to cvcpkg.org. Every publish-cvcpkg run failed or was cancelled in build-volrover2 on every platform. This PR makes that job build, pack and produce a package that runs.

Why it failed

  • Dependencies. The job installed cvc-requirements.yaml, which lists the Windows-only pthreads4w for every platform. cvcpkg now fails on a component with no bundle for the platform (it used to skip it). The cvcpkg-install composite action catches the failure and sets an empty path, so the job carried on and CMake then failed with Could NOT find GLEW (run 35042987235). glew had resolved fine; the install never ran.
  • Retired runners. macos-13 is retired and macos-14 is no longer scheduled. Those jobs queued for 24 h and were then cancelled, which is why every run took a day to finish.
  • The package would not have run. The app links libQGLViewer.so.3, but nothing installed it, and the binary had no RPATH. cvcpkg pack --from-prefix does not check for that, so it would have published a package that fails at launch.
  • glibc. A build on ubuntu-latest (24.04) needs GLIBC_2.38, above the fleet floor of 2.35. pack --from-prefix does not check the floor either.
  • A broken glew bundle. The catalog's glew 2.2.0+cvc.2 linux bundle bakes its builder's /usr/lib/x86_64-linux-gnu/libGLU.so, libSM.so and libICE.so into GLEW::glew's link interface. On a clean 22.04 the build failed ("libGLU.so ... missing and no known rule to make it"), and where those files exist the package would link the system's copies.

Changes

  • Deps now install from recipes/volrover2 with cvcpkg install-deps, which honours each dep's platforms: scope. cvcpkg comes from cy-pca/cvcpkg@master; transfix/libcvc-deps is archived at 2.2.1.
  • No apt step. GL comes from the catalog's libglvnd and GLU from a new linux-only glu runtime dep (QGLViewer links OpenGL::GLU). On Linux/macOS cmake and ninja also come from the catalog (--include-host-tools). libnsl-dev was not used by any CMake target. Windows keeps the runner's cmake, because the catalog's cmake 3.31 has no generator for the image's Visual Studio 2026.
  • CMAKE_DISABLE_FIND_PACKAGE_HDF5/GLUT=ON. Both are optional and nothing in the package uses them, so whatever the runner image ships can't leak into the bundle.
  • Removed the GLEW source-fallback step. glew has release/shared bundles for every publish tuple now.
  • Runners now match libcvc's publish workflow: ubuntu-22.04, ubuntu-22.04-arm, macos-15 (deployment target 14.0), macos-15-intel and windows-latest. Windows stays on windows-latest because ci.yml's cvcpkg Windows lane builds green there.
  • Top-level CMakeLists.txt: after find_package(GLEW), each absolute GLEW::glew / GLEW::GLEW link entry outside CMAKE_PREFIX_PATH is swapped for the prefix's copy of the same library (non-Windows). The real fix belongs in the glew recipe in cy-pca/cvcpkg; this is a no-op once that's republished.
  • src/QGLViewer: installs the shared library on non-Windows (Windows already ships QGLViewer.dll through $<TARGET_RUNTIME_DLLS>), with RUNPATH $ORIGIN.
  • src/VolumeRover2: install RPATH $ORIGIN/../lib on Linux, and @executable_path/../lib;@executable_path/../../../lib on macOS (the bundle's own Contents/lib, then the prefix's lib). These are per-target properties, so volrover3 is unaffected.
  • recipes/volrover2/recipe.yaml: added the glu dep, and scoped each package.files entry to the platforms whose layout has it (pack now fails on an entry that matches nothing). cvc_revision (2) and license are unchanged.
  • cvc-requirements.yaml: comment-only. It is still used by ci.yml's Windows lane, and it only resolves on Windows.

Verification

Run locally on linux x86_64 with cvcpkg 2.5.12:

  • cvcpkg install-deps recipes/volrover2 --include-host-tools installs 58 components.
  • Configure, build (230 targets) and install all pass. The only /usr paths in the CMake cache are the compiler's own libgomp/libpthread.
  • cvcpkg pack produces volrover2-2.1.0+cvc.2-linux-x86_64-release-shared.tar.gz and reports relocatable OK. The manifest has license LGPL-2.1-only AND LGPL-3.0-or-later and the glu dep.
  • I extracted the archive into a copy of the deps prefix and ran ldd with an empty environment: no not found, and every library outside the C/C++ runtime resolves from the prefix. QT_QPA_PLATFORM=offscreen VolumeRover2 keeps running until it's killed by the timeout, so it starts.

I also replayed the job's Linux steps in a clean ubuntu:22.04 container (gcc 11.4, glibc 2.35), which is where the glew problem showed up. With the fix, configure, build, install and pack all pass, the packed binaries' max GLIBC_ is 2.34, and a fresh prefix has 0 missing libraries.

CI: workflow_dispatch dry run 42554471304 on this branch's head. An earlier dispatch (42550920321) was on the commit before the glew fix and was cancelled before it started.

The volrover2 job had never published. Its dependency step installed
cvc-requirements.yaml, which lists the Windows-only pthreads4w for every
platform; cvcpkg now fails on that instead of skipping it, and the
composite action swallowed the failure, so configure then died on a
missing GLEW.

- Install the deps from recipes/volrover2 with `cvcpkg install-deps`,
  which honours each dep's platforms: scope, using cvcpkg from
  cy-pca/cvcpkg (transfix/libcvc-deps is archived at 2.2.1).
- Drop the apt step. GL comes from the catalog's libglvnd, GLU from a
  new linux-only glu dep, and cmake/ninja from the catalog on
  Linux/macOS. libnsl was not used by any CMake target.
- Turn off the optional HDF5 and GLUT finds so the runner image cannot
  leak into the bundle.
- Drop the GLEW source fallback: every platform has a glew bundle now.
- Pin ubuntu-22.04 / ubuntu-22.04-arm (glibc 2.35 floor; a 24.04 build
  needs GLIBC_2.38 and pack --from-prefix does not check), macos-15
  (macos-14 is no longer scheduled) and macos-15-intel (macos-13 is
  retired; its jobs queued for 24 h), as libcvc's publish workflow does.
- Install libQGLViewer, which the app links but nothing installed, and
  give VolumeRover2 an install RPATH ($ORIGIN/../lib on Linux,
  @executable_path-relative on macOS) so the installed app starts.
- Scope package.files entries per platform; pack now fails on an entry
  that matches nothing.
The cvcpkg glew 2.2.0+cvc.2 linux bundle exports GLEW::glew with the
/usr/lib/x86_64-linux-gnu/libGLU.so, libSM.so and libICE.so of the machine
that built it. On a clean ubuntu-22.04 the build stopped at
"'/usr/lib/x86_64-linux-gnu/libGLU.so', needed by
'lib/libQGLViewer.so.3.0.0', missing"; where those files exist, the
package linked the system's copies. After find_package(GLEW), swap each
absolute link entry outside CMAKE_PREFIX_PATH for the prefix's copy of
the same library.
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