Termux Android build hits shell and libc portability assumptions in extras patches #77
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?
Two smaller Termux/Android build blockers came up while getting all-features
jsh-androidto build on-device:support/patch-extras-build.shinvokestools/apply-vendor-overrides.shwithsh, but that script uses bash-specific syntax. Local workaround was to invoke it withbash.jerboa-sed/support/secure-inplace.cused the generic__linux__path on Android. Android/Bionic did not support that path cleanly; local workaround was to use#elif defined(__linux__) && !defined(__ANDROID__)so Android falls back to/dev/urandom.Expected: Termux/Android builds should use bash for bash scripts and avoid full-Linux libc assumptions when
__ANDROID__is defined.Actual: both assumptions blocked the on-device build until patched locally.