Skip to content

Support more platforms in ctypes.find_library #142020

@Samueru-sama

Description

@Samueru-sama

Bug report

Bug description:

I make appimages that bundle glibc and as result are able to work on any linux system (even in musl libc systems).

I had this issue which wasn't fully fixed until I manage to find out that the problem was cpython running /sbin/ldconfig -p which caused everything to fail.

Interestingly enough the output of ldconfig is not needed here, since after doing some patching to bundle ldconfig the issue was fixed, that ldconfig is just outputting the libraries of the alpine system and none of the bundled libraries yet the application finds and uses the bundled libraries without issue.

so this should test if ldconfig -p is supported before attempting to use it.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions