Repository navigation
publish-cvcpkg: make the volrover2 job build, pack and run - #51
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
volrover2 has never been published to cvcpkg.org. Every
publish-cvcpkgrun failed or was cancelled inbuild-volrover2on every platform. This PR makes that job build, pack and produce a package that runs.Why it failed
cvc-requirements.yaml, which lists the Windows-onlypthreads4wfor every platform. cvcpkg now fails on a component with no bundle for the platform (it used to skip it). Thecvcpkg-installcomposite action catches the failure and sets an emptypath, so the job carried on and CMake then failed withCould NOT find GLEW(run 35042987235). glew had resolved fine; the install never ran.macos-13is retired andmacos-14is no longer scheduled. Those jobs queued for 24 h and were then cancelled, which is why every run took a day to finish.libQGLViewer.so.3, but nothing installed it, and the binary had no RPATH.cvcpkg pack --from-prefixdoes not check for that, so it would have published a package that fails at launch.ubuntu-latest(24.04) needsGLIBC_2.38, above the fleet floor of 2.35.pack --from-prefixdoes not check the floor either.glew 2.2.0+cvc.2linux bundle bakes its builder's/usr/lib/x86_64-linux-gnu/libGLU.so,libSM.soandlibICE.sointoGLEW::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
recipes/volrover2withcvcpkg install-deps, which honours each dep'splatforms:scope. cvcpkg comes fromcy-pca/cvcpkg@master;transfix/libcvc-depsis archived at 2.2.1.gluruntime dep (QGLViewer linksOpenGL::GLU). On Linux/macOS cmake and ninja also come from the catalog (--include-host-tools).libnsl-devwas 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.ubuntu-22.04,ubuntu-22.04-arm,macos-15(deployment target 14.0),macos-15-intelandwindows-latest. Windows stays onwindows-latestbecause ci.yml's cvcpkg Windows lane builds green there.CMakeLists.txt: afterfind_package(GLEW), each absoluteGLEW::glew/GLEW::GLEWlink entry outsideCMAKE_PREFIX_PATHis 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 shipsQGLViewer.dllthrough$<TARGET_RUNTIME_DLLS>), with RUNPATH$ORIGIN.src/VolumeRover2: install RPATH$ORIGIN/../libon Linux, and@executable_path/../lib;@executable_path/../../../libon macOS (the bundle's ownContents/lib, then the prefix'slib). These are per-target properties, so volrover3 is unaffected.recipes/volrover2/recipe.yaml: added thegludep, and scoped eachpackage.filesentry to the platforms whose layout has it (pack now fails on an entry that matches nothing).cvc_revision(2) andlicenseare 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-toolsinstalls 58 components./usrpaths in the CMake cache are the compiler's own libgomp/libpthread.cvcpkg packproducesvolrover2-2.1.0+cvc.2-linux-x86_64-release-shared.tar.gzand reportsrelocatable OK. The manifest has licenseLGPL-2.1-only AND LGPL-3.0-or-laterand the glu dep.lddwith an empty environment: nonot found, and every library outside the C/C++ runtime resolves from the prefix.QT_QPA_PLATFORM=offscreen VolumeRover2keeps running until it's killed by the timeout, so it starts.I also replayed the job's Linux steps in a clean
ubuntu:22.04container (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' maxGLIBC_is2.34, and a fresh prefix has 0 missing libraries.CI:
workflow_dispatchdry 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.