Skip to content
Snippets Groups Projects
Commit e15745ad authored by Sergey A. Osokin's avatar Sergey A. Osokin
Browse files

www/unit-wasm: fix build issue with wasmtime 27.0.0

Bump PORTREVISION.
parent 36a4cdb5
No related branches found
No related tags found
No related merge requests found
PKGNAMESUFFIX= -${UNIT_MODNAME}
PORTREVISION= 2
UNIT_MODNAME= wasm
......
PORTNAME= unit
PORTVERSION= ${UNIT_VERSION}
PORTREVISION= 1
PORTREVISION?= 1
CATEGORIES= www
MASTER_SITES?= https://unit.nginx.org/download/
......
--- src/wasm/nxt_rt_wasmtime.c.orig 2024-11-22 14:57:14.033949000 -0500
+++ src/wasm/nxt_rt_wasmtime.c 2024-11-22 14:56:05.796918000 -0500
@@ -281,7 +281,9 @@
wasi_config_inherit_stderr(wasi_config);
for (dir = ctx->dirs; dir != NULL && *dir != NULL; dir++) {
- wasi_config_preopen_dir(wasi_config, *dir, *dir);
+ wasi_config_preopen_dir(wasi_config, *dir, *dir,
+ WASMTIME_WASI_DIR_PERMS_READ,
+ WASMTIME_WASI_FILE_PERMS_READ);
}
error = wasmtime_context_set_wasi(rt_ctx->ctx, wasi_config);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment