Skip to content

libcvc-examples-web: no runtime deps, so the gallery installs - #965

Merged
transfix merged 1 commit into
masterfrom
fix/libcvc-examples-web-runtime-deps
Nov 2, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/libcvc-examples-web-runtime-deps

Conversation

@transfix

@transfix transfix commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Why

The install the recipe and the libcvc-examples-web launcher document fails on the current package:

$ cvcpkg install libcvc-examples-web --platform wasm-mt --arch wasm32 --link static --prefix ./deps
cvcpkg: ERROR: cannot satisfy requirements:
  no candidate for 'scene-austin-south-small' satisfies constraints (spec=''): no bundle for this platform -- required by libcvc-examples-web

(cvcpkg 2.5.11, against 3.7.8+cvc.1.) This is the gap #959 closed for arigl-web. The recipe lists only depends.build, and when depends.runtime is missing cvcpkg records the build list as the bundle's required_deps. So the published gallery requires all 23 build deps: the static wasm libraries, plus scene-austin-south-small, grl-snam-weights and vehicle-humvee. Two of those, scene-austin-south-small and vehicle-humvee, are published as platform any but arch x86_64, not noarch. cvcpkg lets only noarch stand in for another arch, so no wasm32 request matches them, and the resolve stops there. (grl-snam-weights is any/noarch and resolves.) Had it got past them, it would have downloaded ~105 MB of archives on top of the 155 MB gallery, none of which the page reads.

The gallery needs none of them at run time:

  • Libraries: linked into each demo's .wasm.
  • Austin scene, trained policy and Humvee: preloaded into the nav demos' .data (--preload-file, examples/CMakeLists.txt:229-243). The published nav_city_drive.js loads /bundle/buildings.glb, /bundle/satellite.png, /bundle/terrain.json, /bundle/Humvee.glb, /shared/Humvee.glb and /coef_sdf.cvcnav from its 30.7 MB .data.
  • Launcher: libcvc-examples' bin/libcvc-examples-web serves share/libcvc-examples-web/web/ with system python3, and nothing else from the prefix.

What changes

cvcpkg/recipes/libcvc-examples-web/recipe.yaml only:

The build doesn't change:

  • cvcpkg install-deps prints the same plan with and without this change, for both wasm and wasm-mt.
  • deploy-pages and publish-cvcgl-wasm don't read the recipe's deps at all. Each stages them with its own cvcpkg install lists, and installs the data packages with --platform any.

Checked (cvcpkg 2.5.11)

  • cvcpkg pack cvcpkg/recipes/libcvc-examples-web --from-prefix <stand-in prefix> for wasm and wasm-mt gives libcvc-examples-web-3.7.8+cvc.2-… archives whose manifest.yaml has dependencies: {required: []}.
  • install-deps (wasm and wasm-mt): plans identical to master's recipe. Both stop at the same two x86_64-tagged data packages, which is why the workflows install those separately with --platform any --arch x86_64.
  • No recipe depends on libcvc-examples-web. libcvc-examples only mentions it in comments and in its launcher.

Not in this PR

  • Republishing. As with arigl-web: no runtime deps, so a site's install is the page alone #959, 3.7.8+cvc.2 reaches cvcpkg.org through a publish-cvcgl-wasm dispatch with dry_run=false, or through the next v* tag. Either is a production publish. Only wasm-mt is published; the single-threaded gallery goes to gh-pages through deploy-pages.
    • A dispatch on master would build post-tag commits into 3.7.8+cvc.2. arigl-web's republish ran on a branch made from v3.7.8 plus its fix, and the same works here.
  • The two x86_64-tagged data bundles (cy-pca assets). Either re-pack them as noarch, or have cvcpkg treat a platform-any bundle as arch-neutral; it already treats them as config- and link-neutral (fix(install): a noarch bundle serves every config and link mode cy-pca/cvcpkg#510). Separately, cvcpkg's new install --no-deps (in review) installs a bundle without its deps.

The recipe lists only depends.build, and cvcpkg records the build list as a bundle's
required deps when depends.runtime is absent. So 3.7.8+cvc.1 (wasm-mt) requires all 23
build deps, the static wasm libraries and the three data packages among them. cvcpkg
matches no wasm static request to those platform-any data bundles, so the documented
`cvcpkg install libcvc-examples-web --platform wasm-mt --arch wasm32 --link static`
fails ("no candidate for 'scene-austin-south-small' ... required by
libcvc-examples-web"). Had it resolved, it would have pulled ~105 MB of archives the
gallery never reads.

The page needs none of them: the libraries are linked into each demo's .wasm, and the
Austin scene, the trained policy and the Humvee are preloaded into the nav demos' .data
(examples/CMakeLists.txt, --preload-file). The launcher serves
share/libcvc-examples-web/web/ alone.

- depends.runtime: [] (as arigl-web, #959).
- cvc_revision 1 -> 2, so publish-cvcgl-wasm packs 3.7.8+cvc.2 and publishes it
  instead of skipping 3.7.8 as already on the catalog.

The build is unchanged: install-deps prints the same plan for wasm and wasm-mt, and
deploy-pages and publish-cvcgl-wasm stage the deps with their own install lists.
@transfix
transfix merged commit 9908bc5 into master Nov 2, 2026
28 checks passed
@transfix
transfix deleted the fix/libcvc-examples-web-runtime-deps branch November 2, 2026 23:10
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