diff --git a/packages/nodejs-lts/build.sh b/packages/nodejs-lts/build.sh index 562c9def12f212..39a050c59d63a7 100644 --- a/packages/nodejs-lts/build.sh +++ b/packages/nodejs-lts/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environme TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="Yaksh Bariya " TERMUX_PKG_VERSION=20.11.1 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=77813edbf3f7f16d2d35d3353443dee4e61d5ee84d9e3138c7538a3c0ca5209e # Note that we do not use a shared libuv to avoid an issue with the Android diff --git a/packages/nodejs-lts/deps-npm-lib-npm.js.patch b/packages/nodejs-lts/deps-npm-lib-npm.js.patch new file mode 100644 index 00000000000000..9a12aefa99ec22 --- /dev/null +++ b/packages/nodejs-lts/deps-npm-lib-npm.js.patch @@ -0,0 +1,15 @@ +--- ./deps/npm/lib/npm.js.orig 2024-02-21 20:21:11.251716444 +0530 ++++ ./deps/npm/lib/npm.js 2024-02-21 20:25:09.207937428 +0530 +@@ -113,12 +113,6 @@ + + const timeEnd = this.time(`command:${cmd}`) + +- // this is async but we dont await it, since its ok if it doesnt +- // finish before the command finishes running. it uses command and argv +- // so it must be initiated here, after the command name is set +- // eslint-disable-next-line promise/catch-or-return +- updateNotifier(this).then((msg) => (this.updateNotification = msg)) +- + // Options are prefixed by a hyphen-minus (-, \u2d). + // Other dash-type chars look similar but are invalid. + if (!this.#warnedNonDashArg) { diff --git a/packages/nodejs/build.sh b/packages/nodejs/build.sh index d3b5f761c7917f..56af66cca3c38d 100644 --- a/packages/nodejs/build.sh +++ b/packages/nodejs/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environme TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="Yaksh Bariya " TERMUX_PKG_VERSION=21.6.2 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=191294d445d1e6800359acc8174529b1e18e102147dc5f596030d3dce96931e5 # thunder-coding: don't try to autoupdate nodejs, that thing takes 2 whole hours to build for a single arch, and requires a lot of patch updates everytime. Also I run tests everytime I update it to ensure least bugs diff --git a/packages/nodejs/deps-npm-lib-npm.js.patch b/packages/nodejs/deps-npm-lib-npm.js.patch new file mode 100644 index 00000000000000..9a12aefa99ec22 --- /dev/null +++ b/packages/nodejs/deps-npm-lib-npm.js.patch @@ -0,0 +1,15 @@ +--- ./deps/npm/lib/npm.js.orig 2024-02-21 20:21:11.251716444 +0530 ++++ ./deps/npm/lib/npm.js 2024-02-21 20:25:09.207937428 +0530 +@@ -113,12 +113,6 @@ + + const timeEnd = this.time(`command:${cmd}`) + +- // this is async but we dont await it, since its ok if it doesnt +- // finish before the command finishes running. it uses command and argv +- // so it must be initiated here, after the command name is set +- // eslint-disable-next-line promise/catch-or-return +- updateNotifier(this).then((msg) => (this.updateNotification = msg)) +- + // Options are prefixed by a hyphen-minus (-, \u2d). + // Other dash-type chars look similar but are invalid. + if (!this.#warnedNonDashArg) {