← Back to issue list

Snapcraft should expand its default LD_LIBRARY_PATH to include libGL

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1531620
Type
issue
State
closed
Author
~kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

libGL support was implemented by adding Mesa library paths to the default LD_LIBRARY_PATH; PR #204 was merged in commit f8d8ee79d.

Resolution: closed resolved

Reason: Snapcraft merged PR #204 with commit da00836e9 and merge commit f8d8ee79d, adding support for Mesa libraries required by libGL.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Use-case: 1. Create a cmake project which uses the OpenCV libraries. 2. Package with Snapcraft 3. Run resulting .snap on Snappy. Expected results: It runs successfully. Actual results: It dies, unable to link to libGL (upon which OpenCV depends). libGL is going to be a common dependency, and is something that should be supported without requiring developers to write a wrapper.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved libGL support was implemented by adding Mesa library paths to the default LD_LIBRARY_PATH; PR #204 was merged in commit f8d8ee79d.
stealth/space-bunny-alpha — closed resolved Snapcraft added Mesa library paths, including libGL support, to the default LD_LIBRARY_PATH in merged PR #204.
stealth/space-bunny-alpha — closed stale Closed without a recorded fix or explanation after about ten years of inactivity. PR #204 separately added Mesa/OpenGL library-path support.
qwen/qwen3.6-35b-a3b — — Requesting Snapcraft expand LD_LIBRARY_PATH to include libGL was closed without resolution or comments, indicating the feature request was abandoned. No code changes or workarounds were implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution due to inactivity. The request to expand Snapcraft's default LD_LIBRARY_PATH to include libGL for OpenCV compatibility was abandoned. No implementation or workaround was provided.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to expand LD_LIBRARY_PATH for libGL was abandoned, superseded by modern Snap practices that handle OpenGL dependencies via the gl interface and core runtimes.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments or resolution. The request to expand Snapcraft's default LD_LIBRARY_PATH for libGL support was abandoned. No implementation or workaround was provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: ubuntu-core/snapcraft#204 (confidence 100%)

    The maintainer linked this feature request to PR #204, whose merge added Mesa library paths.

Related issues

Issue Project State Summary Similarity
#204 Add support for mesa libraries. snapcraft merged Merged #204 via f8d8ee79d, adding Mesa library paths to LD_LIBRARY_PATH and moving library handling into snapcraft.libraries; resolves LP #1531620.
73%