pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang lang/nodejs: Use pkgsrc http-parser, libuv, libca...
details: https://anonhg.NetBSD.org/pkgsrc/rev/437bd9760b73
branches: trunk
changeset: 380144:437bd9760b73
user: fhajny <fhajny%pkgsrc.org@localhost>
date: Sat May 12 08:59:56 2018 +0000
description:
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.
diffstat:
lang/nodejs/Makefile | 11 ++++++++---
lang/nodejs/Makefile.common | 8 +++++++-
lang/nodejs/PLIST | 19 +------------------
lang/nodejs/buildlink3.mk | 8 ++++++--
lang/nodejs/distinfo | 3 ++-
lang/nodejs/patches/patch-node.gypi | 14 ++++++++++++++
lang/nodejs6/Makefile | 3 ++-
lang/nodejs6/PLIST | 24 +-----------------------
lang/nodejs6/buildlink3.mk | 5 ++++-
lang/nodejs8/Makefile | 4 ++--
lang/nodejs8/PLIST | 19 +------------------
lang/nodejs8/buildlink3.mk | 5 ++++-
12 files changed, 52 insertions(+), 71 deletions(-)
diffs (truncated from 301 to 300 lines):
diff -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs/Makefile
--- a/lang/nodejs/Makefile Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs/Makefile Sat May 12 08:59:56 2018 +0000
@@ -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 @@
.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 @@
.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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs/Makefile.common
--- a/lang/nodejs/Makefile.common Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs/Makefile.common Sat May 12 08:59:56 2018 +0000
@@ -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 @@
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 @@
.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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs/PLIST
--- a/lang/nodejs/PLIST Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs/PLIST Sat May 12 08:59:56 2018 +0000
@@ -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/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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs/buildlink3.mk
--- a/lang/nodejs/buildlink3.mk Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs/buildlink3.mk Sat May 12 08:59:56 2018 +0000
@@ -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 @@
.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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs/distinfo
--- a/lang/nodejs/distinfo Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs/distinfo Sat May 12 08:59:56 2018 +0000
@@ -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_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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs/patches/patch-node.gypi
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-node.gypi Sat May 12 08:59:56 2018 +0000
@@ -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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs6/Makefile
--- a/lang/nodejs6/Makefile Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs6/Makefile Sat May 12 08:59:56 2018 +0000
@@ -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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs6/PLIST
--- a/lang/nodejs6/PLIST Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs6/PLIST Sat May 12 08:59:56 2018 +0000
@@ -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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs6/buildlink3.mk
--- a/lang/nodejs6/buildlink3.mk Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs6/buildlink3.mk Sat May 12 08:59:56 2018 +0000
@@ -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 @@
.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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs8/Makefile
--- a/lang/nodejs8/Makefile Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs8/Makefile Sat May 12 08:59:56 2018 +0000
@@ -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 @@
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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs8/PLIST
--- a/lang/nodejs8/PLIST Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs8/PLIST Sat May 12 08:59:56 2018 +0000
@@ -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_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 -r 2d5d56198ac8 -r 437bd9760b73 lang/nodejs8/buildlink3.mk
--- a/lang/nodejs8/buildlink3.mk Sat May 12 08:20:15 2018 +0000
+++ b/lang/nodejs8/buildlink3.mk Sat May 12 08:59:56 2018 +0000
@@ -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 @@
.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"
Home |
Main Index |
Thread Index |
Old Index