pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/nodejs make build on netbsd/arm.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db67e43441b3
branches:  trunk
changeset: 440727:db67e43441b3
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Sat Oct 17 07:22:15 2020 +0000

description:
make build on netbsd/arm.

diffstat:

 lang/nodejs/distinfo                                         |   3 +-
 lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc |  26 ++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r 3699e7cc0036 -r db67e43441b3 lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Sat Oct 17 05:25:46 2020 +0000
+++ b/lang/nodejs/distinfo      Sat Oct 17 07:22:15 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.183 2020/10/08 10:58:35 adam Exp $
+$NetBSD: distinfo,v 1.184 2020/10/17 07:22:15 mrg Exp $
 
 SHA1 (node-v14.13.1.tar.xz) = 2bed8e2334d0a71a2e430539ae075e519642732e
 RMD160 (node-v14.13.1.tar.xz) = 64015436572aed17a85acf2078be7e2e6a746607
@@ -13,6 +13,7 @@
 SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 5e593879dbab095f99e82593272a0de91043f9a8
 SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = 84300d917c172e6211a00b76bfb44ee25465ee00
 SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 802a95f1b1d131e0d85c1f99c659cc68b31ba2f6
+SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b
 SHA1 (patch-deps_v8_src_common_globals.h) = 86637724864389f2b24251904de41669a2f00fbc
 SHA1 (patch-deps_v8_src_compiler_types.h) = 2a212282ab9d71e98ae56827fdb1d9778a6047a5
 SHA1 (patch-deps_v8_src_zone_zone.h) = 651b49d242dac8f713cccc101147ccf61f828ecb
diff -r 3699e7cc0036 -r db67e43441b3 lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc      Sat Oct 17 07:22:15 2020 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-deps_v8_src_codegen_arm_cpu-arm.cc,v 1.1 2020/10/17 07:22:15 mrg Exp $
+
+port to NetBSD/arm.
+
+--- deps/v8/src/codegen/arm/cpu-arm.cc.orig    2020-10-07 10:47:41.000000000 -0700
++++ deps/v8/src/codegen/arm/cpu-arm.cc 2020-10-17 00:16:51.732785305 -0700
+@@ -19,6 +19,10 @@
+ 
+ #include "src/codegen/cpu-features.h"
+ 
++#if V8_OS_NETBSD
++#include <machine/sysarch.h>
++#endif
++
+ namespace v8 {
+ namespace internal {
+ 
+@@ -32,6 +36,8 @@
+   struct arm_sync_icache_args args = {
+       .addr = reinterpret_cast<uintptr_t>(start), .len = size};
+   sysarch(ARM_SYNC_ICACHE, reinterpret_cast<void*>(&args));
++#elif V8_OS_NETBSD
++  arm_sync_icache(reinterpret_cast<uintptr_t>(start), size);
+ #else
+   register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start);
+   register uint32_t end asm("r1") = beg + size;



Home | Main Index | Thread Index | Old Index