termux / proot-distro

An utility for managing installations of the Linux distributions in Termux.
GNU General Public License v3.0
1.69k stars 197 forks source link

[Feature]: Support Box64 for x86_64 architecture emulation (and potentially box86 for 32bit) #450

Closed ikcikoR closed 4 hours ago

ikcikoR commented 5 hours ago

Feature description

Box64 allows running x86_64 binaries on aarch64 systems and it's way faster than qemu. I'm not sure how difficult it would be to add support for it into proot-distro nor if it can be done on proot-distro level at all to be honest, but it'd be a great feature if it worked out. With the little knowledge I have, seeing that you can already choose between blink and qemu gives me a bit of hope that this is relatively doable? box86 also exists and could potentially be handy, but x86_64 is the biggest deal for obvious reasons.

TomJo2000 commented 4 hours ago

This isn't really a problem for proot-distro to solve. Either:

#### From a packaging standpoint; Box86 was previously packaged - See: termux/termux-packages#7672 and subsequently disabled for relying heavily on Glibc internals (https://github.com/termux/termux-packages/commit/514cc2aa729f6e33c2d674eeba5c7abbf545bf82) Box64 has not been packaged so far. But has an official Termux build target in its upstream CMake file. - https://github.com/ptitSeb/box64/blob/87493a9bc9eff995680406cb56b792c4c045de95/CMakeLists.txt#L43-L45 So would presumably be fairly easy to package.