← Back to issue list

LD_LIBRARY_PATH hardcoded at snap creation time -- RPATH

View original Github issue

Metadata

Project
snapcraft
Number
#38
Type
issue
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Closed by maintainer sergiusens on 2015-11-16 in favour of Launchpad bug #1486623; no runtime-triplet or RPATH fix landed then. RPATH support later arrived for classic confinement in #1094, #1781 and #2085.

Resolution: closed superseded

Reason: The maintainer closed the GitHub issue with the comment "We use lp again to track bugs.", moving tracking to Launchpad bug LP1486623 (linked in the issue body). No commit implementing the runtime-triplet LD_LIBRARY_PATH or $ORIGIN RPATH proposal landed for this issue; the RPATH idea only surfaced much later for classic confinement.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Hi, LD_LIBRARY_PATH currently includes triplet as computed at snap creation time, but it should rather be set at runtime on a per-architecture basis. In fact, a better approach would be to set a RPATH relative to the binary: $ORIGIN/../../lib/$PLATFORM, or something like that. Cheers, Launchpad Details: [#LP1486623](https://bugs.launchpad.net/bugs/1486623) Loïc Minier - 2015-08-19 12:30:36 -0300

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed by maintainer sergiusens on 2015-11-16 in favour of Launchpad bug #1486623; no runtime-triplet or RPATH fix landed then. RPATH support later arrived for classic confinement in #1094, #1781 and #2085.
stealth/space-bunny-alpha — closed superseded Closed in favor of Launchpad bug #1486623. The runtime architecture/RPATH proposal was not implemented before the Launchpad bug was also closed.
qwen/qwen3.6-35b-a3b — — Closed and superseded by Launchpad tracking. Maintainer directed future bug reports to Launchpad. No repository changes were made.
qwen/qwen3.6-35b-a3b — — Closed and superseded. The maintainer redirected bug tracking to Launchpad, declining to implement the suggested runtime LD_LIBRARY_PATH or RPATH changes in this tracker.
qwen/qwen3.6-35b-a3b — — Closed and abandoned. Maintainer redirected tracking to Launchpad without implementing runtime architecture detection or RPATH changes. No code modifications were made.
qwen3.6-35b-a3b-mtp-q6 — — Closed and superseded by Launchpad. The maintainer stated the project resumed using Launchpad for bug tracking, leaving the RPATH enhancement unresolved.

Update history

No update history recorded yet.

Related work

  • Superseded By: Launchpad#1486623 (confidence 90%)

    Bug LP1486623 is cited in the issue body and was confirmed by sergiusens' closing comment redirecting tracking to Launchpad.

  • Related To: snapcraft#1094 (confidence 55%)

    Commit e174e46e6 'core: switch to using rpath for clasic confinement' is the eventual implementation of the RPATH idea, but scoped to classic confinement years later.

  • Related To: snapcraft#1781 (confidence 50%)

    Commit 3eafb9dd6 'many: set rpath for elf files for classic' builds on the rpath infrastructure; not a resolution of this issue.

  • Related To: snapcraft#2085 (confidence 40%)

    Commit 4ed555c5e 'elf: clear the current runpath before setting the rpath' refines the same rpath handling machinery.

Related issues

Issue Project State Summary Similarity
#1486623 LD_LIBRARY_PATH hardcoded at snap creation time -- RPATH snapcraft (launchpad) closed Hardcoded LD_LIBRARY_PATH behavior was declared obsolete: a maintainer said in 2023 that it no longer applies to core22; discussion had moved to canonical/snapcraft#38.
83%
#2128 project_loader: stop setting LD_LIBRARY_PATH snapcraft closed Closed unmerged in #2128 as unnecessary after the last known Trusty classic-snap user moved to Xenial; no code was changed.
70%