nodejs: Really fix log issues

This commit is contained in:
Yaksh Bariya 2021-09-15 13:25:44 +05:30 committed by Henrik Grimler
parent 2c8664a2f5
commit 9ff98a3b73
2 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="Yaksh Bariya <yakshbari4@gmail.com>"
# Note: package build may fail on Github Actions CI due to out-of-memory
# condition. It should be built locally instead.
TERMUX_PKG_VERSION=16.9.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=97f50ec53c050e7ac97bdbe5586aaca380dd23064064c85a1f2017a35244131c
# Note that we do not use a shared libuv to avoid an issue with the Android

View File

@ -0,0 +1,11 @@
--- ./src/debug_utils.cc 2021-09-10 22:55:14.000000000 +0530
+++ ./src/debug_utils.cc.mod 2021-09-15 13:24:35.606133999 +0530
@@ -500,7 +500,7 @@
WriteConsoleW(handle, wbuf.data(), n, nullptr, nullptr);
return;
-#elif defined(__ANDROID__)
+#elif defined(__ANDROID__) && !defined(__TERMUX__)
if (file == stderr) {
__android_log_print(ANDROID_LOG_ERROR, "nodejs", "%s", str.data());
return;