Debian Patches

Status for wasi-libc/0.0~git20250726.3f7eb4c-1

Patch Description Author Forwarded Bugs Origin Last update
dont-rebuild-install.patch Prevent spurious rebuilds Ximin Luo <infinity0@debian.org> not-needed 2024-09-05
disable-warning.patch disable on-by-default linker warning =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <debian@fabian.gruenbichler.email> not-needed 2024-09-05
0003-Fix-build-and-tests-for-wasm32-wasip2-target-599.patch Fix build and tests for wasm32-wasip2 target (#599)
Trying to build wasi-libc for the `wasm32-wasip2` target and run the
tests, I noticed a few issues:

- `TARGET_TRIPLE` was being used before definition, in the definition of
`OBJDIR`.
- The ?= operator instead of = was being used to set `TARGET_TRIPLE` to
`wasm32-wasip2`.
This always left the target as `wasm32-wasi`, since it was defined to
that in a previous line.
- `builtins` wasn't being built by default, so building the tests would
fail because it was unable to find `libclang_rt.builtins.a`.
- `make test` didn't take the`WASI_SNAPSHOT` variable into
consideration.
- When building tests, `clang --target=wasm32-wasip2` was building a P2
component,
which caused the subsequent `wasm-tools component new` to fail because
the input
was already a component.

This PR fixes these issues. Now I'm able to run the tests with
`WASI_SNAPSHOT=p2`.

(cherry picked from commit 93bd1f6048b163ca9b12336a4758a6f5c11c908c)
Tim Chevalier <tjc@igalia.com> no 2025-07-29

All known versions for source package 'wasi-libc'

Links