Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2024 20:13:21 GMT
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e15745adea6a - main - www/unit-wasm: fix build issue with wasmtime 27.0.0
Message-ID:  <202411222013.4AMKDL15057986@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e15745adea6a676ecb836d543cc9a0ea1785db1e

commit e15745adea6a676ecb836d543cc9a0ea1785db1e
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2024-11-22 20:10:17 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2024-11-22 20:13:15 +0000

    www/unit-wasm: fix build issue with wasmtime 27.0.0
    
    Bump PORTREVISION.
---
 www/unit-wasm/Makefile                            |  1 +
 www/unit/Makefile                                 |  2 +-
 www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c | 13 +++++++++++++
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/www/unit-wasm/Makefile b/www/unit-wasm/Makefile
index 2c0c15bf2cd7..fb3890528bc3 100644
--- a/www/unit-wasm/Makefile
+++ b/www/unit-wasm/Makefile
@@ -1,4 +1,5 @@
 PKGNAMESUFFIX=	-${UNIT_MODNAME}
+PORTREVISION=	2
 
 UNIT_MODNAME=	wasm
 
diff --git a/www/unit/Makefile b/www/unit/Makefile
index 4dec0a08a86e..c4c879f45d26 100644
--- a/www/unit/Makefile
+++ b/www/unit/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	unit
 PORTVERSION=	${UNIT_VERSION}
-PORTREVISION=	1
+PORTREVISION?=	1
 CATEGORIES=	www
 MASTER_SITES?=	https://unit.nginx.org/download/
 
diff --git a/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c b/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c
new file mode 100644
index 000000000000..efa08aa8e823
--- /dev/null
+++ b/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c
@@ -0,0 +1,13 @@
+--- 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411222013.4AMKDL15057986>