Repository navigation
arigl-web: no runtime deps, so a site's install is the page alone - #959
Merged
Merged
Conversation
The recipe listed only depends.build. cvcpkg records depends.runtime as a bundle's required deps and falls back to depends.build when there is none, so the published 3.7.8+cvc.1 bundles carry all 23 static build deps as required_deps. `cvcpkg install arigl-web --platform wasm ...`, the install the recipe tells a site to run, lays down ~680 MB (wasm) / ~640 MB (wasm-mt) for 96 / 53 MB of share/arigl-web. The bundle is finished page files with every library linked into the modules, so declare `runtime: []`. The build is unchanged: install-deps still resolves depends.build (all 23). cvc_revision 1 -> 2 so a publish-cvcgl-wasm run can republish 3.7.8; the next version bump resets it.
transfix
added a commit
that referenced
this pull request
Nov 2, 2026
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. Two of
those, scene-austin-south-small and vehicle-humvee, are published as platform any but
arch x86_64, and only arch noarch matches a wasm32 request. 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.
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.
Why
A site that installs arigl-web 3.7.8 the way the recipe says (
cvcpkg install arigl-web --platform wasm --arch wasm32 --link static --prefix ./deps) downloads far more than the page:share/arigl-web(the page)The recipe lists only
depends.build. cvcpkg records a bundle's required deps fromdepends.runtime, and if that list is missing it usesdepends.buildinstead (runtime_dependenciesin cvcpkg's builder.py). So both published3.7.8+cvc.1bundles list all 23 static build deps (vtk, boost, imagemagick, assimp, ...) asrequired_deps. The resolver installs every one of them, though the page uses none: they're all linked intoarigl.wasm.What changes
cvcpkg/recipes/arigl-web/recipe.yamlonly:depends.runtime: []: the bundle needs nothing at run time. Many cvcpkg recipes already use this, abseil among them.cvc_revision1 → 2: publish-cvcgl-wasm packs at the recipe's revision and skips a version the catalog already has. The bump is what lets it publish3.7.8+cvc.2alongside the current bundles. The next version bump resets it to 1, as ci.yml's version check already asks.The build doesn't change:
cvcpkg install-depsstill resolvesdepends.build. A recipe that depends on arigl-web now gets just the page files, which is what the recipe's own comment describes.Checked (cvcpkg 2.5.11)
cvcpkg pack cvcpkg/recipes/arigl-web --from-prefix <stand-in prefix>forwasmandwasm-mtgivesarigl-web-3.7.8+cvc.2-…archives whosemanifest.yamlhasdependencies: {required: []}.cvcpkg install-deps cvcpkg/recipes/arigl-web --platform wasm --arch wasm32 --link static --no-fallback-to-sourcestill installs all 23 build deps. That's what both publish-cvcgl-wasm and ci.yml's arigl-web job build against.Not in this PR
workflow_dispatchof publish-cvcgl-wasm withdry_run=false, or with the nextv*tag. Either one is a production publish.3.7.8+cvc.2. Every job in that workflow skips a version the catalog already has.3.7.8+cvc.2would carry those changes. A branch made fromv3.7.8plus this commit would keep it to the 3.7.8 code.+cvc.1bundles stay on the catalog. The resolver picks the newest revision.scene-austin-south-small,grl-snam-weights,vehicle-humvee), and some of those may really be needed at run time. So it needs its own look, not a blanketruntime: [].