Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The whole system directory may be removed from the repo... #60

Open
twaik opened this issue Dec 19, 2023 · 3 comments
Open

The whole system directory may be removed from the repo... #60

twaik opened this issue Dec 19, 2023 · 3 comments

Comments

@twaik
Copy link
Member

twaik commented Dec 19, 2023

I think we can use bionic-host package and symlink to $PREFIX/etc/bionic-host=>/system. Also we can get busybox binary from here to get the toolset to extract the bootstrap from zip. It is not critical issue, but we will have less prebuilts in repo.

robertkirkman added a commit to robertkirkman/termux-docker that referenced this issue Jan 12, 2025
Potential WIP/PoC solution to termux#60
@robertkirkman
Copy link

When I tried to implement it using a Symlink as you suggested, I encountered some problems, but when I use cp instead of ln it works. Maybe there is a way to fix it to use ln, or if not, is cp an OK way to implement it? (which also has the side effect of preventing modification of the /system folder at run time under normal conditions, as opposed to a symbolic link which I assume, if working, would allow upgrading/modifying the bionic-host package using apt at runtime to have an effect)

@twaik
Copy link
Member Author

twaik commented Jan 12, 2025

You can try using hardlink. In the case of using linux host you do not have Android limitations...

@robertkirkman
Copy link

robertkirkman commented Jan 14, 2025

I continued adjusting it and my local version has started working well for me on the 64-bit platforms while using a true Symbolic link (ln -s), just like how the termux-package-builder is,

but before uploading it I will continue trying a lot of things to fix the issues with 32-bit in my version, because I also need this on an armv7l device that has Docker, and if I want my version to also be able to propagate into the TUR fork, 32-bit support is needed for building some of their packages there.

Edit: I have finished implementing 32-bit support in my version, and uploaded my code for it.

What is remaining is to wait for termux/termux-packages#22906 , so that the modified version of the bionic-host package could potentially be uploaded to termux.dev, then downloaded by the new generate.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants