Files
hermes-agent/scripts/termux
Erosika 4927b5b277 fix(termux): stage the bionic Python to load its own libpython
Termux links its interpreter with RUNPATH $PREFIX/lib, so the launcher put
the payload's Python lib folder first on LD_LIBRARY_PATH. Every child
inherited that, and a Termux Python of the same minor then loaded Hermes's
libpython: `import array` failed in terminal commands, pip and venv.

Staging now rewrites the interpreter's RUNPATH to $ORIGIN/../lib ahead of
the Termux prefix, in place, and the launcher names neither libpython
folder. The value has no version in it, and a .deb whose interpreter cannot
take it fails the build instead of reaching a phone.

Fixes #158261

(cherry picked from commit 5af4d277dea7877b738da23dedba4dea3602f906)
2026-11-28 23:42:32 -06:00
..
…