termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.16k stars 3.02k forks source link

libc --> bionic #726

Closed Wetitpig closed 7 years ago

Wetitpig commented 7 years ago

How to replace a dependent libc6 with bionic when writing build.sh for a Debian package? Thanks.

tomaklutfu commented 7 years ago

Bionic libc is already in android system so you can just remove it from dependencies . If some feature of libc6 is not in bionic then you need to either have patch for it or if defined in one of termux's own lib (I think they are named libandroid*) add it to dependencies.

Wetitpig commented 7 years ago

Thanks

Wetitpig commented 7 years ago

How about other libc (e.g. libc0.1). Are they also replaced by bionic?

tomaklutfu commented 7 years ago

They both look like libc implentation from packege info but I don't know how they differ. I think you can safely remove any libc dependency since android has only bionic libc and it is available in all devices.

Wetitpig commented 7 years ago

So how about patches due to difference in c libraries?

fornwall commented 7 years ago

@Wetitpig You can see the README for some information, and look at patches in other packages for inspiration.

adhityapratama commented 6 years ago

@fornwall [ERROR] The 'getdtablesize' function is not found in [libc.so]

In Wpscan installation. Help me. give answer ??

tomty89 commented 6 years ago

https://github.com/aosp-mirror/platform_bionic/commit/462abab12b074c62c0999859e65d5a32ebb41951