Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging for wasm wasi component module #1147

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

thresheek
Copy link
Member

Mostly mirrors the method used in the dockerfiles

Tested on RHEL 8, RHEL 9, Amazon Linux 2, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.10.

Compared to wasm module, for wasm-wasi-component wasmtime and dependencies are built twice: once for debug and once for non-debug build.
Also, both resulting module shared objects ship their own copy of wasmtime, making it three copies of wasmtime (one 11.0.1 and two 17.0.1) shipped in the package.

…stros

We need to redefine CFLAGS to drop missing-prototypes as warning since
third-party code such as wasmtime fails to build from source when
building a debian package.  This happens only for packages because we
use DPKG_EXPORT_BUILDFLAGS=1 propagating build flags to the environment,
so cargo build picks it up as well.  Since we have no control over
third-party code, the easiest solution is to disable this warning.
@ac000 ac000 self-requested a review February 22, 2024 01:42
Copy link
Member

@ac000 ac000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thresheek thresheek merged commit 7a64055 into nginx:master Feb 22, 2024
15 checks passed
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.

None yet

2 participants