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

Python ctypes can't find libc on musl systems. #158

Open
chaoticryptidz opened this issue Jun 24, 2018 · 7 comments
Open

Python ctypes can't find libc on musl systems. #158

chaoticryptidz opened this issue Jun 24, 2018 · 7 comments

Comments

@chaoticryptidz
Copy link

Basically we need to have ebuilds for all python versions with the patch which fixes this.
https://github.com/alpinelinux/aports/blob/master/main/python3/musl-find_library.patch is the required patch and is required for all versions of python.

Example of error:

    assert libc_name is not None, "Cannot find C library, ctypes.util.find_library('c') returned None"
@chaoticryptidz
Copy link
Author

Will also need same patch for pypy in the file lib-python/$VERSION/ctypes/util.py

@g3ngr33n
Copy link
Contributor

g3ngr33n commented Dec 7, 2018

Still need it ?

1 ebuild for each dev-lang/python version which apply the linked patch ?

@blueness
Copy link
Collaborator

blueness commented Dec 7, 2018

This really sucks because I'd rather not have patches against core packages. I was hoping to get all of @System packages into the tree. This move in the opposite direction. So, has there been any attempt to get these patches upstream?

@chaoticryptidz
Copy link
Author

I don't use Gentoo anymore so I can't really help, but it would be good to chat with python devs on IRC and ask for help upstreaming it.

@anarchpenguin
Copy link
Contributor

This really sucks because I'd rather not have patches against core packages. I was hoping to get all of @System packages into the tree. This move in the opposite direction. So, has there been any attempt to get these patches upstream?

I dug threw upstream bugzilla and see no open bugs for the issue with any of the branches.

@anarchpenguin
Copy link
Contributor

@LinuxUserGD
Copy link

similar issue: #451

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

5 participants