Build breaks rpath on classic snaps
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without resolution. The report details a snapcraft build bug breaking rpath on classic snaps, causing runtime failures. No comments or follow-up actions were recorded.
Suggested action: —
No scores available.
Issue body
On a Xenial amd64 host building a classic snap with no base, if I add bash to stage-packages, then "patchelf --print-rpath prime/bin/bash" returns a blank line and bash is broken in my built snap. There seem to be other things broken too - I saw a segfault with git-ubuntu for example - but I suspect that the bad rpath should be sufficient to identify the root cause.
Affected:
4.2.post13+gitab04b216 (5447) 70MB classic
4.1 (5117) 67MB classic
This only happens if I run "snapcraft". If I use "snapcraft cleanbuild" then the build is correct. I fell into this trap because of trying to work around bug 1894656.
Expected results: "snapcraft" is equivalent to "snapcraft cleanbuild" on a fresh Xenial VM.
Actual results: a broken snap. "patchelf --print-rpath prime/bin/bash" returns a blank line and running bash on the installed snap it fails to find libtinfo.so.5.
Sample snapcraft.yaml:
name: test-snap
version: '1'
summary: Test snap summary
description: |
Test snap description
grade: devel
confinement: classic
parts:
part1:
plugin: nil
source: .
stage-packages: [bash]
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The report details a snapcraft build bug breaking rpath on classic snaps, causing runtime failures. No comments or follow-up actions were recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix or resolution. The report describes an rpath corruption bug in classic snap builds, but with zero comments and no linked PR, the issue appears abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without comments or resolution details. The classic snap rpath breakage on Xenial appears abandoned. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1736861 classic snap fails to build with "cannot find section" | snapcraft (launchpad) | closed | Closed without comments or resolution. The snapcraft 2.37 regression causing patchelf failures in classic snaps was abandoned or resolved in a subsequent release. |