Skip to content

Bundle virglrenderer only when libkrun links it - #184

Open
thejoeejoee wants to merge 1 commit into
stacklok:mainfrom
thejoeejoee:fix/optional-virglrenderer
Open

thejoeejoee wants to merge 1 commit into
stacklok:mainfrom
thejoeejoee:fix/optional-virglrenderer

Conversation

@thejoeejoee

Copy link
Copy Markdown
Contributor

The Package (macOS arm64) job fails on main (since #175) and on every open PR with cp: : No such file or directory in build-runner-darwin.

The Homebrew libkrun 1.19.8 bottle links MoltenVK and libepoxy directly and no longer depends on libvirglrenderer, so otool -L libkrun.1.dylib | awk '/libvirglrenderer/' prints nothing and the copy fails.

  • build-runner-darwin copies libvirglrenderer.1.dylib only when libkrun links it (and removes a stale copy from an earlier build); the id rewrite, dependency rewrite, rpath cleanup, signing and Homebrew-reference check skip it when absent.
  • package-runtime-darwin adds it to the tarball only when present.
  • Dropped it from generates, since it is now optional.

Testing

  • Package (macOS arm64) on this PR, including the bundle smoke test (dyld must load every library from the extracted bundle).

The Homebrew libkrun 1.19.8 bottle links MoltenVK and libepoxy directly and no longer depends on libvirglrenderer, so the otool lookup came back empty and build-runner-darwin failed with 'cp: : No such file or directory'. Copy, rewrite, sign and package libvirglrenderer.1.dylib only when libkrun references it.
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