upgpkg(main/nodejs): v19.1.0

This commit is contained in:
Yaksh Bariya 2022-11-23 18:48:33 +05:30
parent b78cfe1481
commit c0cef67dcb
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
6 changed files with 47 additions and 41 deletions

View File

@ -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=18.12.1
TERMUX_PKG_VERSION=19.1.0
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=4fa406451bc52659a290e52cfdb2162a760bd549da4b8bbebe6a29f296d938df
TERMUX_PKG_SHA256=4ea9ba1f992815fb823b022a62b61f536121f970fe88c6395c7e3af4e9cf46a0
# 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.

View File

@ -1,7 +1,6 @@
diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/src/unix/process.c node-v18.0.0/deps/uv/src/unix/process.c
--- node-v18.0.0.orig/deps/uv/src/unix/process.c 2022-04-21 15:15:32.631869790 +0530
+++ node-v18.0.0/deps/uv/src/unix/process.c 2022-04-21 15:42:34.267175190 +0530
@@ -303,23 +303,6 @@
--- ./deps/uv/src/unix/process.c.orig 2022-11-23 18:29:41.212329442 +0530
+++ ./deps/uv/src/unix/process.c 2022-11-23 18:32:37.602329375 +0530
@@ -351,23 +351,6 @@
if (options->cwd != NULL && chdir(options->cwd))
uv__write_errno(error_fd);
@ -22,6 +21,6 @@ diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/src/unix/process.c node-v18.0
- if ((options->flags & UV_PROCESS_SETUID) && setuid(options->uid))
- uv__write_errno(error_fd);
-
if (options->env != NULL) {
if (options->env != NULL)
environ = options->env;
}

View File

@ -1,6 +1,5 @@
diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/uv.gyp node-v18.0.0/deps/uv/uv.gyp
--- node-v18.0.0.orig/deps/uv/uv.gyp 2022-04-21 15:15:32.951869789 +0530
+++ node-v18.0.0/deps/uv/uv.gyp 2022-04-21 15:43:16.397175174 +0530
--- ./deps/uv/uv.gyp.orig 2022-11-14 07:56:05.000000000 +0530
+++ ./deps/uv/uv.gyp 2022-11-25 18:51:25.022527139 +0530
@@ -40,7 +40,7 @@
{
'target_name': 'libuv',
@ -19,7 +18,7 @@ diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/uv.gyp node-v18.0.0/deps/uv/u
'conditions': [
['OS == "linux"', {
'defines': [ '_POSIX_C_SOURCE=200112' ],
@@ -247,6 +247,7 @@
@@ -249,6 +249,7 @@
'src/unix/procfs-exepath.c',
'src/unix/random-getrandom.c',
'src/unix/random-sysctl-linux.c',
@ -27,3 +26,19 @@ diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/uv.gyp node-v18.0.0/deps/uv/u
],
'link_settings': {
'libraries': [ '-ldl', '-lrt' ],
@@ -256,7 +257,6 @@
}],
[ 'OS=="android"', {
'sources': [
- 'src/unix/android-ifaddrs.c',
'src/unix/linux-core.c',
'src/unix/linux-inotify.c',
'src/unix/linux-syscalls.c',
@@ -267,6 +267,7 @@
'src/unix/random-sysctl-linux.c',
'src/unix/epoll.c',
],
+ 'defines': [ '__USE_GNU' ],
'link_settings': {
'libraries': [ '-ldl' ],
},

View File

@ -1,11 +1,11 @@
diff '--color=auto' -uNr node-v18.0.0.orig/deps/v8/src/logging/log.cc node-v18.0.0/deps/v8/src/logging/log.cc
--- node-v18.0.0.orig/deps/v8/src/logging/log.cc 2022-04-21 15:15:34.031869789 +0530
+++ node-v18.0.0/deps/v8/src/logging/log.cc 2022-04-21 15:44:33.497175145 +0530
@@ -308,7 +308,7 @@
FILE* perf_output_handle_;
--- ./deps/v8/src/logging/log.cc.orig 2022-11-23 18:22:22.362329609 +0530
+++ ./deps/v8/src/logging/log.cc 2022-11-23 18:26:15.492329520 +0530
@@ -357,7 +357,7 @@
static uint64_t reference_count_;
};
-const char PerfBasicLogger::kFilenameFormatString[] = "/tmp/perf-%d.map";
+const char PerfBasicLogger::kFilenameFormatString[] = "@TERMUX_PREFIX@/tmp/perf-%d.map";
-const char LinuxPerfBasicLogger::kFilenameFormatString[] = "/tmp/perf-%d.map";
+const char LinuxPerfBasicLogger::kFilenameFormatString[] = "@TERMUX_PREFIX@/perf-%d.map";
// Extra space for the PID in the filename
const int PerfBasicLogger::kFilenameBufferPadding = 16;
const int LinuxPerfBasicLogger::kFilenameBufferPadding = 16;

View File

@ -1,6 +1,5 @@
diff '--color=auto' -uNr node-v18.0.0.orig/deps/v8/src/trap-handler/trap-handler.h node-v18.0.0/deps/v8/src/trap-handler/trap-handler.h
--- node-v18.0.0.orig/deps/v8/src/trap-handler/trap-handler.h 2022-04-21 15:15:33.491869789 +0530
+++ node-v18.0.0/deps/v8/src/trap-handler/trap-handler.h 2022-04-21 15:45:22.317175126 +0530
--- ./deps/v8/src/trap-handler/trap-handler.h.orig 2022-11-23 18:22:22.422329609 +0530
+++ ./deps/v8/src/trap-handler/trap-handler.h 2022-11-23 18:28:14.112329475 +0530
@@ -17,23 +17,7 @@
namespace internal {
namespace trap_handler {
@ -15,7 +14,7 @@ diff '--color=auto' -uNr node-v18.0.0.orig/deps/v8/src/trap-handler/trap-handler
-#define V8_TRAP_HANDLER_SUPPORTED true
-// Arm64 simulator on x64 on Linux, Mac, or Windows.
-#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_X64 && \
- (V8_OS_LINUX || V8_OS_DARWIN)
- (V8_OS_LINUX || V8_OS_DARWIN || V8_OS_WIN)
-#define V8_TRAP_HANDLER_VIA_SIMULATOR
-#define V8_TRAP_HANDLER_SUPPORTED true
-// Everything else is unsupported.

View File

@ -1,6 +1,8 @@
--- ./node.gyp.orig 2022-10-05 20:33:27.730099607 +0530
+++ ./node.gyp 2022-10-05 20:39:22.010099472 +0530
@@ -157,7 +157,8 @@
diff --git a/./node.gyp.orig b/./node.gyp
index a22af3b..8397480 100644
--- a/./node.gyp.orig
+++ b/./node.gyp
@@ -153,7 +153,8 @@
],
'sources': [
@ -10,7 +12,7 @@
],
'dependencies': [
@@ -458,6 +459,7 @@
@@ -447,6 +448,7 @@
'include_dirs': [
'src',
@ -18,10 +20,10 @@
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
],
'dependencies': [
@@ -1113,309 +1115,6 @@
} ],
]
}, # specialize_node_d
@@ -890,300 +892,6 @@
},
],
}, # node_lib_target_name
- { # fuzz_url
- 'target_name': 'fuzz_url',
- 'type': 'executable',
@ -60,9 +62,6 @@
- '<(node_lib_target_name)',
- 'deps/histogram/histogram.gyp:histogram',
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
- ],
- 'includes': [
- 'node.gypi'
@ -106,9 +105,6 @@
- 'deps/googletest/googletest.gyp:gtest_main',
- 'deps/histogram/histogram.gyp:histogram',
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
- ],
-
- 'includes': [
@ -206,9 +202,6 @@
- '<(node_lib_target_name)',
- 'deps/histogram/histogram.gyp:histogram',
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
- ],
-
- 'includes': [