pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang nodejs14: updated to 14.19.1 and moved to lang/no...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/29bbbfdf259e
branches:  trunk
changeset: 375929:29bbbfdf259e
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Mar 30 06:51:30 2022 +0000

description:
nodejs14: updated to 14.19.1 and moved to lang/nodejs14

Version 14.19.1 'Fermium' (LTS)

This is a security release.

Notable Changes

Update to OpenSSL 1.1.1n, which addresses the following vulnerability:

Infinite loop in BN_mod_sqrt() reachable when parsing certificates (High)(CVE-2022-0778) More details are available at https://www.openssl.org/news/secadv/20220315.txt

diffstat:

 lang/Makefile                                                             |   3 +-
 lang/nodejs14/DESCR                                                       |   4 +
 lang/nodejs14/Makefile                                                    |  43 +++++++
 lang/nodejs14/PLIST                                                       |  56 ++++++++++
 lang/nodejs14/buildlink3.mk                                               |  36 ++++++
 lang/nodejs14/distinfo                                                    |  26 ++++
 lang/nodejs14/patches/patch-common.gypi                                   |  20 +++
 lang/nodejs14/patches/patch-deps_cares_cares.gyp                          |  17 +++
 lang/nodejs14/patches/patch-deps_uv_common.gypi                           |  15 ++
 lang/nodejs14/patches/patch-deps_uvwasi_include_wasi__serdes.h            |  21 +++
 lang/nodejs14/patches/patch-deps_v8_src_base_atomicops.h                  |  18 +++
 lang/nodejs14/patches/patch-deps_v8_src_base_platform_platform-freebsd.cc |  33 +++++
 lang/nodejs14/patches/patch-deps_v8_src_base_platform_platform-openbsd.cc |  55 +++++++++
 lang/nodejs14/patches/patch-deps_v8_src_base_platform_platform-posix.cc   |  53 +++++++++
 lang/nodejs14/patches/patch-deps_v8_src_base_platform_semaphore.cc        |  18 +++
 lang/nodejs14/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc            |  26 ++++
 lang/nodejs14/patches/patch-deps_v8_src_common_globals.h                  |  14 ++
 lang/nodejs14/patches/patch-deps_v8_src_compiler_types.h                  |  21 +++
 lang/nodejs14/patches/patch-deps_v8_src_zone_zone.h                       |  18 +++
 lang/nodejs14/patches/patch-deps_v8_tools_run-llprof.sh                   |  15 ++
 lang/nodejs14/patches/patch-node.gypi                                     |  14 ++
 lang/nodejs14/patches/patch-src_inspector__agent.cc                       |  13 ++
 lang/nodejs14/patches/patch-src_node__postmortem__metadata.cc             |  15 ++
 lang/nodejs14/patches/patch-tools_gyp_pylib_gyp_generator_make.py         |  25 ++++
 lang/nodejs14/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py       |  24 ++++
 lang/nodejs14/patches/patch-tools_install.py                              |  18 +++
 lang/nodejs14/patches/patch-tools_v8_gypfiles_v8.gyp                      |  19 +++
 27 files changed, 639 insertions(+), 1 deletions(-)

diffs (truncated from 758 to 300 lines):

diff -r 3f3c01eb529a -r 29bbbfdf259e lang/Makefile
--- a/lang/Makefile     Tue Mar 29 22:09:52 2022 +0000
+++ b/lang/Makefile     Wed Mar 30 06:51:30 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.642 2022/03/17 07:10:08 wiz Exp $
+# $NetBSD: Makefile,v 1.643 2022/03/30 06:51:30 adam Exp $
 #
 
 COMMENT=       Programming languages
@@ -177,6 +177,7 @@
 SUBDIR+=       nodejs
 SUBDIR+=       nodejs10
 SUBDIR+=       nodejs12
+SUBDIR+=       nodejs14
 SUBDIR+=       npm
 SUBDIR+=       nqp
 SUBDIR+=       nuitka
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/DESCR       Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,4 @@
+Node.js is an evented I/O framework for the V8 JavaScript engine. It is
+intended for writing scalable network programs such as web servers.
+
+This package holds the 14.x LTS release.
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/Makefile    Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+DISTNAME=      node-v14.19.1
+EXTRACT_SUFX=  .tar.xz
+
+USE_LANGUAGES= c gnu++14
+
+.include "../../mk/bsd.prefs.mk"
+
+# XXX: figure out a way to add rpaths to torque
+MAKE_ENV+=     LD_LIBRARY_PATH=${PREFIX}/lib
+
+CONFIGURE_ARGS+=       --shared-brotli
+CONFIGURE_ARGS+=       --shared-nghttp2
+CONFIGURE_ARGS+=       --with-intl=system-icu
+CONFIGURE_ARGS+=       --without-corepack
+
+PYTHON_VERSIONS_ACCEPTED=      27
+
+CHECK_PORTABILITY_SKIP+=       tools/macos-installer/pkgbuild/npm/scripts/preinstall
+
+.if ${MACHINE_ARCH} == "i386"
+# required for SSE2 code under i386.
+CXXFLAGS+=     -mstackrealign
+.endif
+
+.include "../../lang/nodejs/options.mk"
+
+# Node turns on -latomic for arm, mips and ppc.
+.if !empty(MACHINE_ARCH:M*arm*) || \
+    !empty(MACHINE_ARCH:M*powerpc*) || \
+    !empty(MACHINE_ARCH:M*mips*)
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
+.include "../../lang/nodejs/Makefile.common"
+.include "../../archivers/brotli/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+# Requires nghttp2_option_set_max_settings
+BUILDLINK_API_DEPENDS.nghttp2+=        nghttp2>=1.41.0
+.include "../../www/nghttp2/buildlink3.mk"
+.include "../../mk/atomic64.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/PLIST       Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,56 @@
+@comment $NetBSD: PLIST,v 1.1 2022/03/30 06:51:30 adam Exp $
+bin/node
+include/node/common.gypi
+include/node/config.gypi
+include/node/cppgc/allocation.h
+include/node/cppgc/common.h
+include/node/cppgc/custom-space.h
+include/node/cppgc/garbage-collected.h
+include/node/cppgc/heap.h
+include/node/cppgc/internal/accessors.h
+include/node/cppgc/internal/api-constants.h
+include/node/cppgc/internal/compiler-specific.h
+include/node/cppgc/internal/finalizer-trait.h
+include/node/cppgc/internal/gc-info.h
+include/node/cppgc/internal/logging.h
+include/node/cppgc/internal/persistent-node.h
+include/node/cppgc/internal/pointer-policies.h
+include/node/cppgc/internal/prefinalizer-handler.h
+include/node/cppgc/liveness-broker.h
+include/node/cppgc/macros.h
+include/node/cppgc/member.h
+include/node/cppgc/persistent.h
+include/node/cppgc/platform.h
+include/node/cppgc/prefinalizer.h
+include/node/cppgc/source-location.h
+include/node/cppgc/trace-trait.h
+include/node/cppgc/type-traits.h
+include/node/cppgc/visitor.h
+include/node/js_native_api.h
+include/node/js_native_api_types.h
+include/node/libplatform/libplatform-export.h
+include/node/libplatform/libplatform.h
+include/node/libplatform/v8-tracing.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/v8-fast-api-calls.h
+include/node/v8-internal.h
+include/node/v8-platform.h
+include/node/v8-profiler.h
+include/node/v8-util.h
+include/node/v8-value-serializer-version.h
+include/node/v8-version-string.h
+include/node/v8-version.h
+include/node/v8-wasm-trap-handler-posix.h
+include/node/v8-wasm-trap-handler-win.h
+include/node/v8.h
+include/node/v8config.h
+${PLIST.dtrace}lib/dtrace/node.d
+man/man1/node.1
+share/doc/node/gdbinit
+share/doc/node/lldb_commands.py
+share/systemtap/tapset/node.stp
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/buildlink3.mk       Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+BUILDLINK_TREE+=       nodejs
+
+.if !defined(NODEJS_BUILDLINK3_MK)
+NODEJS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.nodejs+= nodejs>=10
+BUILDLINK_ABI_DEPENDS.nodejs+= nodejs>=14.19.1
+BUILDLINK_PKGSRCDIR.nodejs?=   ../../lang/nodejs14
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} != "Darwin"
+.include "../../devel/libexecinfo/buildlink3.mk"
+.endif
+# Stated by the changelog
+BUILDLINK_API_DEPENDS.libuv+=  libuv>=1.23
+.include "../../devel/libuv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+# Requires nghttp2_option_set_max_settings
+BUILDLINK_API_DEPENDS.nghttp2+=        nghttp2>=1.41.0
+.include "../../www/nghttp2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+pkgbase := nodejs
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.nodejs:Mopenssl}
+.  include "../../security/openssl/buildlink3.mk"
+.endif
+
+.endif # NODEJS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -nodejs
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/distinfo    Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,26 @@
+$NetBSD: distinfo,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+BLAKE2s (node-v14.19.1.tar.xz) = b89311693d96a8514cf9dbba14754579e43e830480ea5be8e665e01c6490ec4f
+SHA512 (node-v14.19.1.tar.xz) = d6c7f16589a0173a326a32e0bd4a8772357de0325a85b81bfd68e20239d7d1eac7eef93932d7044b1b3b9abf1da0f0bb4142786aba7b85f80474cc1924c900fa
+Size (node-v14.19.1.tar.xz) = 34476256 bytes
+SHA1 (patch-common.gypi) = f0bd2962bf7c8466db24b35a35154897ecad6316
+SHA1 (patch-deps_cares_cares.gyp) = 22b44f2ac59963f694dfe4f4585e08960b3dec32
+SHA1 (patch-deps_uv_common.gypi) = d38a9c8d9e3522f15812aec2f5b1e1e636d4bab3
+SHA1 (patch-deps_uvwasi_include_wasi__serdes.h) = 32b85ef5824b96b35aba9280bbe7aa7899d9e5cf
+SHA1 (patch-deps_v8_src_base_atomicops.h) = 05b1f62850c3d4a9a8e94a5263be1c4267cf566d
+SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = b47025f33d2991275bbcd15dbabb28900afab0e1
+SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 5e593879dbab095f99e82593272a0de91043f9a8
+SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = f99d9bee3ce452dda41c9b2943ee16cebcbd0af3
+SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 802a95f1b1d131e0d85c1f99c659cc68b31ba2f6
+SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b
+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_inspector__agent.cc) = 2ec2a7be459648700488096f467a4ae6af5a9d91
+SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff
+SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = 34d4f113d85b4502bc8240fac50dc37554ab4ebb
+SHA1 (patch-tools_gyp_pylib_gyp_xcode__emulation.py) = 4ee24115f5e97ffbd23aaa6dc62f408d381d4e22
+SHA1 (patch-tools_install.py) = 943507123606b9016e35a94eb2e1941d141e0e09
+SHA1 (patch-tools_v8_gypfiles_v8.gyp) = 49cfd4fa8a8122c6f74965a2e87bbca6d0e44efc
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/patches/patch-common.gypi
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/patches/patch-common.gypi   Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-common.gypi,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+Add support for NetBSD.
+
+--- common.gypi.orig   2020-01-07 22:07:48.000000000 +0000
++++ common.gypi
+@@ -326,11 +326,11 @@
+           'BUILDING_UV_SHARED=1',
+         ],
+       }],
+-      [ 'OS in "linux freebsd openbsd solaris aix"', {
++      [ 'OS in "linux freebsd openbsd netbsd solaris aix"', {
+         'cflags': [ '-pthread' ],
+         'ldflags': [ '-pthread' ],
+       }],
+-      [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
++      [ 'OS in "linux freebsd openbsd netbsd netbsd solaris android aix cloudabi"', {
+         'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
+         'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
+         'defines': [ '__STDC_FORMAT_MACROS' ],
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/patches/patch-deps_cares_cares.gyp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/patches/patch-deps_cares_cares.gyp  Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-deps_cares_cares.gyp,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+Add support for NetBSD.
+
+--- deps/cares/cares.gyp.orig  2013-03-14 10:55:24.000000000 +0900
++++ deps/cares/cares.gyp       2013-03-14 10:55:47.000000000 +0900
+@@ -140,6 +140,10 @@
+           'include_dirs': [ 'config/freebsd' ],
+           'sources': [ 'config/freebsd/ares_config.h' ]
+         }],
++        [ 'OS=="netbsd"', {
++          'include_dirs': [ 'config/netbsd' ],
++          'sources': [ 'config/netbsd/ares_config.h' ]
++        }],
+         [ 'OS=="openbsd"', {
+           'include_dirs': [ 'config/openbsd' ],
+           'sources': [ 'config/openbsd/ares_config.h' ]
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/patches/patch-deps_uv_common.gypi
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/patches/patch-deps_uv_common.gypi   Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-deps_uv_common.gypi,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+Add support for NetBSD.
+
+--- deps/uv/common.gypi.orig   2018-04-24 14:41:22.000000000 +0000
++++ deps/uv/common.gypi
+@@ -134,7 +134,7 @@
+           }]
+         ]
+       }],
+-      ['OS in "freebsd dragonflybsd linux openbsd solaris android aix"', {
++      ['OS in "freebsd dragonflybsd linux openbsd netbsd solaris android aix"', {
+         'cflags': [ '-Wall' ],
+         'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
+         'target_conditions': [
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/patches/patch-deps_uvwasi_include_wasi__serdes.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/patches/patch-deps_uvwasi_include_wasi__serdes.h    Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-deps_uvwasi_include_wasi__serdes.h,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+NetBSD<9 used to have #define uint8_t etc. which caused issues with complicated
+defines like this one.
+
+--- deps/uvwasi/include/wasi_serdes.h.orig     2020-08-11 14:32:04.000000000 +0000
++++ deps/uvwasi/include/wasi_serdes.h
+@@ -3,6 +3,13 @@
+ 
+ #include "wasi_types.h"
+ 
++#ifdef __NetBSD__
++#undef uint8_t
++#undef uint16_t
++#undef uint32_t
++#undef uint64_t
++#endif
++
+ /* Basic uint{8,16,32,64}_t read/write functions. */
+ 
+ #define BASIC_TYPE(name, type)                                                \
diff -r 3f3c01eb529a -r 29bbbfdf259e lang/nodejs14/patches/patch-deps_v8_src_base_atomicops.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs14/patches/patch-deps_v8_src_base_atomicops.h  Wed Mar 30 06:51:30 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-deps_v8_src_base_atomicops.h,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+--- deps/v8/src/base/atomicops.h.orig  2020-07-03 17:37:00.000000000 +0000
++++ deps/v8/src/base/atomicops.h
+@@ -52,9 +52,13 @@ using Atomic64 = intptr_t;



Home | Main Index | Thread Index | Old Index