mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-15 04:51:19 +02:00
add node 14
This commit is contained in:
@@ -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',
|
||||
@@ -0,0 +1,11 @@
|
||||
--- deps/openssl/config/archs/linux-elf/no-asm/openssl.gypi.orig 2019-08-06 20:46:23 UTC
|
||||
+++ deps/openssl/config/archs/linux-elf/no-asm/openssl.gypi
|
||||
@@ -696,7 +696,7 @@
|
||||
'-Wall -O3 -fomit-frame-pointer',
|
||||
],
|
||||
'openssl_ex_libs_linux-elf': [
|
||||
- '-ldl -pthread',
|
||||
+ '-pthread',
|
||||
],
|
||||
},
|
||||
'include_dirs': [
|
||||
@@ -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'],
|
||||
}],
|
||||
],
|
||||
}
|
||||
11
lang/node14/files/patch-deps_openssl_openssl__no__asm.gypi
Normal file
11
lang/node14/files/patch-deps_openssl_openssl__no__asm.gypi
Normal file
@@ -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'],
|
||||
}],
|
||||
],
|
||||
}
|
||||
@@ -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::SharedLibraryAddress> OS::GetSharedLib
|
||||
lib_name = std::string(path);
|
||||
}
|
||||
result.push_back(SharedLibraryAddress(
|
||||
- lib_name, reinterpret_cast<uintptr_t>(map->kve_start),
|
||||
- reinterpret_cast<uintptr_t>(map->kve_end)));
|
||||
+ lib_name, static_cast<uintptr_t>(map->kve_start),
|
||||
+ static_cast<uintptr_t>(map->kve_end)));
|
||||
}
|
||||
|
||||
start += ssize;
|
||||
@@ -94,6 +94,48 @@ std::vector<OS::SharedLibraryAddress> 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() {}
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
--- deps/v8/src/compiler/backend/instruction-selector.cc.orig 2020-07-20 22:18:45 UTC
|
||||
+++ deps/v8/src/compiler/backend/instruction-selector.cc
|
||||
@@ -2808,7 +2808,7 @@ void InstructionSelector::VisitCall(Node* node, BasicB
|
||||
switch (call_descriptor->kind()) {
|
||||
case CallDescriptor::kCallAddress: {
|
||||
int misc_field = static_cast<int>(call_descriptor->ParameterCount());
|
||||
-#if defined(_AIX)
|
||||
+#if defined(_AIX) || (V8_TARGET_ARCH_PPC_BE && (!defined(_CALL_ELF) || _CALL_ELF == 1))
|
||||
// Highest misc_field bit is used on AIX to indicate if a CFunction call
|
||||
// has function descriptor or not.
|
||||
if (!call_descriptor->NoFunctionDescriptor()) {
|
||||
@@ -0,0 +1,12 @@
|
||||
--- deps/v8/src/compiler/backend/ppc/code-generator-ppc.cc.orig 2020-07-20 22:18:45 UTC
|
||||
+++ deps/v8/src/compiler/backend/ppc/code-generator-ppc.cc
|
||||
@@ -1038,8 +1038,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleAr
|
||||
bool isWasmCapiFunction =
|
||||
linkage()->GetIncomingDescriptor()->IsWasmCapiFunction();
|
||||
int offset = (FLAG_enable_embedded_constant_pool ? 20 : 23) * kInstrSize;
|
||||
-
|
||||
-#if defined(_AIX)
|
||||
+#if defined(_AIX) || (V8_TARGET_ARCH_PPC_BE && (!defined(_CALL_ELF) || _CALL_ELF == 1))
|
||||
// AIX/PPC64BE Linux uses a function descriptor
|
||||
int kNumParametersMask = kHasFunctionDescriptorBitMask - 1;
|
||||
num_parameters = kNumParametersMask & misc_field;
|
||||
11
lang/node14/files/patch-deps_v8_src_execution_simulator.h
Normal file
11
lang/node14/files/patch-deps_v8_src_execution_simulator.h
Normal file
@@ -0,0 +1,11 @@
|
||||
--- deps/v8/src/execution/simulator.h.orig 2019-11-21 21:14:01 UTC
|
||||
+++ deps/v8/src/execution/simulator.h
|
||||
@@ -128,7 +128,7 @@ class GeneratedCode {
|
||||
#if defined(V8_TARGET_OS_WIN) && !defined(V8_OS_WIN)
|
||||
FATAL("Generated code execution not possible during cross-compilation.");
|
||||
#endif // defined(V8_TARGET_OS_WIN) && !defined(V8_OS_WIN)
|
||||
-#if V8_OS_AIX
|
||||
+#if V8_OS_AIX || (V8_TARGET_ARCH_PPC_BE && (!defined(_CALL_ELF) || _CALL_ELF == 1))
|
||||
// AIX ABI requires function descriptors (FD). Artificially create a pseudo
|
||||
// FD to ensure correct dispatch to generated code. The 'volatile'
|
||||
// declaration is required to avoid the compiler from not observing the
|
||||
13
lang/node14/files/patch-deps_v8_src_libsampler_sampler.cc
Normal file
13
lang/node14/files/patch-deps_v8_src_libsampler_sampler.cc
Normal file
@@ -0,0 +1,13 @@
|
||||
--- deps/v8/src/libsampler/sampler.cc.orig 2020-06-30 17:49:17 UTC
|
||||
+++ deps/v8/src/libsampler/sampler.cc
|
||||
@@ -482,6 +482,10 @@ void SignalHandler::FillRegisterState(void* context, R
|
||||
state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_PC]);
|
||||
state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_SP]);
|
||||
state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_FP]);
|
||||
+#elif V8_TARGET_ARCH_PPC_BE
|
||||
+ state->pc = reinterpret_cast<void*>(mcontext.mc_srr0);
|
||||
+ state->sp = reinterpret_cast<void*>(mcontext.mc_frame[1]);
|
||||
+ state->fp = reinterpret_cast<void*>(mcontext.mc_frame[31]);
|
||||
#endif // V8_HOST_ARCH_*
|
||||
#elif V8_OS_NETBSD
|
||||
#if V8_HOST_ARCH_IA32
|
||||
12
lang/node14/files/patch-node.gypi
Normal file
12
lang/node14/files/patch-node.gypi
Normal file
@@ -0,0 +1,12 @@
|
||||
--- node.gypi.orig 2020-03-05 00:41:47 UTC
|
||||
+++ node.gypi
|
||||
@@ -322,6 +322,9 @@
|
||||
['openssl_fips != "" or openssl_is_fips=="true"', {
|
||||
'defines': [ 'NODE_FIPS_MODE' ],
|
||||
}],
|
||||
+ ['openssl_no_asm==1', {
|
||||
+ 'defines': [ 'OPENSSL_NO_ASM' ],
|
||||
+ }],
|
||||
[ 'node_shared_openssl=="false"', {
|
||||
'dependencies': [
|
||||
'./deps/openssl/openssl.gyp:openssl',
|
||||
11
lang/node14/files/patch-tools_genv8constants.py
Normal file
11
lang/node14/files/patch-tools_genv8constants.py
Normal file
@@ -0,0 +1,11 @@
|
||||
--- tools/genv8constants.py.orig 2020-08-20 20:43:20 UTC
|
||||
+++ tools/genv8constants.py
|
||||
@@ -20,7 +20,7 @@ if len(sys.argv) != 3:
|
||||
outfile = open(sys.argv[1], 'w')
|
||||
try:
|
||||
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ],
|
||||
- bufsize=-1, stdout=subprocess.PIPE).stdout
|
||||
+ bufsize=-1, stdout=subprocess.PIPE, universal_newlines=True).stdout
|
||||
except OSError as e:
|
||||
if e.errno == errno.ENOENT:
|
||||
print('''
|
||||
Reference in New Issue
Block a user