Separate toltec and entware libraries #822
Labels
documentation
Improvements or additions to the documentation and to workflows
packages
Add or improve packages of the repository
tooling
Set of scripts and configuration files for building the packages
Describe the issue
Toltec links against the libraries on the system itself, including glibc. Entware links against its own distribution of glibc and libraries. These libraries and the system ones are not compatible due to the different glibc dependencies. This means that if we need a library that isn't in the base OS, but entware provides, we either have to target the entware toolchain, or find some way to provide our own copy of the library. We are not setup to use the entware toolchain in toltec, and I don't think it's really worth the effort.
Right now, the current solution appears to be to embed any dependencies you need in your package outside of
/opt/lib
(See KOReader as an example). While this works, it does increase the amount of space required to run the applications. It also increases the memory footprint if two applications are run at once, as the OS has to load multiple copies of the libraries into memory.Possible solutions
/opt/lib
folders and add some extra automation to toltecmk to support it. Perhaps detect/opt/lib
in the package and rename it, as well as automatically update the binaries to use it with patchelf. Unless aentwarelib
flag is set.Additional context
#786 (comment)
The text was updated successfully, but these errors were encountered: