From 4d2718332710f3054176ccb00b7ff7620c287768 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 15 Jan 2024 12:32:48 -0500 Subject: [PATCH] Do not attempt to build on s390x lld is a build requirement of the WASI toolchain but is not yet supported on s390x (although work is underway upstream). Therefore, %nodejs_arches cannot be used here until that changes. --- nodejs-cjs-module-lexer.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nodejs-cjs-module-lexer.spec b/nodejs-cjs-module-lexer.spec index fcb3d8c..d90b17c 100644 --- a/nodejs-cjs-module-lexer.spec +++ b/nodejs-cjs-module-lexer.spec @@ -20,7 +20,14 @@ Patch: 0001-parametrize-wasm-compilation-process.patch # Binary files in this package are aimed at the wasm32-wasi "architecture". %global _binaries_in_noarch_packages_terminate_build 0 BuildArch: noarch +# change this conditional to the fedora and rhel releases containing lld +# versions which include support for s390x: +# https://github.com/llvm/llvm-project/issues/57097 +%if 0 ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 aarch64 ppc64le riscv64 noarch +%endif BuildRequires: clang lld make wasi-libc-devel BuildRequires: nodejs-devel npm