← Back to issue list

core: find the correct libraries as a snap.

View original Github issue

Metadata

Project
snapcraft
Number
#1234
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged in snapcraft#1234 as commit a7a5a2eae, making ctypes library discovery snap-aware instead of using the host ldconfig cache.

Resolution: closed resolved

Reason: PR #1234 was merged as commit a7a5a2eae. Its change searches for libraries packaged inside the snap, avoiding incorrect results from host libraries.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The current implementation as of 3.6 in for find_library in ctypes.util makes use of `ldconfig -p` which depends on the current ld cache which in effect has no knowledge of any library in $SNAP. What makes matters worse is that it will provide results for on host libraries we do NOT want. LP: #1678289 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#1234 as commit a7a5a2eae, making ctypes library discovery snap-aware instead of using the host ldconfig cache.
stealth/space-bunny-alpha — closed resolved Merged PR #1234 fixed ctypes.util.find_library to locate libraries inside the snap instead of relying on the host ldconfig cache and returning host libraries.
qwen/qwen3.6-35b-a3b — — Merged a fix overriding ctypes.util.find_library to bypass host ldconfig and correctly locate snap libraries, resolving runtime dependency detection issues.
qwen3.6-35b-a3b-mtp-q6 — — Merged fix for snap library discovery. Replaced ldconfig -p with a snap-aware method to prevent ctypes.util.find_library from returning host libraries. Resolves LP: #1678289 following manual testing verification.

Update history

No update history recorded yet.

Related work

  • Related To: launchpad#1678289 (confidence 99%)

    Original Launchpad bug linked in the PR description.

Related issues

No related issues found above the similarity threshold.