diff options
author | fhajny <fhajny@pkgsrc.org> | 2015-09-12 21:35:15 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2015-09-12 21:35:15 +0000 |
commit | 49b969cb81c88ae0afe4edbcc29fde2853e93b78 (patch) | |
tree | a823c8a6131c162bf0048c31f663b438969b29a8 /lang/nodejs | |
parent | 37cb443a17118ef7e1e97368a13380f5a5bf21bf (diff) | |
download | pkgsrc-49b969cb81c88ae0afe4edbcc29fde2853e93b78.tar.gz |
Work around missing nearbyint on NetBSD 6. Fixes PR pkg/50231
Diffstat (limited to 'lang/nodejs')
-rw-r--r-- | lang/nodejs/distinfo | 3 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-deps_v8_src_types.h | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo index 3f21bf6134e..1e77a097a85 100644 --- a/lang/nodejs/distinfo +++ b/lang/nodejs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.35 2015/09/09 00:04:54 ryoon Exp $ +$NetBSD: distinfo,v 1.36 2015/09/12 21:35:15 fhajny Exp $ SHA1 (node-v4.0.0.tar.gz) = d4791cb483492aea74574f49eee9d6949ecbc759 RMD160 (node-v4.0.0.tar.gz) = d63849be4143fe5af829c43e4ffbcab8ebddb1eb @@ -10,6 +10,7 @@ SHA1 (patch-deps_uv_common.gypi) = af1c707cbc02a4aeccebebf6691d5a8680646a0d SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = 686c2054838a25cfeed7fb9870a959e48dc4de35 SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = eff609b75125dab536934bd8afa640955dcee674 SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = dd8cafadd2668f069dab8625f57fbd71a304db3e +SHA1 (patch-deps_v8_src_types.h) = 1c122245079b3ce0c6fe3f1644d28102fb2eb456 SHA1 (patch-deps_v8_tools_gyp_v8.gyp) = d80f4716f9f2b53357cbcbc6ad003c8541f57049 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3 SHA1 (patch-src_cares__wrap.cc) = d9510afd0cd4b0156a604d9197d9f97d6e3b291f diff --git a/lang/nodejs/patches/patch-deps_v8_src_types.h b/lang/nodejs/patches/patch-deps_v8_src_types.h new file mode 100644 index 00000000000..489824ebf55 --- /dev/null +++ b/lang/nodejs/patches/patch-deps_v8_src_types.h @@ -0,0 +1,20 @@ +$NetBSD: patch-deps_v8_src_types.h,v 1.1 2015/09/12 21:35:15 fhajny Exp $ + +NetBSD 6 doesn't have nearbyint. + +--- deps/v8/src/types.h.orig 2015-09-08 15:30:40.000000000 +0000 ++++ deps/v8/src/types.h +@@ -10,6 +10,13 @@ + #include "src/handles.h" + #include "src/ostreams.h" + ++#ifdef __NetBSD__ ++#include <sys/param.h> ++#if __NetBSD_Version__ - 0 < 699001700 ++#define nearbyint rint ++#endif ++#endif ++ + namespace v8 { + namespace internal { + |