← Back to issue list

libunity not added to LD_LIBRARY_PATH

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1638405
Type
issue
State
open
Author
~zyga
Labels
Created
Updated
Closed

Current evaluation

Snapcraft 2.20 wrapper script omits libunity from LD_LIBRARY_PATH on Launchpad buildd but not locally. No labels, no comments, no maintainer interaction in ~7.6 years. Current desktop extension explicitly adds libunity to LD_LIBRARY_PATH, making the original problem obsolete.

Suggested action: close stale

Reason: The issue targets snapcraft 2.20 (2016) and the wrapper script mechanism has been completely rewritten since then (command-chain, adapters, extensions). The current desktop extension at extensions/desktop/common/desktop-exports explicitly includes 'append_dir LD_LIBRARY_PATH "$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/libunity"', directly addressing the libunity path concern. Zero maintainer interaction, no labels, and no activity in 2794 days confirm this is no longer applicable.

Impact: 20 Quick Win: 14.0 Staleness: 92 Complexity: 30 Confidence: 78 Support Request: 10

Issue body

if built on launchpad buildd, snapcraft does not add $SNAP/usr/lib/x86_64-linux-gnu/libunity to LD_LIBRARY_PATH in the wrapper script. This results in the error: ** (process:28769): WARNING **: Failed to load shared library 'libunity.so.9' referenced by the typelib: libunity-protocol-private.so.0: cannot open shared object file: No such file or directory see: https://bugs.launchpad.net/snappy/+bug/1602845/comments/7 however if you run snapcraft locally everything works: https://bugs.launchpad.net/snappy/+bug/1602845/comments/10 the assumtion that snapcraft is outdated on buildd is not true. As you can see here version 2.20 (latest) is used: https://launchpadlibrarian.net/291705533/buildlog_snap_ubuntu_xenial_arm64_teatime_BUILDING.txt.gz the difference is the following line in the command-teatime.wrapper: -export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" +export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/libunity:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$LD_LIBRARY_PATH"

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 14.0
Staleness: 92
Complexity: 30
Confidence: 78
Support Request: 10
close stale Snapcraft 2.20 wrapper script omits libunity from LD_LIBRARY_PATH on Launchpad buildd but not locally. No labels, no comments, no maintainer interaction in ~7.6 years. Current desktop extension explicitly adds libunity to LD_LIBRARY_PATH, making the original problem obsolete.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 10
close stale Snapcraft wrapper script fails to include libunity in LD_LIBRARY_PATH during Launchpad buildd builds, causing runtime errors. Issue is over 9 years old with no maintainer interaction or labels.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 95
Support Request: 10
close stale Snapcraft wrapper script fails to include libunity in LD_LIBRARY_PATH during launchpad buildd builds, causing shared library load failures.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 35
Confidence: 90
Support Request: 10
close stale Snapcraft wrapper script fails to include libunity in LD_LIBRARY_PATH during Launchpad buildd builds, causing shared library load errors. Issue is over 9 years old and tied to obsolete Ubuntu 16.04/Snapcraft versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 90
Support Request: 10
close stale snapcraft omits libunity from LD_LIBRARY_PATH in buildd wrapper scripts, causing shared library load failures. Open with no recent activity or comments, it requires triage to update the wrapper path export.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#de384be8922b27770df948ce1ceb3a61d314f63b (confidence 70%)

    Current desktop-exports file adds libunity to LD_LIBRARY_PATH, showing the concern has been addressed in the modern extension architecture.

Related issues

Issue Project State Summary Similarity
#2049617 ubuntu-desktop-installer LD_LIBRARY_PATH not defined anymore snapcraft (launchpad) open Classic snap shell environment no longer sets LD_LIBRARY_PATH, possibly a snapcraft 8.0.1 regression. Untriaged, no maintainer engagement in 961 days.
71%