pypa / pypa/distutils

find_library_file doesn't handle openbsd shared library naming scheme

Open Beginner friendly
#396 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
59
Forks
94
PR merge metrics
No merged PRs in 30d

Description

https://github.com/pypa/distutils/blob/603b94ec2e7876294345e5bceac276496b369641/distutils/compilers/C/unix.py#L403

OpenBSD shared libraries are just installed as lib.so.., there are no symlinks from lib.so. The code in find_library_path only searches for .so without version numbers and .a, so it fails to find these unless there's also an associated static library.

(We found this after looking at issues with Pillow not building support for some image formats after updates to the various libraries which they depend on removed static libraries).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in distutils/compilers/C/unix.py at the referenced find_library_file and find_library_path code. Review how library filenames are searched, then verify that OpenBSD libraries named lib.so.. are found without an accompanying static library. The issue is done when this naming scheme is handled without breaking existing .so and .a lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.