nodejs10: removed, end of life

This commit is contained in:
adam 2022-04-05 16:57:17 +00:00
parent 94d692ff12
commit a712c01d4b
32 changed files with 10 additions and 712 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.643 2022/03/30 06:51:30 adam Exp $
# $NetBSD: Makefile,v 1.644 2022/04/05 16:57:17 adam Exp $
#
COMMENT= Programming languages
@ -175,7 +175,6 @@ SUBDIR+= nhc98
SUBDIR+= nim
SUBDIR+= njs
SUBDIR+= nodejs
SUBDIR+= nodejs10
SUBDIR+= nodejs12
SUBDIR+= nodejs14
SUBDIR+= npm

View file

@ -1,4 +1,4 @@
# $NetBSD: nodeversion.mk,v 1.8 2022/03/30 06:52:33 adam Exp $
# $NetBSD: nodeversion.mk,v 1.9 2022/04/05 16:57:17 adam Exp $
# This file determins which nodejs version is used as a dependency for
# a package.
@ -8,8 +8,8 @@
# NODE_VERSION_DEFAULT
# The preferred node version to use.
#
# Possible values: 10 12 14 16
# Default: 10
# Possible values: 12 14 16
# Default: 16
#
# === Infrastructure variables ===
#
@ -27,13 +27,13 @@
# is significant; those listed earlier are preferred over those
# listed later.
#
# Possible values: 10 12 14 16
# Default: 10 12 14 16
# Possible values: 12 14 16
# Default: 12 14 16
#
# NODE_VERSIONS_INCOMPATIBLE
# The node versions that the package *cannot* build against.
#
# Possible values: 10 12 14 16
# Possible values: 12 14 16
# Default: <empty>
#
# Keywords: node
@ -57,8 +57,8 @@ NODE_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)node([0-9])-.*/\2/}
BUILD_DEFS+= NODE_VERSION_DEFAULT
BUILD_DEFS_EFFECTS+= NODE_PACKAGE
NODE_VERSION_DEFAULT?= 10
NODE_VERSIONS_ACCEPTED?= 10 12 14 16
NODE_VERSION_DEFAULT?= 16
NODE_VERSIONS_ACCEPTED?= 12 14 16
NODE_VERSIONS_INCOMPATIBLE?= # empty
# Resolve NODE_VERSIONS_INCOMPATIBLE and generate the _OK vars.
@ -88,9 +88,7 @@ _NODE_VERSION?= ${v}
# In case nothing matched
_NODE_VERSION?= none
.if ${_NODE_VERSION} == "10"
.include "../../lang/nodejs10/buildlink3.mk"
.elif ${_NODE_VERSION} == "12"
.if ${_NODE_VERSION} == "12"
.include "../../lang/nodejs12/buildlink3.mk"
.elif ${_NODE_VERSION} == "14"
.include "../../lang/nodejs14/buildlink3.mk"

View file

@ -1,4 +0,0 @@
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 10.x LTS release.

View file

@ -1,40 +0,0 @@
# $NetBSD: Makefile,v 1.26 2021/12/08 16:02:17 adam Exp $
DISTNAME= node-v10.24.1
EXTRACT_SUFX= .tar.xz
USE_LANGUAGES= c gnu++14
PKGREVISION= 3
.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-http-parser
CONFIGURE_ARGS+= --shared-nghttp2
CONFIGURE_ARGS+= --with-intl=system-icu
PYTHON_VERSIONS_ACCEPTED= 27
CHECK_PORTABILITY_SKIP+= deps/openssl/openssl/.travis-create-release.sh
CHECK_PORTABILITY_SKIP+= tools/macos-installer/*
.if ${MACHINE_ARCH} == "i386"
# 64 bit atomic ops are required
CXXFLAGS+= -march=i586
# required for SSE2 code under i386.
CXXFLAGS+= -mstackrealign
.endif
.include "../../lang/nodejs/options.mk"
.include "../../lang/nodejs/Makefile.common"
.include "../../textproc/icu/buildlink3.mk"
# Requires http_parser_set_max_header_size
BUILDLINK_API_DEPENDS.http-parser+= http-parser>=2.9.0
.include "../../www/http-parser/buildlink3.mk"
# Requires nghttp2_option_set_max_settings
BUILDLINK_API_DEPENDS.nghttp2+= nghttp2>=1.41.0
.include "../../www/nghttp2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,30 +0,0 @@
@comment $NetBSD: PLIST,v 1.2 2020/01/24 18:57:09 adam Exp $
bin/node
include/node/common.gypi
include/node/config.gypi
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-inspector-protocol.h
include/node/v8-inspector.h
include/node/v8-platform.h
include/node/v8-profiler.h
include/node/v8-testing.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.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/doc/node/lldbinit
share/systemtap/tapset/node.stp

View file

@ -1,40 +0,0 @@
# $NetBSD: buildlink3.mk,v 1.10 2021/09/29 19:00:08 adam Exp $
BUILDLINK_TREE+= nodejs
.if !defined(NODEJS_BUILDLINK3_MK)
NODEJS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.nodejs+= nodejs>=10
BUILDLINK_ABI_DEPENDS.nodejs?= nodejs>=10.24.1nb2
BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs10
.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 "../../net/libcares/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
# Requires http_parser_set_max_header_size
BUILDLINK_API_DEPENDS.http-parser+= http-parser>=2.9.0
.include "../../www/http-parser/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

View file

@ -1,30 +0,0 @@
$NetBSD: distinfo,v 1.17 2021/10/26 10:51:44 nia Exp $
BLAKE2s (node-v10.24.1.tar.xz) = 74230b550018b205526861a0d3e0770adb598c5b43ae79f7a81f7166f9575f05
SHA512 (node-v10.24.1.tar.xz) = c25eca3c26dfb82be2e2e2f7b5401fb1811a9586732e12944929bcb6ad1f2bd7a3a97681008922cd28bf330b2672907dd637c718e8c7c55444b9028a2bafdb6d
Size (node-v10.24.1.tar.xz) = 21647996 bytes
SHA1 (patch-common.gypi) = de37949f38d9bd39a18b59d59ec74e528bd323ac
SHA1 (patch-deps_cares_cares.gyp) = 22b44f2ac59963f694dfe4f4585e08960b3dec32
SHA1 (patch-deps_uv_common.gypi) = d38a9c8d9e3522f15812aec2f5b1e1e636d4bab3
SHA1 (patch-deps_v8_src_arm_assembler-arm-inl.h) = 56a5d6539d31e19673ef61cc91f003109c69dc29
SHA1 (patch-deps_v8_src_arm_assembler-arm.cc) = f32d5d2a1096f822c813eaf6d02b9348564213f6
SHA1 (patch-deps_v8_src_arm_cpu-arm.cc) = d0d11ac474ab109a6f40b26fa457b12d742eb48d
SHA1 (patch-deps_v8_src_base_atomicops.h) = 552d2b7781b39b93392fd00043b1cf4cb10802da
SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = 427c7712fc1c2872fc48e593f7ab491c69ee44e3
SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 5e593879dbab095f99e82593272a0de91043f9a8
SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = 0d80cc6587af9220832de112834e9f50242f819f
SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = aa84bf1dbaac5808529f6b01502d117c88751649
SHA1 (patch-deps_v8_src_compiler_types.h) = 711cc94535200374104c3cd1f0fbbd00994701a6
SHA1 (patch-deps_v8_src_globals.h) = 6695a381000844ad9837bdbc3edbe9040ec4d5ff
SHA1 (patch-deps_v8_src_log-utils.h) = 765e4e4af2cb11e38c033174ac92fbb6ee1fd480
SHA1 (patch-deps_v8_src_objects_intl-objects.cc) = 7d5a9cb3dd02fb1fa99c8f0645d015dff37f282f
SHA1 (patch-deps_v8_src_runtime_runtime-intl.cc) = dffa78003abb45e2bae0ee3cd75b1daee64160e1
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) = 223e92bc8a5f4f6117c1f1275d0f82b5191e768b
SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff
SHA1 (patch-tools_gyp_pylib_gyp_common.py) = 8d76b78e46b0ba2fef08294872e17a068d595f32
SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = be3cc1aaa85c3d59b6f2758df813cb5ad8d8f74e
SHA1 (patch-tools_gyp_pylib_gyp_xcode__emulation.py) = 15937c419f3226ab280c7bcd5d726773cb5add57
SHA1 (patch-tools_install.py) = aae60d31e8c2e74f18c61c328913412545943d79

View file

@ -1,20 +0,0 @@
$NetBSD: patch-common.gypi,v 1.1 2019/12/09 20:05:40 adam Exp $
Add support for NetBSD.
--- common.gypi.orig 2018-04-24 14:41:15.000000000 +0000
+++ common.gypi
@@ -315,11 +315,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' ],
'ldflags': [ '-rdynamic' ],

View file

@ -1,17 +0,0 @@
$NetBSD: patch-deps_cares_cares.gyp,v 1.1 2019/12/09 20:05:40 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' ]

View file

@ -1,15 +0,0 @@
$NetBSD: patch-deps_uv_common.gypi,v 1.1 2019/12/09 20:05:40 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': [

View file

@ -1,13 +0,0 @@
$NetBSD: patch-deps_v8_src_arm_assembler-arm-inl.h,v 1.1 2019/12/09 20:05:40 adam Exp $
--- deps/v8/src/arm/assembler-arm-inl.h.orig 2018-12-10 21:19:05.000000000 +0000
+++ deps/v8/src/arm/assembler-arm-inl.h
@@ -386,7 +386,7 @@ void Assembler::set_target_address_at(Ad
IsOrrImmed(Memory::int32_at(pc + 2 * kInstrSize)) &&
IsOrrImmed(Memory::int32_at(pc + 3 * kInstrSize)));
uint32_t* instr_ptr = reinterpret_cast<uint32_t*>(pc);
- uint32_t immediate = reinterpret_cast<uint32_t>(target);
+ uint32_t immediate = static_cast<uint32_t>(target);
instr_ptr[0] = PatchShiftImm(instr_ptr[0], immediate & kImm8Mask);
instr_ptr[1] = PatchShiftImm(instr_ptr[1], immediate & (kImm8Mask << 8));
instr_ptr[2] = PatchShiftImm(instr_ptr[2], immediate & (kImm8Mask << 16));

View file

@ -1,22 +0,0 @@
$NetBSD: patch-deps_v8_src_arm_assembler-arm.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
--- deps/v8/src/arm/assembler-arm.cc.orig 2018-12-26 05:26:14.000000000 +0000
+++ deps/v8/src/arm/assembler-arm.cc
@@ -343,7 +343,7 @@ Address RelocInfo::embedded_address() co
}
uint32_t RelocInfo::embedded_size() const {
- return reinterpret_cast<uint32_t>(
+ return static_cast<uint32_t>(
Assembler::target_address_at(pc_, constant_pool_));
}
@@ -354,7 +354,7 @@ void RelocInfo::set_embedded_address(Add
void RelocInfo::set_embedded_size(uint32_t size, ICacheFlushMode flush_mode) {
Assembler::set_target_address_at(pc_, constant_pool_,
- reinterpret_cast<Address>(size), flush_mode);
+ static_cast<Address>(size), flush_mode);
}
void RelocInfo::set_js_to_wasm_address(Address address,

View file

@ -1,24 +0,0 @@
$NetBSD: patch-deps_v8_src_arm_cpu-arm.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
--- deps/v8/src/arm/cpu-arm.cc.orig 2016-04-26 19:50:10.000000000 +0000
+++ deps/v8/src/arm/cpu-arm.cc
@@ -7,6 +7,9 @@
#ifdef __QNXNTO__
#include <sys/mman.h> // for cache flushing.
#undef MAP_TYPE
+#elif defined(__NetBSD__)
+#include <sys/types.h>
+#include <machine/sysarch.h> // for cache flushing.
#else
#include <sys/syscall.h> // for cache flushing.
#endif
@@ -24,6 +27,9 @@ void CpuFeatures::FlushICache(void* star
#if !defined(USE_SIMULATOR)
#if V8_OS_QNX
msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE);
+#elif defined(__NetBSD__)
+ struct arm_sync_icache_args args = { .addr = (uintptr_t)start, .len = size };
+ sysarch(ARM_SYNC_ICACHE, (void *)&args);
#else
register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start);
register uint32_t end asm("r1") = beg + size;

View file

@ -1,18 +0,0 @@
$NetBSD: patch-deps_v8_src_base_atomicops.h,v 1.1 2019/12/09 20:05:40 adam Exp $
--- deps/v8/src/base/atomicops.h.orig 2016-10-25 13:26:03.000000000 +0000
+++ deps/v8/src/base/atomicops.h
@@ -52,9 +52,13 @@ typedef intptr_t Atomic64;
#endif // defined(__ILP32__)
#endif // defined(V8_HOST_ARCH_64_BIT)
+#if defined(__NetBSD__) && defined(__arm__)
+typedef int32_t AtomicWord;
+#else
// Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or
// Atomic64 routines below, depending on your architecture.
typedef intptr_t AtomicWord;
+#endif
// Atomically execute:
// result = *ptr;

View file

@ -1,32 +0,0 @@
$NetBSD: patch-deps_v8_src_base_platform_platform-freebsd.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
Overlapping variables, taken from https://github.com/joyent/node/issues/9175
--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2018-04-24 14:41:24.000000000 +0000
+++ deps/v8/src/base/platform/platform-freebsd.cc
@@ -45,10 +45,10 @@ static unsigned StringToLong(char* buffe
}
std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
- std::vector<SharedLibraryAddress> result;
+ std::vector<SharedLibraryAddress> address_result;
static const int MAP_LENGTH = 1024;
int fd = open("/proc/self/maps", O_RDONLY);
- if (fd < 0) return result;
+ if (fd < 0) return address_result;
while (true) {
char addr_buffer[11];
addr_buffer[0] = '0';
@@ -78,10 +78,10 @@ std::vector<OS::SharedLibraryAddress> OS
// There may be no filename in this line. Skip to next.
if (start_of_path == nullptr) continue;
buffer[bytes_read] = 0;
- result.push_back(SharedLibraryAddress(start_of_path, start, end));
+ address_result.push_back(SharedLibraryAddress(start_of_path, start, end));
}
close(fd);
- return result;
+ return address_result;
}
void OS::SignalCodeMovingGC() {}

View file

@ -1,55 +0,0 @@
$NetBSD: patch-deps_v8_src_base_platform_platform-openbsd.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
Add support for NetBSD/arm.
--- deps/v8/src/base/platform/platform-openbsd.cc.orig 2017-09-26 21:14:30.000000000 +0000
+++ deps/v8/src/base/platform/platform-openbsd.cc
@@ -34,6 +34,48 @@
namespace v8 {
namespace base {
+#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
+#if defined(__ARM_PCS_VFP)
+ return true;
+#else
+ return false;
+#endif
+
+#elif GCC_VERSION < 40500
+ 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 GCC 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__
+
TimezoneCache* OS::CreateTimezoneCache() {
return new PosixDefaultTimezoneCache();
}

View file

@ -1,39 +0,0 @@
$NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
Use sysconf(_SC_THREAD_STACK_MIN) instead of PTHREAD_STACK_MIN.
Cast explicitly.
--- deps/v8/src/base/platform/platform-posix.cc.orig 2018-04-24 14:41:24.000000000 +0000
+++ deps/v8/src/base/platform/platform-posix.cc
@@ -480,6 +480,8 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());
+#elif V8_OS_NETBSD || V8_OS_FREEBSD
+ return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
#elif V8_OS_AIX
return static_cast<int>(thread_self());
#elif V8_OS_FUCHSIA
@@ -670,8 +672,13 @@ Thread::Thread(const Options& options)
: data_(new PlatformData),
stack_size_(options.stack_size()),
start_semaphore_(nullptr) {
+#if defined(__NetBSD__)
+ if (stack_size_ > 0 && static_cast<size_t>(stack_size_) < sysconf(_SC_THREAD_STACK_MIN)) {
+ stack_size_ = sysconf(_SC_THREAD_STACK_MIN);
+#else
if (stack_size_ > 0 && static_cast<size_t>(stack_size_) < PTHREAD_STACK_MIN) {
stack_size_ = PTHREAD_STACK_MIN;
+#endif
}
set_name(options.name());
}
@@ -687,7 +694,7 @@ static void SetThreadName(const char* na
pthread_set_name_np(pthread_self(), name);
#elif V8_OS_NETBSD
STATIC_ASSERT(Thread::kMaxThreadNameLength <= PTHREAD_MAX_NAMELEN_NP);
- pthread_setname_np(pthread_self(), "%s", name);
+ pthread_setname_np(pthread_self(), "%s", (void *)name);
#elif V8_OS_MACOSX
// pthread_setname_np is only available in 10.6 or later, so test
// for it at runtime.

View file

@ -1,17 +0,0 @@
$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
Work around lack of sem_timedwait(3) in NetBSD < 6.99.4.
Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources.
--- deps/v8/src/base/platform/semaphore.cc.orig 2016-10-25 13:26:03.000000000 +0000
+++ deps/v8/src/base/platform/semaphore.cc
@@ -11,6 +11,10 @@
#include <errno.h>
+#if V8_OS_NETBSD
+#include <sys/param.h> // for __NetBSD_Version__
+#endif
+
#include "src/base/logging.h"
#include "src/base/platform/elapsed-timer.h"
#include "src/base/platform/time.h"

View file

@ -1,21 +0,0 @@
$NetBSD: patch-deps_v8_src_compiler_types.h,v 1.1 2019/12/09 20:05:40 adam Exp $
NetBSD 6 doesn't have nearbyint/nearbyintf.
--- deps/v8/src/compiler/types.h.orig 2017-05-30 17:31:37.000000000 +0000
+++ deps/v8/src/compiler/types.h
@@ -5,6 +5,14 @@
#ifndef V8_COMPILER_TYPES_H_
#define V8_COMPILER_TYPES_H_
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Version__ - 0 < 699001700
+#define nearbyint rint
+#define nearbyintf rintf
+#endif
+#endif
+
#include "src/base/compiler-specific.h"
#include "src/conversions.h"
#include "src/globals.h"

View file

@ -1,14 +0,0 @@
$NetBSD: patch-deps_v8_src_globals.h,v 1.1 2019/12/09 20:05:40 adam Exp $
stdarg.h needed for va_list on at least NetBSD.
--- deps/v8/src/globals.h.orig 2018-04-24 14:41:26.000000000 +0000
+++ deps/v8/src/globals.h
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <stdarg.h>
#include <limits>
#include <ostream>

View file

@ -1,17 +0,0 @@
$NetBSD: patch-deps_v8_src_log-utils.h,v 1.1 2019/12/09 20:05:40 adam Exp $
Need stdarg.h for va_list.
--- deps/v8/src/log-utils.h.orig 2018-04-24 14:41:27.000000000 +0000
+++ deps/v8/src/log-utils.h
@@ -15,6 +15,10 @@
#include "src/flags.h"
#include "src/ostreams.h"
+#if defined(__NetBSD__)
+#include <stdarg.h>
+#endif
+
namespace v8 {
namespace internal {

View file

@ -1,42 +0,0 @@
$NetBSD: patch-deps_v8_src_objects_intl-objects.cc,v 1.1 2020/11/14 09:54:23 jperkin Exp $
icu 68.1 compat.
--- deps/v8/src/objects/intl-objects.cc.orig 2020-09-15 13:25:38.000000000 +0000
+++ deps/v8/src/objects/intl-objects.cc
@@ -243,7 +243,7 @@ void SetResolvedDateSettings(Isolate* is
char result[ULOC_FULLNAME_CAPACITY];
status = U_ZERO_ERROR;
uloc_toLanguageTag(icu_locale.getName(), result, ULOC_FULLNAME_CAPACITY,
- FALSE, &status);
+ false, &status);
if (U_SUCCESS(status)) {
JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("locale"),
factory->NewStringFromAsciiChecked(result),
@@ -422,7 +422,7 @@ void SetResolvedNumericSettings(Isolate*
char result[ULOC_FULLNAME_CAPACITY];
UErrorCode status = U_ZERO_ERROR;
uloc_toLanguageTag(icu_locale.getName(), result, ULOC_FULLNAME_CAPACITY,
- FALSE, &status);
+ false, &status);
if (U_SUCCESS(status)) {
JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("locale"),
factory->NewStringFromAsciiChecked(result),
@@ -657,7 +657,7 @@ void SetResolvedCollatorSettings(Isolate
char result[ULOC_FULLNAME_CAPACITY];
status = U_ZERO_ERROR;
uloc_toLanguageTag(icu_locale.getName(), result, ULOC_FULLNAME_CAPACITY,
- FALSE, &status);
+ false, &status);
if (U_SUCCESS(status)) {
JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("locale"),
factory->NewStringFromAsciiChecked(result),
@@ -796,7 +796,7 @@ void SetResolvedBreakIteratorSettings(Is
char result[ULOC_FULLNAME_CAPACITY];
status = U_ZERO_ERROR;
uloc_toLanguageTag(icu_locale.getName(), result, ULOC_FULLNAME_CAPACITY,
- FALSE, &status);
+ false, &status);
if (U_SUCCESS(status)) {
JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("locale"),
factory->NewStringFromAsciiChecked(result),

View file

@ -1,45 +0,0 @@
$NetBSD: patch-deps_v8_src_runtime_runtime-intl.cc,v 1.1 2020/11/14 09:54:23 jperkin Exp $
icu 68.1 compat.
--- deps/v8/src/runtime/runtime-intl.cc.orig 2020-09-15 13:25:38.000000000 +0000
+++ deps/v8/src/runtime/runtime-intl.cc
@@ -85,7 +85,7 @@ RUNTIME_FUNCTION(Runtime_CanonicalizeLan
char result[ULOC_FULLNAME_CAPACITY];
// Force strict BCP47 rules.
- uloc_toLanguageTag(icu_result, result, ULOC_FULLNAME_CAPACITY, TRUE, &error);
+ uloc_toLanguageTag(icu_result, result, ULOC_FULLNAME_CAPACITY, true, &error);
if (U_FAILURE(error) || error == U_STRING_NOT_TERMINATED_WARNING) {
return *factory->NewStringFromAsciiChecked(kInvalidTag);
@@ -132,7 +132,7 @@ RUNTIME_FUNCTION(Runtime_AvailableLocale
error = U_ZERO_ERROR;
// No need to force strict BCP47 rules.
- uloc_toLanguageTag(icu_name, result, ULOC_FULLNAME_CAPACITY, FALSE, &error);
+ uloc_toLanguageTag(icu_name, result, ULOC_FULLNAME_CAPACITY, false, &error);
if (U_FAILURE(error) || error == U_STRING_NOT_TERMINATED_WARNING) {
// This shouldn't happen, but lets not break the user.
continue;
@@ -164,7 +164,7 @@ RUNTIME_FUNCTION(Runtime_GetDefaultICULo
char result[ULOC_FULLNAME_CAPACITY];
UErrorCode status = U_ZERO_ERROR;
uloc_toLanguageTag(default_locale.getName(), result, ULOC_FULLNAME_CAPACITY,
- FALSE, &status);
+ false, &status);
if (U_SUCCESS(status)) {
return *factory->NewStringFromAsciiChecked(result);
}
@@ -399,9 +399,9 @@ RUNTIME_FUNCTION(Runtime_InternalCompare
std::unique_ptr<uc16[]> sap1;
std::unique_ptr<uc16[]> sap2;
icu::UnicodeString string_val1(
- FALSE, GetUCharBufferFromFlat(flat1, &sap1, length1), length1);
+ false, GetUCharBufferFromFlat(flat1, &sap1, length1), length1);
icu::UnicodeString string_val2(
- FALSE, GetUCharBufferFromFlat(flat2, &sap2, length2), length2);
+ false, GetUCharBufferFromFlat(flat2, &sap2, length2), length2);
result = collator->compare(string_val1, string_val2, status);
}
if (U_FAILURE(status)) return isolate->ThrowIllegalOperation();

View file

@ -1,15 +0,0 @@
$NetBSD: patch-deps_v8_tools_run-llprof.sh,v 1.1 2019/12/09 20:05:40 adam Exp $
POSIX shell portability.
--- deps/v8/tools/run-llprof.sh.orig 2015-03-31 22:13:01.000000000 +0000
+++ deps/v8/tools/run-llprof.sh
@@ -46,7 +46,7 @@ framework, then calls the low level tick
EOF
}
-if [ $# -eq 0 ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
+if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
usage
exit 1
fi

View file

@ -1,14 +0,0 @@
$NetBSD: patch-node.gypi,v 1.1 2019/12/09 20:05:40 adam 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!': [

View file

@ -1,15 +0,0 @@
$NetBSD: patch-src_cares__wrap.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
NetBSD has no AI_V4MAPPED.
--- src/cares_wrap.cc.orig 2017-05-30 17:32:13.000000000 +0000
+++ src/cares_wrap.cc
@@ -47,7 +47,7 @@
# include <arpa/nameser.h>
#endif
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined(__NetBSD__)
# define AI_V4MAPPED 0
#endif

View file

@ -1,13 +0,0 @@
$NetBSD: patch-src_inspector__agent.cc,v 1.2 2020/10/02 12:23:54 adam Exp $
--- src/inspector_agent.cc.orig 2020-09-15 13:25:39.000000000 +0000
+++ src/inspector_agent.cc
@@ -102,7 +102,7 @@ static int StartDebugSignalHandler() {
CHECK_EQ(0, uv_sem_init(&start_io_thread_semaphore, 0));
pthread_attr_t attr;
CHECK_EQ(0, pthread_attr_init(&attr));
-#if defined(PTHREAD_STACK_MIN) && !defined(__FreeBSD__)
+#if defined(PTHREAD_STACK_MIN) && !defined(__FreeBSD__) && !defined(__NetBSD__)
// PTHREAD_STACK_MIN is 2 KB with musl libc, which is too small to safely
// receive signals. PTHREAD_STACK_MIN + MINSIGSTKSZ is 8 KB on arm64, which
// is the musl architecture with the biggest MINSIGSTKSZ so let's use that

View file

@ -1,15 +0,0 @@
$NetBSD: patch-src_node__postmortem__metadata.cc,v 1.1 2019/12/09 20:05:40 adam Exp $
--- src/node_postmortem_metadata.cc.orig 2018-03-23 20:05:49.909811719 +0000
+++ src/node_postmortem_metadata.cc
@@ -11,6 +11,10 @@
#define NODEDBG_OFFSET(Class, Member, Type) \
NODEDBG_SYMBOL(offset_ ## Class ## __ ## Member ## __ ## Type)
+// Some systems provide macros for the types as well, which get expanded
+// by the nested macros here.
+#undef uintptr_t
+
// These are the constants describing Node internal structures. Every constant
// should use the format described above. These constants are declared as
// global integers so that they'll be present in the generated node binary. They

View file

@ -1,14 +0,0 @@
$NetBSD: patch-tools_gyp_pylib_gyp_common.py,v 1.1 2019/12/09 20:05:40 adam Exp $
Add support for DragonFly.
--- tools/gyp/pylib/gyp/common.py.orig 2017-05-03 02:00:16.000000000 +0000
+++ tools/gyp/pylib/gyp/common.py
@@ -427,6 +427,8 @@ def GetFlavor(params):
return 'openbsd'
if sys.platform.startswith('netbsd'):
return 'netbsd'
+ if sys.platform.startswith('dragonflybsd'):
+ return 'dragonflybsd'
if sys.platform.startswith('aix'):
return 'aix'

View file

@ -1,25 +0,0 @@
$NetBSD: patch-tools_gyp_pylib_gyp_generator_make.py,v 1.1 2019/12/09 20:05:40 adam Exp $
Add support for NetBSD and DragonFly.
Ensure we use the system libtool on OSX.
--- tools/gyp/pylib/gyp/generator/make.py.orig 2013-12-12 05:20:06.000000000 +0000
+++ tools/gyp/pylib/gyp/generator/make.py
@@ -174,7 +174,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
LINK_COMMANDS_MAC = """\
quiet_cmd_alink = LIBTOOL-STATIC $@
-cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
+cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool /usr/bin/libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
@@ -2012,7 +2012,7 @@ def GenerateOutput(target_list, target_d
'flock': './gyp-flock-tool flock',
'flock_index': 2,
})
- elif flavor == 'freebsd':
+ elif flavor == 'freebsd' or flavor == 'dragonflybsd' or flavor == 'netbsd':
# Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific.
header_params.update({
'flock': 'lockf',

View file

@ -1,15 +0,0 @@
$NetBSD: patch-tools_gyp_pylib_gyp_xcode__emulation.py,v 1.1 2019/12/09 20:05:40 adam Exp $
Do not generate debugging symbols (uses lots of disk space).
--- tools/gyp/pylib/gyp/xcode_emulation.py.orig 2017-05-30 14:15:04.000000000 +0000
+++ tools/gyp/pylib/gyp/xcode_emulation.py
@@ -577,7 +577,7 @@ class XcodeSettings(object):
self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
- if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
+ if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='NO'):
dbg_format = self._Settings().get('DEBUG_INFORMATION_FORMAT', 'dwarf')
if dbg_format == 'dwarf':
cflags.append('-gdwarf-2')

View file

@ -1,18 +0,0 @@
$NetBSD: patch-tools_install.py,v 1.1 2019/12/09 20:05:40 adam Exp $
Install man pages under the right directory.
--- tools/install.py.orig 2017-04-11 15:48:50.000000000 +0000
+++ tools/install.py
@@ -136,10 +136,7 @@ def files(action):
action(['deps/v8/tools/lldbinit'], 'share/doc/node/')
action(['deps/v8/tools/lldb_commands.py'], 'share/doc/node/')
- if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
- action(['doc/node.1'], 'man/man1/')
- else:
- action(['doc/node.1'], 'share/man/man1/')
+ action(['doc/node.1'], os.environ.get('PKGMANDIR') + '/man1/')
if 'true' == variables.get('node_install_npm'): npm_files(action)