find_library and issue21622

Ran into some issues trying to deploy in an alpine container, where I wound up coming across the issue. I found a solution ( not sure if an ideal solution can exist ) that walks the paths in the environment variable LD_LIBRARY_PATH. This was submitted in github PR 10460, but not sure if there were any technical issues with this impacting its review.

Hi, Would you mind to elaborate "some issues trying to deploy in an alpine container"? What are you trying to do? What is the error message? Some more context: * https://github.com/python/cpython/pull/10460 "bpo-21622: ctypes.util find_library walk LD_LIBRARY_PATH" * https://bugs.python.org/issue21622 reported in 2014: "ctypes.util incorrectly fails for libraries without DT_SONAME" Victor Le ven. 8 févr. 2019 à 17:27, Javier Castillo II <j.castillo.2nd@gmail.com> a écrit :
Ran into some issues trying to deploy in an alpine container, where I wound up coming across the issue. I found a solution ( not sure if an ideal solution can exist ) that walks the paths in the environment variable LD_LIBRARY_PATH. This was submitted in github PR 10460, but not sure if there were any technical issues with this impacting its review. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/vstinner%40redhat.com
-- Night gathers, and now my watch begins. It shall not end until my death.

This is the overarching issue: https://github.com/docker-library/python/issues/111 In short, libraries that rely on find_library to bind to libs failed to start as find_library returned nothing. In particular, a build of python and saltstack in a single container, and a few other packages when using the alpine base. On Mon, Feb 11, 2019 at 5:18 AM Victor Stinner <vstinner@redhat.com> wrote:
Hi,
Would you mind to elaborate "some issues trying to deploy in an alpine container"? What are you trying to do? What is the error message?
Some more context:
* https://github.com/python/cpython/pull/10460 "bpo-21622: ctypes.util find_library walk LD_LIBRARY_PATH" * https://bugs.python.org/issue21622 reported in 2014: "ctypes.util incorrectly fails for libraries without DT_SONAME"
Victor
Le ven. 8 févr. 2019 à 17:27, Javier Castillo II <j.castillo.2nd@gmail.com> a écrit :
Ran into some issues trying to deploy in an alpine container, where I
wound up coming across the issue. I found a solution ( not sure if an ideal solution can exist ) that walks the paths in the environment variable LD_LIBRARY_PATH. This was submitted in github PR 10460, but not sure if there were any technical issues with this impacting its review.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/vstinner%40redhat.com
-- Night gathers, and now my watch begins. It shall not end until my death.
participants (2)
-
Javier Castillo II
-
Victor Stinner