From 39cf3fbbd56d2b4f54949512a1d58e8322cce011 Mon Sep 17 00:00:00 2001 From: jca Date: Mon, 8 Jun 2026 07:12:39 +0000 Subject: [PATCH] Forcefully disable RVV code in highway to let lang/node build on riscv64 Bump REVISION just in case, I strongly doubt this built with clang 19. ok volker@ (maintainer) --- lang/node/Makefile | 2 +- ...rd_party_highway_src_hwy_detect_compiler_arch_h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lang/node/patches/patch-deps_v8_third_party_highway_src_hwy_detect_compiler_arch_h diff --git a/lang/node/Makefile b/lang/node/Makefile index 6bbd4693b09..e2828aa3d5c 100644 --- a/lang/node/Makefile +++ b/lang/node/Makefile @@ -13,7 +13,7 @@ DIST_TUPLE = github qbit node-pledge 1.1.3 \ DISTNAME = node-${NODE_VERSION} PKGNAME = ${DISTNAME:S/v//g} EPOCH = 0 -REVISION = 1 +REVISION = 2 CATEGORIES = lang devel diff --git a/lang/node/patches/patch-deps_v8_third_party_highway_src_hwy_detect_compiler_arch_h b/lang/node/patches/patch-deps_v8_third_party_highway_src_hwy_detect_compiler_arch_h new file mode 100644 index 00000000000..2336d396933 --- /dev/null +++ b/lang/node/patches/patch-deps_v8_third_party_highway_src_hwy_detect_compiler_arch_h @@ -0,0 +1,14 @@ +Forcefully disable RVV support for now. + +Index: deps/v8/third_party/highway/src/hwy/detect_compiler_arch.h +--- deps/v8/third_party/highway/src/hwy/detect_compiler_arch.h.orig ++++ deps/v8/third_party/highway/src/hwy/detect_compiler_arch.h +@@ -266,7 +266,7 @@ + #define HWY_ARCH_WASM 0 + #endif + +-#ifdef __riscv ++#if 0 + #define HWY_ARCH_RISCV 1 + #else + #define HWY_ARCH_RISCV 0