pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nodejs nodejs: work around type issue in NetBSD's...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f9f3db78b309
branches:  trunk
changeset: 420716:f9f3db78b309
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Jan 06 23:06:44 2020 +0000

description:
nodejs: work around type issue in NetBSD's copy of libc++ headers

diffstat:

 lang/nodejs/distinfo                              |   3 ++-
 lang/nodejs/patches/patch-deps_v8_src_zone_zone.h |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 351b3b909ad9 -r f9f3db78b309 lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Mon Jan 06 22:55:06 2020 +0000
+++ b/lang/nodejs/distinfo      Mon Jan 06 23:06:44 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.157 2019/12/29 15:38:04 adam Exp $
+$NetBSD: distinfo,v 1.158 2020/01/06 23:06:44 tnn Exp $
 
 SHA1 (node-v13.5.0.tar.gz) = 85d2c121afe7a4377bceff78e82c08581b90cbde
 RMD160 (node-v13.5.0.tar.gz) = 81f2a5dc215db3bf117e2dc8d5a7c41bb447c0b2
@@ -27,6 +27,7 @@
 SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 802a95f1b1d131e0d85c1f99c659cc68b31ba2f6
 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
 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
 SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa
 SHA1 (patch-src_cares__wrap.cc) = a26a162f130468cbc0650a33b27b71377d273704
diff -r 351b3b909ad9 -r f9f3db78b309 lang/nodejs/patches/patch-deps_v8_src_zone_zone.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-deps_v8_src_zone_zone.h Mon Jan 06 23:06:44 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-deps_v8_src_zone_zone.h,v 1.1 2020/01/06 23:06:44 tnn Exp $
+
+Work around type issue in NetBSD's copy of libc++ headers.
+Believed to be fixed in upstream libc++ already.
+https://github.com/nodejs/node/issues/30638
+
+--- deps/v8/src/zone/zone.h.orig       2019-12-18 17:26:45.000000000 +0000
++++ deps/v8/src/zone/zone.h
+@@ -141,6 +141,9 @@ class ZoneObject {
+  public:
+   // Allocate a new ZoneObject of 'size' bytes in the Zone.
+   void* operator new(size_t size, Zone* zone) { return zone->New(size); }
++#if defined(__NetBSD__) && defined(__clang__)
++  void* operator new(size_t size, void* zone) { return ((Zone*)zone)->New(size); }
++#endif
+ 
+   // Ideally, the delete operator should be private instead of
+   // public, but unfortunately the compiler sometimes synthesizes



Home | Main Index | Thread Index | Old Index