summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2018-05-12 08:59:56 +0000
committerfhajny <fhajny@pkgsrc.org>2018-05-12 08:59:56 +0000
commit18355f482041756b7ac6674e93283d1bfce73337 (patch)
treeda1634a044be447db8ab745f68c6fce3520b2ac1
parent50fa6ea9a0a38e4cd0c93afd1f23b59fd3c36516 (diff)
downloadpkgsrc-18355f482041756b7ac6674e93283d1bfce73337.tar.gz
lang/nodejs: Use pkgsrc http-parser, libuv, libcares instead of bundled versions.
Switch back to bundled nghttp2 on lang/nodejs to reconcile a conflict of OpenSSL versions.
-rw-r--r--lang/nodejs/Makefile11
-rw-r--r--lang/nodejs/Makefile.common8
-rw-r--r--lang/nodejs/PLIST19
-rw-r--r--lang/nodejs/buildlink3.mk8
-rw-r--r--lang/nodejs/distinfo3
-rw-r--r--lang/nodejs/patches/patch-node.gypi14
-rw-r--r--lang/nodejs6/Makefile3
-rw-r--r--lang/nodejs6/PLIST24
-rw-r--r--lang/nodejs6/buildlink3.mk5
-rw-r--r--lang/nodejs8/Makefile4
-rw-r--r--lang/nodejs8/PLIST19
-rw-r--r--lang/nodejs8/buildlink3.mk5
12 files changed, 52 insertions, 71 deletions
diff --git a/lang/nodejs/Makefile b/lang/nodejs/Makefile
index f9e9c6bbeca..44dda34edc9 100644
--- a/lang/nodejs/Makefile
+++ b/lang/nodejs/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.128 2018/05/04 04:29:46 minskim Exp $
+# $NetBSD: Makefile,v 1.129 2018/05/12 08:59:56 fhajny Exp $
DISTNAME= node-v10.0.0
+PKGREVISION= 1
USE_LANGUAGES= c gnu++14
@@ -9,7 +10,10 @@ GCC_REQD+= 4.9.4
.include "../../mk/bsd.prefs.mk"
-CONFIGURE_ARGS+= --shared-nghttp2
+# Optional OpenSSL support in nghttp2 conflicts with OpenSSL 1.1.x
+# bundled and built by lang/nodejs.
+# Uncomment when we switch to openssl>=1.1
+# CONFIGURE_ARGS+= --shared-nghttp2
CONFIGURE_ARGS+= --with-intl=system-icu
CHECK_PORTABILITY_SKIP+= deps/openssl/openssl/.travis-create-release.sh
@@ -18,5 +22,6 @@ CHECK_PORTABILITY_SKIP+= deps/openssl/openssl/.travis-create-release.sh
.include "../../lang/nodejs/Makefile.common"
.include "../../textproc/icu/buildlink3.mk"
-.include "../../www/nghttp2/buildlink3.mk"
+# Uncomment when we switch to openssl>=1.1
+# .include "../../www/nghttp2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/nodejs/Makefile.common b/lang/nodejs/Makefile.common
index c7f84050263..d42f3247e91 100644
--- a/lang/nodejs/Makefile.common
+++ b/lang/nodejs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.19 2018/05/03 21:19:16 fhajny Exp $
+# $NetBSD: Makefile.common,v 1.20 2018/05/12 08:59:56 fhajny Exp $
# used by lang/nodejs/Makefile
# used by lang/nodejs6/Makefile
# used by lang/nodejs8/Makefile
@@ -23,6 +23,9 @@ GCC_REQD+= 4.8
CONFIG_SHELL= ${PYTHONBIN}
CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --shared-cares
+CONFIGURE_ARGS+= --shared-http-parser
+CONFIGURE_ARGS+= --shared-libuv
CONFIGURE_ARGS+= --shared-zlib
CONFIGURE_ARGS+= --without-npm
PTHREAD_AUTO_VARS= yes
@@ -63,7 +66,10 @@ post-install:
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
+.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/tool.mk"
+.include "../../net/libcares/buildlink3.mk"
+.include "../../www/http-parser/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
diff --git a/lang/nodejs/PLIST b/lang/nodejs/PLIST
index 5473c34e8aa..13d63c99c62 100644
--- a/lang/nodejs/PLIST
+++ b/lang/nodejs/PLIST
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.55 2018/05/03 21:19:16 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.56 2018/05/12 08:59:56 fhajny Exp $
bin/node
-include/node/android-ifaddrs.h
include/node/common.gypi
include/node/config.gypi
include/node/libplatform/libplatform-export.h
@@ -283,22 +282,6 @@ ${PLIST.openssl}include/node/openssl/whrlpool.h
${PLIST.openssl}include/node/openssl/x509.h
${PLIST.openssl}include/node/openssl/x509_vfy.h
${PLIST.openssl}include/node/openssl/x509v3.h
-include/node/pthread-barrier.h
-include/node/stdint-msvc2008.h
-include/node/tree.h
-include/node/uv-aix.h
-include/node/uv-bsd.h
-include/node/uv-darwin.h
-include/node/uv-errno.h
-include/node/uv-linux.h
-include/node/uv-os390.h
-include/node/uv-posix.h
-include/node/uv-sunos.h
-include/node/uv-threadpool.h
-include/node/uv-unix.h
-include/node/uv-version.h
-include/node/uv-win.h
-include/node/uv.h
include/node/v8-inspector-protocol.h
include/node/v8-inspector.h
include/node/v8-platform.h
diff --git a/lang/nodejs/buildlink3.mk b/lang/nodejs/buildlink3.mk
index 65f9752263c..6ed944cda20 100644
--- a/lang/nodejs/buildlink3.mk
+++ b/lang/nodejs/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2018/05/04 14:28:32 fhajny Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2018/05/12 08:59:56 fhajny Exp $
BUILDLINK_TREE+= nodejs
@@ -13,9 +13,13 @@ BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
+.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
+.include "../../net/libcares/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
-.include "../../www/nghttp2/buildlink3.mk"
+.include "../../www/http-parser/buildlink3.mk"
+# Uncomment when we switch to openssl>=1.1
+# .include "../../www/nghttp2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
pkgbase := nodejs
diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo
index f462efe6d0b..bed81ae0196 100644
--- a/lang/nodejs/distinfo
+++ b/lang/nodejs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.121 2018/05/03 21:19:16 fhajny Exp $
+$NetBSD: distinfo,v 1.122 2018/05/12 08:59:56 fhajny Exp $
SHA1 (node-v10.0.0.tar.gz) = 6547649ab1c3d8bb9048d6dfd4f7a00e9e9c5983
RMD160 (node-v10.0.0.tar.gz) = 8cd5e0353fffc77025d3f0288bb42ea1fc6b665b
@@ -24,6 +24,7 @@ SHA1 (patch-deps_v8_src_compiler_types.h) = 711cc94535200374104c3cd1f0fbbd009947
SHA1 (patch-deps_v8_src_globals.h) = 6695a381000844ad9837bdbc3edbe9040ec4d5ff
SHA1 (patch-deps_v8_src_log-utils.h) = 765e4e4af2cb11e38c033174ac92fbb6ee1fd480
SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
+SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa
SHA1 (patch-src_cares__wrap.cc) = a26a162f130468cbc0650a33b27b71377d273704
SHA1 (patch-src_inspector__agent.cc) = f6d25964a6446a1cb3c7733b7668c87932efad98
SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff
diff --git a/lang/nodejs/patches/patch-node.gypi b/lang/nodejs/patches/patch-node.gypi
new file mode 100644
index 00000000000..f57dc7ba3cd
--- /dev/null
+++ b/lang/nodejs/patches/patch-node.gypi
@@ -0,0 +1,14 @@
+$NetBSD: patch-node.gypi,v 1.1 2018/05/12 08:59:56 fhajny Exp $
+
+Linking in libcares requires libsocket.
+
+--- node.gypi.orig 2018-04-24 14:41:37.000000000 +0000
++++ node.gypi
+@@ -251,6 +251,7 @@
+ [ 'OS=="solaris"', {
+ 'libraries': [
+ '-lkstat',
++ '-lsocket',
+ '-lumem',
+ ],
+ 'defines!': [
diff --git a/lang/nodejs6/Makefile b/lang/nodejs6/Makefile
index 2c3e13679d2..eed0ed348a0 100644
--- a/lang/nodejs6/Makefile
+++ b/lang/nodejs6/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2018/05/03 21:12:23 fhajny Exp $
+# $NetBSD: Makefile,v 1.27 2018/05/12 08:59:56 fhajny Exp $
DISTNAME= node-v6.14.2
+PKGREVISION= 1
.include "options.mk"
diff --git a/lang/nodejs6/PLIST b/lang/nodejs6/PLIST
index 9e3850d2e1b..408fa87433e 100644
--- a/lang/nodejs6/PLIST
+++ b/lang/nodejs6/PLIST
@@ -1,36 +1,14 @@
-@comment $NetBSD: PLIST,v 1.7 2018/05/03 10:29:16 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.8 2018/05/12 08:59:56 fhajny Exp $
bin/node
-include/node/android-ifaddrs.h
-include/node/ares.h
-include/node/ares_build.h
-include/node/ares_rules.h
-include/node/ares_version.h
include/node/common.gypi
include/node/config.gypi
include/node/libplatform/libplatform.h
-include/node/nameser.h
include/node/node.h
include/node/node_api.h
include/node/node_api_types.h
include/node/node_buffer.h
include/node/node_object_wrap.h
include/node/node_version.h
-include/node/pthread-barrier.h
-include/node/stdint-msvc2008.h
-include/node/tree.h
-include/node/uv-aix.h
-include/node/uv-bsd.h
-include/node/uv-darwin.h
-include/node/uv-errno.h
-include/node/uv-linux.h
-include/node/uv-os390.h
-include/node/uv-posix.h
-include/node/uv-sunos.h
-include/node/uv-threadpool.h
-include/node/uv-unix.h
-include/node/uv-version.h
-include/node/uv-win.h
-include/node/uv.h
include/node/v8-debug.h
include/node/v8-experimental.h
include/node/v8-platform.h
diff --git a/lang/nodejs6/buildlink3.mk b/lang/nodejs6/buildlink3.mk
index cf7d1c73668..067328b2c5e 100644
--- a/lang/nodejs6/buildlink3.mk
+++ b/lang/nodejs6/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2018/05/04 14:28:32 fhajny Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2018/05/12 08:59:56 fhajny Exp $
BUILDLINK_TREE+= nodejs
@@ -13,7 +13,10 @@ BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs6
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
+.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
+.include "../../net/libcares/buildlink3.mk"
+.include "../../www/http-parser/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
pkgbase := nodejs
diff --git a/lang/nodejs8/Makefile b/lang/nodejs8/Makefile
index 7f2cedf8d02..0319a280bfe 100644
--- a/lang/nodejs8/Makefile
+++ b/lang/nodejs8/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2018/05/03 21:12:23 fhajny Exp $
+# $NetBSD: Makefile,v 1.12 2018/05/12 08:59:56 fhajny Exp $
DISTNAME= node-v8.11.1
@@ -9,7 +9,7 @@ GCC_REQD+= 4.9.4
CONFIGURE_ARGS+= --with-intl=system-icu
-PKGREVISION= 2
+PKGREVISION= 3
.include "../../lang/nodejs/Makefile.common"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/nodejs8/PLIST b/lang/nodejs8/PLIST
index 2e1c5865d08..ed046ee9b0d 100644
--- a/lang/nodejs8/PLIST
+++ b/lang/nodejs8/PLIST
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2018/05/02 16:33:02 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/05/12 08:59:56 fhajny Exp $
bin/node
-include/node/android-ifaddrs.h
include/node/common.gypi
include/node/config.gypi
include/node/libplatform/libplatform-export.h
@@ -12,22 +11,6 @@ include/node/node_api_types.h
include/node/node_buffer.h
include/node/node_object_wrap.h
include/node/node_version.h
-include/node/pthread-barrier.h
-include/node/stdint-msvc2008.h
-include/node/tree.h
-include/node/uv-aix.h
-include/node/uv-bsd.h
-include/node/uv-darwin.h
-include/node/uv-errno.h
-include/node/uv-linux.h
-include/node/uv-os390.h
-include/node/uv-posix.h
-include/node/uv-sunos.h
-include/node/uv-threadpool.h
-include/node/uv-unix.h
-include/node/uv-version.h
-include/node/uv-win.h
-include/node/uv.h
include/node/v8-debug.h
include/node/v8-inspector-protocol.h
include/node/v8-inspector.h
diff --git a/lang/nodejs8/buildlink3.mk b/lang/nodejs8/buildlink3.mk
index 85cb3cc2f6d..3a1b99cf152 100644
--- a/lang/nodejs8/buildlink3.mk
+++ b/lang/nodejs8/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2018/05/04 14:28:32 fhajny Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2018/05/12 08:59:56 fhajny Exp $
BUILDLINK_TREE+= nodejs
@@ -13,8 +13,11 @@ BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs8
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
+.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
+.include "../../net/libcares/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
+.include "../../www/http-parser/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
pkgbase := nodejs