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

Create precompiled builds that work on systems utilizing musl libc #691

Open
Noarkhh opened this issue Dec 14, 2023 · 1 comment
Open

Create precompiled builds that work on systems utilizing musl libc #691

Noarkhh opened this issue Dec 14, 2023 · 1 comment

Comments

@Noarkhh
Copy link
Contributor

Noarkhh commented Dec 14, 2023

Currently precompiled builds work only on systems with glibc, which excludes musl libc systems from benefiting from them, from which the most notable is Alpine.

Problem:

Up until now we used homebrew to get builds for different systems and architectures. However it seems that homebrew needs glibc and therefore I suspect it installs libraries built using glibc.

Solution:

Create a similair sandbox, but instead of homebrew use Alpine's apk package manager. I believe this should be much less complex than our setup with homebrew, because we won't have to deal with MacOS and we already have a good framework of hosting and fetching the builds.

@Noarkhh
Copy link
Contributor Author

Noarkhh commented Dec 15, 2023

apk observations:

  • libs are installed to /usr/lib (sometimes nested)
  • headers are installed to /usr/include
  • for headers to be available most packages need to be installed with -dev suffix
  • there is no option to force uninstall dependencies of packages
  • to get rid of unwanted libs from being published you can use apk info <package_name> --contents | grep ^usr/lib/.*.so to get all libs from an unwanted package (such as alsa-lib)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants