mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8680] [MERGED] fix(android): repair a Termux Node.js that cannot start before launching #8744
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8744
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8680
Author: @SpicyMarinara
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/termux-node-link-8675📝 Commits (2)
822f70dfix(android): repair a Termux Node.js that cannot start before launching (#8675)8ef8338docs(troubleshooting): give the full manual-install restart command📊 Changes
6 files changed (+104 additions, -3 deletions)
View changed files
📝
android/README.md(+1 -1)📝
android/app/src/main/java/com/marinara/engine/MainActivity.java(+10 -0)📝
docs/TROUBLESHOOTING.md(+12 -0)📝
docs/installation/android-termux.md(+2 -2)📝
scripts/regressions/android-local-auth.regression.ts(+66 -0)📝
start-termux.sh(+13 -0)📄 Description
Linked issue
Closes #8675
Why this change
CANNOT LINK EXECUTABLE "node": cannot locate symbol "_ZNSt6__ndk113__hash_memoryEPKvm"pkg updateonly runsapt update(termux-toolspkg.in) and upgrades nothing.pkg install -y git nodejs-ltsthen upgrades nodejs-lts on its own while libc++ stays old, so the newnodecannot link. Termux doesn't support partial upgrades.nodecall is the storage-format guard, which then exits non-zero and blames the APK. A newer APK can't fix that.start-termux.shhad the same gap. With a broken node it ranpkg install nodejs-lts, which reports "already the newest version", and then stopped with "Could not determine Node.js version".What changed
APK bootstrap (
MainActivity.buildTermuxSetupCommand): right after installing git and nodejs-lts, and before git or the guard runs, it checksnode --version.pkg upgrade -y -o Dpkg::Options::=--force-confoldand checks again.start-termux.sh: the same check, repair and recheck, before any othernodecall.Healthy installs pay only one
node --versionand no full upgrade. The routinepkg update -ystays, so there's no slow full upgrade on every Start tap.Docs:
android/README.mdanddocs/installation/android-termux.mdstart withpkg upgrade -y: a fresh F-Droid bootstrap is older than the repository, so new users would otherwise start from a partial upgrade. Step 1 explains why, and what to do if a configuration-file question appears.docs/TROUBLESHOOTING.mdgets a "Termux: CANNOT LINK EXECUTABLE "node"" entry withpkg upgrade -yas the repair.Test:
scripts/regressions/android-local-auth.regression.tsrebuilds the APK bootstrap shell from the Java literals and slices out the Node.js block ofstart-termux.sh. It runs both in bash withnodeandpkgstubs; thenodestub prints the reporter's exact link error. It asserts the node check comes before the guard and runs three cases on each entry point:It fails on the old code.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What the agent ran locally, after rebasing on staging:
node ./scripts/pnpm-runner.mjs checkpasses.These regressions pass: android-local-auth, the launcher regressions (format-guard, env, update, termux-client-build and others), every "termux" regression, open-issues, launcher-browser-ready and command-center.
bash -npasses onstart-termux.shand on the extracted bootstrap.An independent review agent reproduced the reporter's exact output with the old bootstrap and stubs, confirmed the fixed one repairs it, and repeated the fails-before proof.
Local CodeRabbit noted the Troubleshooting entry's manual-install restart step needs the full
cd "$HOME/Marinara-Engine" && ./start-termux.shcommand; fixed.For a human to verify:
pkg upgrade, then fetch, pass the storage-format guard and start the server. It should never show "Could not verify that this Marinara Android build can safely read your stored data".nodefails with CANNOT LINK EXECUTABLE, manually verify that./start-termux.shruns a fullpkg upgradewith no configuration-file prompt and starts once node links.docs/installation/android-termux.mdcompletes and the launcher builds.pkg upgrade.Release note: the APK bootstrap change reaches users with the next APK. The Android versionCode and app version aren't bumped here, because that belongs to a release PR.
start-termux.shand the docs help right away. Until the next APK, APK users can runpkg upgradein Termux and start again.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/installation/android-termux.mdanddocs/TROUBLESHOOTING.mdchanged. Follow-up: #8681 ([docs-i18n] catch-up for these pages). The translated packs ondocs-i18nwill be updated in one catch-up PR after this merges, and that PR closes it.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.