commit 8c8b8be7a155bd2cf0fe91a4bb6dc4eb7bb33d24
Author: Jan Palus <[email protected]>
Date:   Sun Aug 25 17:44:30 2024 +0200

    no yield instruction in base armv6

 arm-yield.patch | 11 +++++++++++
 nodejs.spec     |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/nodejs.spec b/nodejs.spec
index 1b79a1f..c9dd1de 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -40,6 +40,7 @@ Patch0:               %{name}-libpath.patch
 # use /usr/lib64/node as an arch-specific module dir when appropriate
 Patch1:                %{name}-lib64path.patch
 Patch2:                0001-Remove-unused-OpenSSL-config.patch
+Patch3:                arm-yield.patch
 URL:           https://nodejs.org/
 BuildRequires: c-ares-devel >= 1.17.2
 BuildRequires: gcc >= 6:6.3
@@ -148,6 +149,7 @@ Ten pakiet zawiera dokumentacjÄ™ Node.js.
 %patch0 -p1
 %endif
 %patch2 -p1
+%patch3 -p1
 
 grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env 
python$,#!%{__python3},'
 
diff --git a/arm-yield.patch b/arm-yield.patch
new file mode 100644
index 0000000..445b867
--- /dev/null
+++ b/arm-yield.patch
@@ -0,0 +1,11 @@
+--- node-v22.7.0/deps/v8/src/base/platform/yield-processor.h.orig      
2024-08-21 23:12:04.000000000 +0200
++++ node-v22.7.0/deps/v8/src/base/platform/yield-processor.h   2024-08-25 
14:35:10.922056543 +0200
+@@ -41,7 +41,7 @@
+ #if defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)
+ #define YIELD_PROCESSOR __asm__ __volatile__("pause")
+ #elif defined(V8_HOST_ARCH_ARM64) || \
+-    (defined(V8_HOST_ARCH_ARM) && __ARM_ARCH >= 6)
++    (defined(V8_HOST_ARCH_ARM) && __ARM_ARCH >= 7)
+ #define YIELD_PROCESSOR __asm__ __volatile__("yield")
+ #elif defined(V8_HOST_ARCH_MIPS64EL) && __mips_isa_rev >= 2
+ // Don't bother doing using .word here since r2 is the lowest supported mips64
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/8c8b8be7a155bd2cf0fe91a4bb6dc4eb7bb33d24

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to