From nobody Fri Nov 22 20:13:21 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xw5rd4fZwz5dK3N; Fri, 22 Nov 2024 20:13:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xw5rd3r5mz4VG2; Fri, 22 Nov 2024 20:13:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732306401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cJm4Kl4FzWHzMhNZO8r+3UuUgcRxwZLxUhzskukh3vc=; b=UBzzul1RMUGEdVsxFhTgN8Pv6WJwZ6fHazNHUJXEhuQ6Pmj/uyEdpMEULBzCTzxXydwKkj xAc8vBPzRdXCWmyY1fVgoHfKhZyuyiD7R6fmbtRzALkM90iEGwOyoGZpXLQq9T4zI135Fc DtQAKlYgc7IumDyhna3+AORTFvmpR4oEEPb3E4yr/tudspGHjg/J8vDsfvzyP/6uPa0eyV 34TnKPp9lKl2ZhQSMnS6wET1TZFfDqWXlmGwCyRTWguob786zTBnugM1k5ydch1L2H3FLg XLTTGen1uWW4I64qc76TVj2LqXk6DdlCMJQ55G9V3PqgJN8VR9uxp0+RuRj4bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732306401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cJm4Kl4FzWHzMhNZO8r+3UuUgcRxwZLxUhzskukh3vc=; b=VauLs9eFc7l82mGTibBStPP0nWgWDQmt2FPOsN+hMCQjTvHmaYxcrWy2Q8OFQFNLHJVW+Q E5S9iUqwMlWOaSJ+7soPmhMSneAM9QQokpQ+USvj6ywrYy3pmZbAKWTozs5yzWXGciVBTy qqKeZ8+CYJJ9/Eo+eE1dy8Jgdiv94qc0IVZaw0juov7F8/3hQtlI75PTL5Mfrmsaj8g5UY gUx488CxSLm0jnBysbAU0mvALR59arDxFdwQ+FsxcSNfF2oLIaqaCCnRoXoatLWF6x+yIp ZrYcsEFBBIx95s1g5DVNNc0N4MwsukhJ+ameaxuCpxxciyJIlMWoAk9RONxs7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732306401; a=rsa-sha256; cv=none; b=kvX7PVWjCBPirvuZe8qw7I8ujyDz2MQ2YkG1b3xGAhoO8++r5ncPqBsAjTGv2mqE20VAui xugLvY/AoH4ey4TwnPe6c90/8NZu2rjLlD7Fuato0rqez00uC40/ajNid4iOLSo+FfFSp9 UJpitRfLBr8s72SdDN7hP9+jbefDMV7GJu0bRg/B3+goMdec1qbrYeFgM2NeYTAWHzUiA6 nNv5GkGKbLmibfVz9Z/SYk1YVuPhgGuITy5CwlEF+FHPw9x8LqcoN9dMIfUvvnK493bgZ4 tItksq85iw+USvuRiCBMA/g4glqoRQG2Xai6xfWrSfIR3NiiCJN7aBfwRBApnw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xw5rd3RtczfVY; Fri, 22 Nov 2024 20:13:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AMKDLkP057989; Fri, 22 Nov 2024 20:13:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AMKDL15057986; Fri, 22 Nov 2024 20:13:21 GMT (envelope-from git) Date: Fri, 22 Nov 2024 20:13:21 GMT Message-Id: <202411222013.4AMKDL15057986@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Sergey A. Osokin" Subject: git: e15745adea6a - main - www/unit-wasm: fix build issue with wasmtime 27.0.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: osa X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e15745adea6a676ecb836d543cc9a0ea1785db1e Auto-Submitted: auto-generated The branch main has been updated by osa: URL: https://cgit.FreeBSD.org/ports/commit/?id=e15745adea6a676ecb836d543cc9a0ea1785db1e commit e15745adea6a676ecb836d543cc9a0ea1785db1e Author: Sergey A. Osokin AuthorDate: 2024-11-22 20:10:17 +0000 Commit: Sergey A. Osokin 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);