From nobody Sat Oct 23 11:00:50 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E9CE217F7098; Sat, 23 Oct 2021 11:00:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hbytp5ckJz4rCC; Sat, 23 Oct 2021 11:00:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9C96E20FC7; Sat, 23 Oct 2021 11:00:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19NB0oXq031502; Sat, 23 Oct 2021 11:00:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19NB0om6031501; Sat, 23 Oct 2021 11:00:50 GMT (envelope-from git) Date: Sat, 23 Oct 2021 11:00:50 GMT Message-Id: <202110231100.19NB0om6031501@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Bradley T. Hughes" Subject: git: bd8376fbfc3d - main - www/node16: copy from www/node, update 16.11.1 -> 16.12.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bhughes X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bd8376fbfc3da0fa4c23e9bcd03213e52f9dab64 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bhughes: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd8376fbfc3da0fa4c23e9bcd03213e52f9dab64 commit bd8376fbfc3da0fa4c23e9bcd03213e52f9dab64 Author: Bradley T. Hughes AuthorDate: 2021-10-21 22:35:04 +0000 Commit: Bradley T. Hughes CommitDate: 2021-10-23 11:00:34 +0000 www/node16: copy from www/node, update 16.11.1 -> 16.12.0 Create a new port for the latest Node.js v16.x release, which will become the v16.x LTS release line. Update CONFLICTS for the existing Node.js ports to include the new node16 port and remove non-existent ports. https://nodejs.org/en/blog/release/v16.12.0/ MFH: 2021Q4 Sponsored by: Miles AS --- www/Makefile | 1 + www/node/Makefile | 2 +- www/node10/Makefile | 2 +- www/node14/Makefile | 2 +- www/node16/Makefile | 112 +++++ www/node16/distinfo | 3 + www/node16/files/extra-patch-common.gypi | 13 + .../files/extra-patch-tools_v8__gypfiles_v8.gyp | 11 + ...l_config_archs_linux-elf_no-asm_openssl-cl.gypi | 11 + ...nssl_config_archs_linux-elf_no-asm_openssl.gypi | 11 + .../patch-deps_openssl_openssl-cl__no__asm.gypi | 17 + .../files/patch-deps_openssl_openssl__no__asm.gypi | 11 + ...h-deps_v8_src_base_platform_platform-freebsd.cc | 62 +++ .../patch-deps_v8_src_codegen_ppc_constants-ppc.h | 20 + .../files/patch-deps_v8_src_libsampler_sampler.cc | 13 + www/node16/files/patch-node.gypi | 12 + www/node16/files/patch-src_cares__wrap.h | 11 + www/node16/pkg-descr | 6 + www/node16/pkg-message | 7 + www/node16/pkg-plist | 473 +++++++++++++++++++++ 20 files changed, 797 insertions(+), 3 deletions(-) diff --git a/www/Makefile b/www/Makefile index da60815f527b..5ca49ad24f32 100644 --- a/www/Makefile +++ b/www/Makefile @@ -455,6 +455,7 @@ SUBDIR += node SUBDIR += node10 SUBDIR += node14 + SUBDIR += node16 SUBDIR += nostromo SUBDIR += novnc SUBDIR += novnc-websockify diff --git a/www/node/Makefile b/www/node/Makefile index edc88aa9c90f..382b43e6f03a 100644 --- a/www/node/Makefile +++ b/www/node/Makefile @@ -46,7 +46,7 @@ DTRACE_CONFIGURE_ON= --with-dtrace HAS_CONFIGURE= yes -CONFLICTS_INSTALL= node10-[0-9]* node14-[0-9]* +CONFLICTS_INSTALL= node10-[0-9]* node14-[0-9]* node16-[0-9]* CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --without-npm \ diff --git a/www/node10/Makefile b/www/node10/Makefile index 4fff903be770..db79dc9e7db6 100644 --- a/www/node10/Makefile +++ b/www/node10/Makefile @@ -50,7 +50,7 @@ DTRACE_CONFIGURE_ON= --with-dtrace HAS_CONFIGURE= yes -CONFLICTS_INSTALL= node12-[0-9]* node14-[0-9]* node-[0-9]* +CONFLICTS_INSTALL= node14-[0-9]* node16-[0-9]* node-[0-9]* CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --without-npm \ diff --git a/www/node14/Makefile b/www/node14/Makefile index 3dd568e9554f..9cc6cbb0d7fd 100644 --- a/www/node14/Makefile +++ b/www/node14/Makefile @@ -47,7 +47,7 @@ DTRACE_CONFIGURE_ON= --with-dtrace HAS_CONFIGURE= yes -CONFLICTS_INSTALL= node10-[0-9]* node12-[0-9]* node-[0-9]* +CONFLICTS_INSTALL= node10-[0-9]* node16-[0-9]* node-[0-9]* CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --without-npm \ diff --git a/www/node16/Makefile b/www/node16/Makefile new file mode 100644 index 000000000000..e6c8b0019ee0 --- /dev/null +++ b/www/node16/Makefile @@ -0,0 +1,112 @@ +PORTNAME= node +DISTVERSIONPREFIX= v +DISTVERSION= 16.12.0 +CATEGORIES= www +MASTER_SITES= https://nodejs.org/dist/v${DISTVERSION}/ +PKGNAMESUFFIX= 16 + +MAINTAINER= bhughes@FreeBSD.org +COMMENT= V8 JavaScript for client and server + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BROKEN_SSL= libressl libressl-devel +BROKEN_SSL_REASON= Node.js 16.x requires OpenSSL 1.1.x or the BUNDLED_SSL option enabled +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le + +USES= compiler:c++11-lib gmake python:3.6-3.9,build pkgconfig \ + localbase shebangfix + +OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS DTRACE +OPTIONS_DEFAULT= DTRACE +OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} +OPTIONS_SUB= yes + +.if !exists(/usr/sbin/dtrace) +OPTIONS_EXCLUDE+= DTRACE +.endif + +OPTIONS_EXCLUDE_aarch64= DTRACE +# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented +OPTIONS_EXCLUDE_armv6= DTRACE +OPTIONS_EXCLUDE_armv7= DTRACE +OPTIONS_EXCLUDE_powerpc64= DTRACE +OPTIONS_EXCLUDE_powerpc64le= DTRACE + +BUNDLED_SSL_DESC= Use node.js's bundled OpenSSL implementation +BUNDLED_SSL_USES_OFF= ssl +BUNDLED_SSL_CONFIGURE_OFF= --shared-openssl --openssl-use-def-ca-store +BUNDLED_SSL_RUN_DEPENDS_OFF= ca_root_nss>=0:security/ca_root_nss + +NLS_CONFIGURE_ON= --with-intl=system-icu +NLS_BUILD_DEPENDS= icu>=69.1:devel/icu +NLS_LIB_DEPENDS= libicui18n.so:devel/icu + +DTRACE_CONFIGURE_ON= --with-dtrace + +HAS_CONFIGURE= yes + +CONFLICTS_INSTALL= node10-[0-9]* node14-[0-9]* node-[0-9]* + +CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ + --without-npm \ + --shared-brotli \ + --shared-cares \ + --shared-libuv \ + --shared-nghttp2 \ + --shared-zlib + +SHEBANG_FILES= deps/v8/tools/*.py \ + deps/v8/third_party/inspector_protocol/*.py \ + tools/*.py \ + tools/inspector_protocol/*.py + +PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} +REINPLACE_ARGS= -i '' +MAKE_ENV+= CC.host=${CC} CFLAGS.host="${CFLAGS}" \ + CXX.host=${CXX} CXXFLAGS.host="${CXXFLAGS}" \ + LINK.host=${CXX} LDFLAGS.host="${LDFLAGS}" + +BUILD_DEPENDS+= brotli>=1.0.9,1:archivers/brotli \ + c-ares>=1.17.2:dns/c-ares \ + libuv>=1.42.0:devel/libuv \ + libnghttp2>=1.45.1:www/libnghttp2 \ + objdump:devel/binutils +LIB_DEPENDS+= libbrotlidec.so:archivers/brotli \ + libcares.so:dns/c-ares \ + libuv.so:devel/libuv \ + libnghttp2.so:www/libnghttp2 + +.include + +.if (defined(PPC_ABI) && ${PPC_ABI} == ELFv2) || ${ARCH} == powerpc64le +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-common.gypi +.endif + +.if ${ARCH} == armv6 || ${ARCH} == armv7 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tools_v8__gypfiles_v8.gyp +.endif + +.if ${PORT_OPTIONS:MBUNDLED_SSL} && ${ARCH} != amd64 +CONFIGURE_ARGS+=--openssl-no-asm +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + ${WRKSRC}/tools/v8_gypfiles/v8.gyp + +post-configure: + # Post-process Makefile and *.mk files created by node-gyp and remove + # all occurrences of -I${LOCALBASE}/include. C*FLAGS include this + # before all -I../deps/* for bundled code. This can cause build + # breakages if the dependency is installed in ${LOCALBASE}. The + # USES+=localbase # above will ensure that we pick up includes for real + # external dependencies. + ${FIND} ${WRKSRC}/out -type f -print0 \ + | ${XARGS} -0 ${REINPLACE_CMD} -e "s|-I${LOCALBASE}/include||g" + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/node + +.include diff --git a/www/node16/distinfo b/www/node16/distinfo new file mode 100644 index 000000000000..c679f6412e28 --- /dev/null +++ b/www/node16/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1634856024 +SHA256 (node-v16.12.0.tar.gz) = bceb8098e276c6bb6b3e88223ed378a6c786491b6a3f6b22ae3fd8774724a9cb +SIZE (node-v16.12.0.tar.gz) = 63736111 diff --git a/www/node16/files/extra-patch-common.gypi b/www/node16/files/extra-patch-common.gypi new file mode 100644 index 000000000000..8e817a2959c9 --- /dev/null +++ b/www/node16/files/extra-patch-common.gypi @@ -0,0 +1,13 @@ +--- common.gypi.orig 2019-10-01 15:32:40.000000000 +0200 ++++ common.gypi 2019-10-16 12:47:09.236138000 +0200 +@@ -390,8 +390,8 @@ + 'ldflags': [ '-m32' ], + }], + [ 'target_arch=="ppc64" and OS!="aix"', { +- 'cflags': [ '-m64', '-mminimal-toc' ], +- 'ldflags': [ '-m64' ], ++ 'cflags': [ '-m64' ], ++ 'ldflags': [ '-m64' ], + }], + [ 'target_arch=="s390x"', { + 'cflags': [ '-m64', '-march=z196' ], diff --git a/www/node16/files/extra-patch-tools_v8__gypfiles_v8.gyp b/www/node16/files/extra-patch-tools_v8__gypfiles_v8.gyp new file mode 100644 index 000000000000..9749a96d68e5 --- /dev/null +++ b/www/node16/files/extra-patch-tools_v8__gypfiles_v8.gyp @@ -0,0 +1,11 @@ +--- tools/v8_gypfiles/v8.gyp.orig 2021-04-20 11:30:16 UTC ++++ tools/v8_gypfiles/v8.gyp +@@ -774,7 +774,7 @@ + }], + # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library + # to implement atomic memory access +- ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm", "riscv64"]', { ++ ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "riscv64"]', { + 'link_settings': { + 'libraries': ['-latomic', ], + }, diff --git a/www/node16/files/patch-deps_openssl_config_archs_linux-elf_no-asm_openssl-cl.gypi b/www/node16/files/patch-deps_openssl_config_archs_linux-elf_no-asm_openssl-cl.gypi new file mode 100644 index 000000000000..aae558fe58db --- /dev/null +++ b/www/node16/files/patch-deps_openssl_config_archs_linux-elf_no-asm_openssl-cl.gypi @@ -0,0 +1,11 @@ +--- deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi.orig 2019-08-06 20:46:23 UTC ++++ deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi +@@ -12,7 +12,7 @@ + '-Wall -O3 -fomit-frame-pointer', + ], + 'openssl_ex_libs_linux-elf': [ +- '-ldl -pthread', ++ '-pthread', + ], + 'openssl_cli_srcs_linux-elf': [ + 'openssl/apps/asn1pars.c', diff --git a/www/node16/files/patch-deps_openssl_config_archs_linux-elf_no-asm_openssl.gypi b/www/node16/files/patch-deps_openssl_config_archs_linux-elf_no-asm_openssl.gypi new file mode 100644 index 000000000000..1da46abc11ad --- /dev/null +++ b/www/node16/files/patch-deps_openssl_config_archs_linux-elf_no-asm_openssl.gypi @@ -0,0 +1,11 @@ +--- deps/openssl/config/archs/linux-elf/no-asm/openssl.gypi.orig 2021-03-17 20:16:25 UTC ++++ deps/openssl/config/archs/linux-elf/no-asm/openssl.gypi +@@ -698,7 +698,7 @@ + '-Wall -O3 -fomit-frame-pointer', + ], + 'openssl_ex_libs_linux-elf': [ +- '-ldl -pthread', ++ '-pthread', + ], + }, + 'include_dirs': [ diff --git a/www/node16/files/patch-deps_openssl_openssl-cl__no__asm.gypi b/www/node16/files/patch-deps_openssl_openssl-cl__no__asm.gypi new file mode 100644 index 000000000000..8966d6b4ba0d --- /dev/null +++ b/www/node16/files/patch-deps_openssl_openssl-cl__no__asm.gypi @@ -0,0 +1,17 @@ +--- deps/openssl/openssl-cl_no_asm.gypi.orig 2020-09-08 12:17:10 UTC ++++ deps/openssl/openssl-cl_no_asm.gypi +@@ -1,4 +1,5 @@ + { ++ 'defines': ['OPENSSL_NO_ASM'], + 'conditions': [ + ['target_arch=="ppc" and OS=="aix"', { + 'includes': ['config/archs/aix-gcc/no-asm/openssl-cl.gypi'], +@@ -47,7 +48,7 @@ + 'includes': ['config/archs/linux64-mips64/no-asm/openssl-cl.gypi'], + }, { + # Other architectures don't use assembly +- 'includes': ['config/archs/linux-x86_64/no-asm/openssl-cl.gypi'], ++ 'includes': ['config/archs/linux-elf/no-asm/openssl-cl.gypi'], + }], + ], + } diff --git a/www/node16/files/patch-deps_openssl_openssl__no__asm.gypi b/www/node16/files/patch-deps_openssl_openssl__no__asm.gypi new file mode 100644 index 000000000000..1fef0c4ca71f --- /dev/null +++ b/www/node16/files/patch-deps_openssl_openssl__no__asm.gypi @@ -0,0 +1,11 @@ +--- deps/openssl/openssl_no_asm.gypi.orig 2020-09-08 12:17:11 UTC ++++ deps/openssl/openssl_no_asm.gypi +@@ -48,7 +48,7 @@ + 'includes': ['config/archs/linux64-mips64/no-asm/openssl.gypi'], + }, { + # Other architectures don't use assembly +- 'includes': ['config/archs/linux-x86_64/no-asm/openssl.gypi'], ++ 'includes': ['config/archs/linux-elf/no-asm/openssl.gypi'], + }], + ], + } diff --git a/www/node16/files/patch-deps_v8_src_base_platform_platform-freebsd.cc b/www/node16/files/patch-deps_v8_src_base_platform_platform-freebsd.cc new file mode 100644 index 000000000000..c504d7134dd4 --- /dev/null +++ b/www/node16/files/patch-deps_v8_src_base_platform_platform-freebsd.cc @@ -0,0 +1,62 @@ +--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2020-06-30 17:49:16 UTC ++++ deps/v8/src/base/platform/platform-freebsd.cc +@@ -82,8 +82,8 @@ std::vector OS::GetSharedLib + lib_name = std::string(path); + } + result.push_back(SharedLibraryAddress( +- lib_name, reinterpret_cast(map->kve_start), +- reinterpret_cast(map->kve_end))); ++ lib_name, static_cast(map->kve_start), ++ static_cast(map->kve_end))); + } + + start += ssize; +@@ -94,6 +94,48 @@ std::vector OS::GetSharedLib + } + + void OS::SignalCodeMovingGC() {} ++ ++#ifdef __arm__ ++ ++bool OS::ArmUsingHardFloat() { ++// GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify ++// the Floating Point ABI used (PCS stands for Procedure Call Standard). ++// We use these as well as a couple of other defines to statically determine ++// what FP ABI used. ++// GCC versions 4.4 and below don't support hard-fp. ++// GCC versions 4.5 may support hard-fp without defining __ARM_PCS or ++// __ARM_PCS_VFP. ++ ++#define GCC_VERSION \ ++ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) ++#if GCC_VERSION >= 40600 && !defined(__clang__) ++#if defined(__ARM_PCS_VFP) ++ return true; ++#else ++ return false; ++#endif ++ ++#elif GCC_VERSION < 40500 && !defined(__clang__) ++ return false; ++ ++#else ++#if defined(__ARM_PCS_VFP) ++ return true; ++#elif defined(__ARM_PCS) || defined(__SOFTFP__) || defined(__SOFTFP) || \ ++ !defined(__VFP_FP__) ++ return false; ++#else ++#error \ ++ "Your version of compiler does not report the FP ABI compiled for." \ ++ "Please report it on this issue" \ ++ "http://code.google.com/p/v8/issues/detail?id=2140" ++ ++#endif ++#endif ++#undef GCC_VERSION ++} ++ ++#endif // def __arm__ + + void OS::AdjustSchedulingParams() {} + diff --git a/www/node16/files/patch-deps_v8_src_codegen_ppc_constants-ppc.h b/www/node16/files/patch-deps_v8_src_codegen_ppc_constants-ppc.h new file mode 100644 index 000000000000..449278ef9271 --- /dev/null +++ b/www/node16/files/patch-deps_v8_src_codegen_ppc_constants-ppc.h @@ -0,0 +1,20 @@ +--- deps/v8/src/codegen/ppc/constants-ppc.h.orig 2020-06-30 17:49:17 UTC ++++ deps/v8/src/codegen/ppc/constants-ppc.h +@@ -36,7 +36,7 @@ + #endif + + #if !(V8_HOST_ARCH_PPC || V8_HOST_ARCH_PPC64) || !V8_TARGET_ARCH_PPC64 || \ +- V8_TARGET_LITTLE_ENDIAN || (defined(_CALL_ELF) && _CALL_ELF == 2) ++ (defined(_CALL_ELF) && _CALL_ELF == 2) + #define ABI_RETURNS_OBJECT_PAIRS_IN_REGS 1 + #else + #define ABI_RETURNS_OBJECT_PAIRS_IN_REGS 0 +@@ -44,7 +44,7 @@ + + #if !(V8_HOST_ARCH_PPC || V8_HOST_ARCH_PPC64) || \ + (V8_TARGET_ARCH_PPC64 && \ +- (V8_TARGET_LITTLE_ENDIAN || (defined(_CALL_ELF) && _CALL_ELF == 2))) ++ (defined(_CALL_ELF) && _CALL_ELF == 2)) + #define ABI_CALL_VIA_IP 1 + #else + #define ABI_CALL_VIA_IP 0 diff --git a/www/node16/files/patch-deps_v8_src_libsampler_sampler.cc b/www/node16/files/patch-deps_v8_src_libsampler_sampler.cc new file mode 100644 index 000000000000..13dee5483046 --- /dev/null +++ b/www/node16/files/patch-deps_v8_src_libsampler_sampler.cc @@ -0,0 +1,13 @@ +--- deps/v8/src/libsampler/sampler.cc.orig 2021-10-08 13:38:46 UTC ++++ deps/v8/src/libsampler/sampler.cc +@@ -490,6 +490,10 @@ void SignalHandler::FillRegisterState(void* context, R + state->pc = reinterpret_cast(mcontext.__gregs[_REG_PC]); + state->sp = reinterpret_cast(mcontext.__gregs[_REG_SP]); + state->fp = reinterpret_cast(mcontext.__gregs[_REG_FP]); ++#elif V8_TARGET_ARCH_PPC_BE ++ state->pc = reinterpret_cast(mcontext.mc_srr0); ++ state->sp = reinterpret_cast(mcontext.mc_frame[1]); ++ state->fp = reinterpret_cast(mcontext.mc_frame[31]); + #endif // V8_HOST_ARCH_* + #elif V8_OS_NETBSD + #if V8_HOST_ARCH_IA32 diff --git a/www/node16/files/patch-node.gypi b/www/node16/files/patch-node.gypi new file mode 100644 index 000000000000..ff86f35a170b --- /dev/null +++ b/www/node16/files/patch-node.gypi @@ -0,0 +1,12 @@ +--- node.gypi.orig 2021-03-03 05:40:19 UTC ++++ node.gypi +@@ -319,6 +319,9 @@ + [ 'node_use_openssl=="true"', { + 'defines': [ 'HAVE_OPENSSL=1' ], + 'conditions': [ ++ ['openssl_no_asm==1', { ++ 'defines': [ 'OPENSSL_NO_ASM' ], ++ }], + [ 'node_shared_openssl=="false"', { + 'dependencies': [ + './deps/openssl/openssl.gyp:openssl', diff --git a/www/node16/files/patch-src_cares__wrap.h b/www/node16/files/patch-src_cares__wrap.h new file mode 100644 index 000000000000..7f57f6d8b333 --- /dev/null +++ b/www/node16/files/patch-src_cares__wrap.h @@ -0,0 +1,11 @@ +--- src/cares_wrap.h.orig 2021-08-18 22:13:12 UTC ++++ src/cares_wrap.h +@@ -22,7 +22,7 @@ + # include + #endif // __POSIX__ + +-# include ++# include + + namespace node { + namespace cares_wrap { diff --git a/www/node16/pkg-descr b/www/node16/pkg-descr new file mode 100644 index 000000000000..76a5a3c0625d --- /dev/null +++ b/www/node16/pkg-descr @@ -0,0 +1,6 @@ +Node.js is a JavaScript runtime built on Chrome's V8 JavaScript +engine. Node.js uses an event-driven, non-blocking I/O model that +makes it lightweight and efficient. Node.js' package ecosystem, +npm, is the largest ecosystem of open source libraries in the world. + +WWW: https://nodejs.org/ diff --git a/www/node16/pkg-message b/www/node16/pkg-message new file mode 100644 index 000000000000..ddea08386149 --- /dev/null +++ b/www/node16/pkg-message @@ -0,0 +1,7 @@ +[ +{ type: install + message: <