diff options
author | ryoon <ryoon@pkgsrc.org> | 2016-04-13 09:37:34 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2016-04-13 09:37:34 +0000 |
commit | b434b2e71aeb7c58a388119fb232a1fbadc5075e (patch) | |
tree | 987b1ecd673e67534a2cbdb03bf580a3207fb964 /lang/nodejs | |
parent | 66e0eb7a809899e823e7a8777b77cb86d5087fad (diff) | |
download | pkgsrc-b434b2e71aeb7c58a388119fb232a1fbadc5075e.tar.gz |
Return process.execPath as absolute path on NetBSD current like on Linux.
Bump PKGREVISION for NetBSD current.
This fixes node-sass build under NetBSD current.
Diffstat (limited to 'lang/nodejs')
-rw-r--r-- | lang/nodejs/Makefile | 4 | ||||
-rw-r--r-- | lang/nodejs/distinfo | 3 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-deps_uv_src_unix_netbsd.c | 28 |
3 files changed, 32 insertions, 3 deletions
diff --git a/lang/nodejs/Makefile b/lang/nodejs/Makefile index 9e020aac4be..2bedafea1a7 100644 --- a/lang/nodejs/Makefile +++ b/lang/nodejs/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.63 2016/04/11 19:01:54 ryoon Exp $ +# $NetBSD: Makefile,v 1.64 2016/04/13 09:37:34 ryoon Exp $ DISTNAME= node-v5.10.1 -PKGREVISION= 1 +PKGREVISION= 2 .include "../../lang/nodejs/Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo index 254ba437138..a030c9f515d 100644 --- a/lang/nodejs/distinfo +++ b/lang/nodejs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.60 2016/04/08 16:38:56 fhajny Exp $ +$NetBSD: distinfo,v 1.61 2016/04/13 09:37:34 ryoon Exp $ SHA1 (node-v5.10.1.tar.gz) = d7ea65be300548aa40223b7b02c24892bf657c2c RMD160 (node-v5.10.1.tar.gz) = 17be6cb111cf0930edfe240037d4abd7ab641b5f @@ -8,6 +8,7 @@ SHA1 (patch-common.gypi) = 5b3a50617358637a6f910de28bb5a14f037317a6 SHA1 (patch-deps_cares_cares.gyp) = 2235eb44bc984fa2e745fdf1786f1ae6de6ef80f SHA1 (patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_generator_make.py) = 78d6ddd37ae30e869e0da666a78baad86a638c50 SHA1 (patch-deps_uv_common.gypi) = ba9caa1f6d9d6df1913d0d72a8d18ea6db0a32ff +SHA1 (patch-deps_uv_src_unix_netbsd.c) = 0915dcd6ff65ec9bc098c05c32e3fedee9c8168b SHA1 (patch-deps_v8_src_arm_cpu-arm.cc) = 854a7b0c6392d4568066b961da0958073b7ac62e SHA1 (patch-deps_v8_src_base_atomicops.h) = 65b6508f5260ae672b9efc5672ba2c93223355ff SHA1 (patch-deps_v8_src_base_atomicops__internals__arm__gcc.h) = 39ba63d8c397c7f076c108173f1ee2b5839ad4d6 diff --git a/lang/nodejs/patches/patch-deps_uv_src_unix_netbsd.c b/lang/nodejs/patches/patch-deps_uv_src_unix_netbsd.c new file mode 100644 index 00000000000..dd38ac4d6a6 --- /dev/null +++ b/lang/nodejs/patches/patch-deps_uv_src_unix_netbsd.c @@ -0,0 +1,28 @@ +$NetBSD: patch-deps_uv_src_unix_netbsd.c,v 1.4 2016/04/13 09:37:35 ryoon Exp $ + +--- deps/uv/src/unix/netbsd.c.orig 2016-04-05 21:52:30.000000000 +0000 ++++ deps/uv/src/unix/netbsd.c +@@ -43,6 +43,11 @@ + #include <unistd.h> + #include <time.h> + ++/* For __NetBSD_Version__ */ ++#ifdef __NetBSD__ ++# include <sys/param.h> ++#endif ++ + #undef NANOSEC + #define NANOSEC ((uint64_t) 1e9) + +@@ -90,7 +95,11 @@ int uv_exepath(char* buffer, size_t* siz + mib[0] = CTL_KERN; + mib[1] = KERN_PROC_ARGS; + mib[2] = mypid; ++#if __NetBSD_Version__ >= 799000000 ++ mib[3] = KERN_PROC_PATHNAME; ++#else + mib[3] = KERN_PROC_ARGV; ++#endif + + cb = *size; + if (sysctl(mib, 4, buffer, &cb, NULL, 0)) |