nodejs: Bump to v17.0.1 (#7864)
This commit is contained in:
parent
ef733aa378
commit
3e48e55c26
|
@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://nodejs.org/
|
|||
TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environment"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Yaksh Bariya <yakshbari4@gmail.com>"
|
||||
TERMUX_PKG_VERSION=16.12.0
|
||||
TERMUX_PKG_VERSION=17.0.1
|
||||
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_SHA256=5f620a6a400901a6565aa0c07309cde3aab3dbaa765cecb934241de520d36bac
|
||||
TERMUX_PKG_SHA256=6ec480f872cb7c34877044985e3d7bd89329ace5b8e2ad90b57980601786341c
|
||||
# Note that we do not use a shared libuv to avoid an issue with the Android
|
||||
# linker, which does not use symbols of linked shared libraries when resolving
|
||||
# symbols on dlopen(). See https://github.com/termux/termux-packages/issues/462.
|
||||
|
@ -63,7 +63,7 @@ termux_step_configure() {
|
|||
export GYP_DEFINES="host_os=linux"
|
||||
export CC_host=gcc
|
||||
export CXX_host=g++
|
||||
export LINK_host="g++ -Wl,--no-as-needed -ldl -lz"
|
||||
export LINK_host=g++
|
||||
|
||||
LDFLAGS+=" -ldl"
|
||||
# See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.
|
||||
|
@ -78,7 +78,7 @@ termux_step_configure() {
|
|||
--cross-compiling
|
||||
|
||||
export LD_LIBRARY_PATH=$TERMUX_PKG_HOSTBUILD_DIR/icu-installed/lib
|
||||
perl -p -i -e "s@LIBS := \\$\\(LIBS\\)@LIBS := -L$TERMUX_PKG_HOSTBUILD_DIR/icu-installed/lib -lpthread -licui18n -licuuc -licudata@" \
|
||||
perl -p -i -e "s@LIBS := \\$\\(LIBS\\)@LIBS := -L$TERMUX_PKG_HOSTBUILD_DIR/icu-installed/lib -lpthread -licui18n -licuuc -licudata -ldl -lz@" \
|
||||
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/mksnapshot.host.mk \
|
||||
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/torque.host.mk \
|
||||
$TERMUX_PKG_SRCDIR/out/tools/v8_gypfiles/bytecode_builtins_list_generator.host.mk \
|
||||
|
|
|
@ -1,58 +0,0 @@
|
|||
--- ./deps/v8/src/heap/base/asm/x64/push_registers_asm.cc 2021-09-10 22:55:12.000000000 +0530
|
||||
+++ ./deps/v8/src/heap/base/asm/x64/push_registers_asm.cc.mod 2021-09-12 16:03:58.444141027 +0530
|
||||
@@ -16,12 +16,15 @@
|
||||
// GN toolchain (e.g. ChromeOS) and not provide them.
|
||||
// _WIN64 Defined as 1 when the compilation target is 64-bit ARM or x64.
|
||||
// Otherwise, undefined.
|
||||
+
|
||||
+#if defined(V8_TARGET_ARCH_ARM64) || defined(V8_TARGET_ARCH_X64)
|
||||
#ifdef _WIN64
|
||||
|
||||
// We maintain 16-byte alignment at calls. There is an 8-byte return address
|
||||
// on the stack and we push 232 bytes which maintains 16-byte stack alignment
|
||||
// at the call.
|
||||
// Source: https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention
|
||||
+
|
||||
asm(".globl PushAllRegistersAndIterateStack \n"
|
||||
"PushAllRegistersAndIterateStack: \n"
|
||||
// rbp is callee-saved. Maintain proper frame pointer for debugging.
|
||||
@@ -104,3 +107,39 @@
|
||||
" ret \n");
|
||||
|
||||
#endif // !_WIN64
|
||||
+#else
|
||||
+asm(
|
||||
+#ifdef _WIN32
|
||||
+ ".globl _PushAllRegistersAndIterateStack \n"
|
||||
+ "_PushAllRegistersAndIterateStack: \n"
|
||||
+#else // !_WIN32
|
||||
+ ".globl PushAllRegistersAndIterateStack \n"
|
||||
+ ".type PushAllRegistersAndIterateStack, %function \n"
|
||||
+ ".hidden PushAllRegistersAndIterateStack \n"
|
||||
+ "PushAllRegistersAndIterateStack: \n"
|
||||
+#endif // !_WIN32
|
||||
+ // [ IterateStackCallback ]
|
||||
+ // [ StackVisitor* ]
|
||||
+ // [ Stack* ]
|
||||
+ // [ ret ]
|
||||
+ // ebp is callee-saved. Maintain proper frame pointer for debugging.
|
||||
+ " push %ebp \n"
|
||||
+ " movl %esp, %ebp \n"
|
||||
+ " push %ebx \n"
|
||||
+ " push %esi \n"
|
||||
+ " push %edi \n"
|
||||
+ // Save 3rd parameter (IterateStackCallback).
|
||||
+ " movl 28(%esp), %ecx \n"
|
||||
+ // Pass 3rd parameter as esp (stack pointer).
|
||||
+ " push %esp \n"
|
||||
+ // Pass 2nd parameter (StackVisitor*).
|
||||
+ " push 28(%esp) \n"
|
||||
+ // Pass 1st parameter (Stack*).
|
||||
+ " push 28(%esp) \n"
|
||||
+ " call *%ecx \n"
|
||||
+ // Pop the callee-saved registers.
|
||||
+ " addl $24, %esp \n"
|
||||
+ // Restore rbp as it was used as frame pointer.
|
||||
+ " pop %ebp \n"
|
||||
+ " ret \n");
|
||||
+#endif
|
|
@ -1,6 +1,6 @@
|
|||
--- ./tools/v8_gypfiles/v8.gyp 2021-06-03 07:15:33.000000000 +0530
|
||||
+++ ./tools/v8_gypfiles/v8.gyp.mod 2021-06-18 21:18:09.722327631 +0530
|
||||
@@ -928,6 +928,7 @@
|
||||
--- ./tools/v8_gypfiles/v8.gyp.orig 2021-10-20 22:03:24.000000000 +0530
|
||||
+++ ./tools/v8_gypfiles/v8.gyp 2021-10-27 17:35:32.672294375 +0530
|
||||
@@ -1116,6 +1116,7 @@
|
||||
'<(V8_ROOT)/src/base/platform/platform-posix.h',
|
||||
'<(V8_ROOT)/src/base/platform/platform-posix-time.cc',
|
||||
'<(V8_ROOT)/src/base/platform/platform-posix-time.h',
|
||||
|
@ -8,3 +8,17 @@
|
|||
],
|
||||
'link_settings': {
|
||||
'target_conditions': [
|
||||
@@ -1623,7 +1624,12 @@
|
||||
}],
|
||||
['clang or OS!="win"', {
|
||||
'conditions': [
|
||||
- ['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', {
|
||||
+ ['_toolset == "host" and host_arch == "x64" and (target_arch == "arm" or target_arch == "ia32")', {
|
||||
+ 'sources': [
|
||||
+ '<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc',
|
||||
+ ],
|
||||
+ }],
|
||||
+ ['_toolset == "host" and host_arch == "x64" and (target_arch == "x64" or target_arch == "arm64") or (_toolset == "target" and target_arch == "x64")', {
|
||||
'sources': [
|
||||
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc',
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue