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

Pakage request: GNU libc #2798

Closed
zaoqi opened this issue Aug 31, 2018 · 10 comments
Closed

Pakage request: GNU libc #2798

zaoqi opened this issue Aug 31, 2018 · 10 comments

Comments

@zaoqi
Copy link
Contributor

zaoqi commented Aug 31, 2018

No description provided.

@ghost
Copy link

ghost commented Aug 31, 2018

@zaoqi It is very unlikely that we will switch Termux to use GNU libc instead of Bionic.

If you really need GNU libc, I suggest you to try this: https://github.com/Neo-Oli/termux-ubuntu, or any other way installing linux distribution into chroot (or proot) environment.


Just interesting, which features you are expecting from GNU libc in Termux ?

@ghost
Copy link

ghost commented Sep 4, 2018

Or even install a linux distro into chroot/proot and bind termux's dir, then manually build glibc into termux
It'd be best to install into a directory that isn't $PREFIX alot will break :p

@SDRausty

This comment was marked as spam.

@lukechilds
Copy link
Contributor

It is very unlikely that we will switch Termux to use GNU libc instead of Bionic.

@xeffyr why is this? I'm not arguing it should be, just interested in what the reasoning is.

Wouldn't using glibc enable most existing pre-built aarch64 binaries to work in Termux? What's the downside?

@lukechilds
Copy link
Contributor

I found this:

To have best compatibility with Android OS and remove the need of maintaining custom toolchains we compile all our packages with Android NDK. Resulting binaries are linked against Bionic libc (files libc.so, libm.so, libdl.so from /system/lib or /system/lib64).

https://wiki.termux.com/wiki/Differences_from_Linux

What makes maintaining an apt repo with patched binaries for Bionic easier than a custom toolchain?

@RossComputerGuy
Copy link
Contributor

Bionic has differences in system calls, it's designed specifically for Android. Running Glibc linked programs won't work because of the system calls that Android has.

@lukechilds
Copy link
Contributor

@RossComputerGuy so how are glibc linked binaries able to work in a prooted environment?

@RossComputerGuy
Copy link
Contributor

Because proot is able to intercept the system calls. https://wiki.termux.com/wiki/PRoot

@lukechilds
Copy link
Contributor

Ah, got it.

Thanks!

@termux termux locked and limited conversation to collaborators Oct 9, 2021
@Maxython
Copy link
Member

Note: the glibc package and packages that are based on the glibc library are already available in Termux, read more - https://www.reddit.com/r/termux/s/BKOnayd3kB

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

No branches or pull requests

6 participants