Skip to content

deploy-pages: install the cvcpkg CLI before the CMake bundle is on PATH - #1438

Merged
transfix merged 1 commit into
masterfrom
ci/deploy-pages-cli-before-cmake
Nov 22, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/deploy-pages-cli-before-cmake

Conversation

@transfix

Copy link
Copy Markdown
Owner

The first gallery deploy with #1433, run 44946235712, stopped in its new "Install the cvcpkg CLI" step. Its installer failed five times out of five with:

curl: symbol lookup error: curl: undefined symbol: curl_easy_header

Cause

The step before it, "Use the cvcpkg CMake on this runner", puts /opt/cvc-wasm/cmake-cvcpkg/bin first on PATH, and that directory holds a curl from cvcpkg's curl bundle. I checked on catx-03 (read only):

  • That curl's RUNPATH is RIGIN:/tmp/cvcpkg-builder/cvcpkg-prefix-curl-…/lib. The $ORIGIN lost its first two characters, so the bundle's own lib/libcurl.so.4 is never found.
  • ldd resolves libcurl.so.4 to Ubuntu 22.04's /lib/x86_64-linux-gnu/libcurl.so.4, which is 7.81.0. That version predates curl_easy_header (added in 7.83).

The workflow's "Verify live" step already works around the same curl by using Python's urllib. When I tested 2.5.14 on catx-03 for #1433, that directory wasn't on PATH, so the test missed this.

Change

  • The order of two steps in deploy-pages.yml. "Install the cvcpkg CLI" now runs before "Use the cvcpkg CMake on this runner", so the action downloads with the system curl. The install step still puts the CMake bundle on its own PATH, after the CLI, as before.
  • The lockfile check before the pin. It is split back onto two lines; my edit for deploy-pages: install its own cvcpkg; the runner's shared one went back to 2.2.1 #1433 had joined them. Bash ran it the same either way.

Checks

  • The workflow YAML parses, and the steps come in the new order.
  • The install step's script, extracted from the parsed YAML, passes bash -n.
  • On catx-03, as my own user in a temp dir that was deleted afterwards:
    • with the system curl first on PATH, the installer put cvcpkg 2.5.14 in place;
    • with /opt/cvc-wasm/cmake-cvcpkg/bin added after it, as the deploy does, cvcpkg install pegtl --platform wasm --arch wasm32 … installed and wrote the prefix's lockfile.
  • The first loop's x86_64 installs (zlib … imagemagick) fail to resolve cmake under 2.5.14 exactly as they did in the last good deploy (run 44755438836). They are allowed to fail, and those packages reach the prefix as dependencies of the wasm32 installs.

PR CI doesn't run deploy-pages, so the next deploy after the merge is the real test. A failed deploy leaves the current site up.

Not fixed here

The broken RUNPATH in cvcpkg's curl bundle belongs to cy-pca/cvcpkg's curl recipe.

The first deploy with #1433 (run 44946235712) stopped in "Install the cvcpkg CLI": the step
before it puts /opt/cvc-wasm/cmake-cvcpkg/bin first on PATH, and the curl there does not run.
Its RUNPATH lost its $ORIGIN, so it loads the system libcurl 7.81 and fails on an undefined
curl_easy_header, five attempts out of five. The CLI step now comes first and downloads with
the system curl. Also splits the lockfile check before the pin back onto two lines.
@transfix
transfix enabled auto-merge (squash) November 21, 2026 22:35
@transfix
transfix merged commit 681beb2 into master Nov 22, 2026
30 checks passed
@transfix
transfix deleted the ci/deploy-pages-cli-before-cmake branch November 22, 2026 01:27
transfix added a commit that referenced this pull request Nov 22, 2026
deploy-pages.yml conflicted: #1438 moved the cvcpkg CLI step ahead of the CMake step and split
the lockfile check before the pin call. Master's step order is kept and the pin call goes, as
JX2 deletes the pin script.
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