Compare commits

...

5 Commits

Author SHA1 Message Date
03a55acc97
Disable boostrap (riscv64)
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-11-13 20:13:40 +02:00
ce826b8a05
Add missing patch
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-11-13 16:53:41 +02:00
97246d710b
Fix compilation error
See:
https://github.com/nodejs/node/issues/53115

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-11-13 16:52:24 +02:00
138a454040
Fix Release
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-11-13 15:30:56 +02:00
2506a8886f
Bootstrap (riscv64)
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-11-13 11:26:10 +02:00
2 changed files with 40 additions and 1 deletions

37
52888.patch Normal file
View File

@ -0,0 +1,37 @@
From 1d345299e570a2d734d63bd11b87a0250f261652 Mon Sep 17 00:00:00 2001
From: Lu Yahan <yahan@iscas.ac.cn>
Date: Wed, 8 May 2024 16:34:24 +0800
Subject: [PATCH] tools: fix riscv64 build failed
---
tools/v8_gypfiles/v8.gyp | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index d65a5c268e5fae..8cefba6276bcc8 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -1168,6 +1168,23 @@
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
],
+ 'conditions': [
+ ['v8_enable_webassembly==1', {
+ 'conditions': [
+ ['(_toolset=="host" and host_arch=="riscv64" or _toolset=="target" and target_arch=="riscv64") or (_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64")', {
+ 'sources': [
+ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc',
+ '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
+ ],
+ }],
+ ['(_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux")', {
+ 'sources': [
+ '<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc',
+ ],
+ }],
+ ],
+ }],
+ ],
}],
['v8_target_arch=="loong64"', {
'sources': [

View File

@ -41,7 +41,7 @@
# This is used by both the nodejs package and the npm subpackage that
# has a separate version - the name is special so that rpmdev-bumpspec
# will bump this rather than adding .1 to the end.
%global baserelease %autorelease
%global baserelease %{autorelease -e 1.riscv64}
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
@ -169,6 +169,8 @@ Source203: v8.pc.in
Patch: 0001-Remove-unused-OpenSSL-config.patch
Patch: 0002-build-conditionally-compile-bundled-sqlite.patch
Patch: 0003-deps-ncrypto-include-openssl-rand.h.patch
# https://github.com/nodejs/node/pull/52888
Patch: 52888.patch
%if 0%{?nodejs_default}
%global pkgname nodejs