nodejs: Bump to 18.12.1

This commit is contained in:
Tee KOBAYASHI 2022-11-07 07:22:00 +09:00 committed by xtkoba
parent cd1cfab932
commit 69cd4ef6a9
3 changed files with 4 additions and 27 deletions

View File

@ -2,10 +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.10.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=18.12.1
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=ad711b54e2be4a7d24f37c73fb2801adeaf6d26d298d431be98d6abc0202e89f
TERMUX_PKG_SHA256=4fa406451bc52659a290e52cfdb2162a760bd549da4b8bbebe6a29f296d938df
# 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

@ -9,19 +9,10 @@
const { bigint: hrtime } = process.hrtime;
const kCallbackAndPromisePresent = 'callbackAndPromisePresent';
const kCancelledByParent = 'cancelledByParent';
@@ -59,7 +59,7 @@
const isTestRunner = getOptionValue('--test');
const testOnlyFlag = !isTestRunner && getOptionValue('--test-only');
// TODO(cjihrig): Use uv_available_parallelism() once it lands.
-const rootConcurrency = isTestRunner ? MathMax(cpus().length - 1, 1) : 1;
+const rootConcurrency = isTestRunner ? MathMax(numcpus() - 1, 1) : 1;
const kShouldAbort = Symbol('kShouldAbort');
const kRunHook = Symbol('kRunHook');
const kHookNames = ObjectSeal(['before', 'after', 'beforeEach', 'afterEach']);
@@ -180,7 +180,7 @@
@@ -193,7 +193,7 @@
case 'boolean':
if (concurrency) {
// TODO(cjihrig): Use uv_available_parallelism() once it lands.
- this.concurrency = parent === null ? MathMax(cpus().length - 1, 1) : Infinity;
+ this.concurrency = parent === null ? MathMax(numcpus() - 1, 1) : Infinity;
} else {

View File

@ -1,13 +0,0 @@
--- node-v18.0.0.orig/src/node_main.cc 2022-04-21 15:15:47.131869784 +0530
+++ node-v18.0.0/src/node_main.cc 2022-05-19 17:59:43.234596999 +0530
@@ -124,6 +124,10 @@
// calls elsewhere in the program (e.g., any logging from V8.)
setvbuf(stdout, nullptr, _IONBF, 0);
setvbuf(stderr, nullptr, _IONBF, 0);
+ if(getenv("TMPDIR") == NULL) {
+ // Give javascript programs (such as updated versions of npm) a working tmpdir.
+ putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
+ }
return node::Start(argc, argv);
}
#endif