Skip to content

bpo-21622: ctypes.util find_library walk LD_LIBRARY_PATH#10453

Closed
jcastillo2nd wants to merge 2 commits intopython:masterfrom
jcastillo2nd:37/bpo-21622
Closed

bpo-21622: ctypes.util find_library walk LD_LIBRARY_PATH#10453
jcastillo2nd wants to merge 2 commits intopython:masterfrom
jcastillo2nd:37/bpo-21622

Conversation

@jcastillo2nd
Copy link
Copy Markdown

@jcastillo2nd jcastillo2nd commented Nov 10, 2018

Originally, issue was open for case where SONAME wasn't part of binary.

Updates to the posix case did include LD_LIBRARY_PATH, but reliance on gcc and ldconfig behavior breaks in some cases. e.g. musl on alpine builds

This provides a find method that walks the LD_LIBRARY_PATH, checks for ELF bytes, and returns the name when found or None, matching the other behavior.

This runs after all prior cases fail, does not rely on SONAME entry, gcc or ldconfig -p behavior.

https://bugs.python.org/issue21622

@the-knights-who-say-ni
Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@jcastillo2nd
Copy link
Copy Markdown
Author

#10460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants