forked from pool/nodejs18
- qemu_timeouts_arches.patch: set timeouts on riscv5 to 7x normal
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs18?expand=0&rev=22
This commit is contained in:
parent
005c5ce4d5
commit
079486e0c9
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 12 08:14:29 UTC 2022 - Adam Majer <adam.majer@suse.de>
|
||||||
|
|
||||||
|
- qemu_timeouts_arches.patch: set timeouts on riscv5 to 7x normal
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 7 08:05:59 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Fri Oct 7 08:05:59 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -171,6 +171,7 @@ Patch133: rsa-pss-revert.patch
|
|||||||
Patch200: versioned.patch
|
Patch200: versioned.patch
|
||||||
|
|
||||||
Patch304: new_python3.patch
|
Patch304: new_python3.patch
|
||||||
|
Patch305: qemu_timeouts_arches.patch
|
||||||
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -666,6 +667,7 @@ tar Jxf %{SOURCE11}
|
|||||||
%patch200 -p1
|
%patch200 -p1
|
||||||
|
|
||||||
%patch304 -p1
|
%patch304 -p1
|
||||||
|
%patch305 -p1
|
||||||
|
|
||||||
%if %{node_version_number} <= 12
|
%if %{node_version_number} <= 12
|
||||||
# minimist security update - patch50
|
# minimist security update - patch50
|
||||||
|
14
qemu_timeouts_arches.patch
Normal file
14
qemu_timeouts_arches.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: node-v18.10.0/test/common/index.js
|
||||||
|
===================================================================
|
||||||
|
--- node-v18.10.0.orig/test/common/index.js
|
||||||
|
+++ node-v18.10.0/test/common/index.js
|
||||||
|
@@ -260,6 +260,9 @@ function platformTimeout(ms) {
|
||||||
|
if (isPi)
|
||||||
|
return multipliers.two * ms; // Raspberry Pi devices
|
||||||
|
|
||||||
|
+ if (process.arch === 'riscv64') // usermode qemu slow
|
||||||
|
+ return multipliers.seven * ms;
|
||||||
|
+
|
||||||
|
return ms;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user