[3.7] bpo-21622 ctypes.util find_library walk LD_LIBRARY_PATH (GH-10460) by jcastillo2nd · Pull Request #10461 · python/cpython · GitHub
Skip to content

[3.7] bpo-21622 ctypes.util find_library walk LD_LIBRARY_PATH (GH-10460) - #10461

Closed
jcastillo2nd wants to merge 1 commit into
python:3.7from
jcastillo2nd:37/bpo-21622
Closed

jcastillo2nd wants to merge 1 commit into
python:3.7from
jcastillo2nd:37/bpo-21622

Conversation

@jcastillo2nd

@jcastillo2nd jcastillo2nd commented Nov 11, 2018

Copy link
Copy Markdown

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

@Mariatta

Copy link
Copy Markdown
Member

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.

4 participants