← Back to issue list

pluginhandler: special case go patchelf failures for classic confinement

View original Github issue

Metadata

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

Current evaluation

Merged. Adds a warning for patchelf failures in classic confinement Go snaps and cleans up bases/libc6 logic. Approved after reviewer questions regarding patchelf crash output were addressed.

Suggested action:

No scores available.

Issue body

Classic confinement for go with patchelf is still a little problematic and has never really work from a confinement perspective. So we warn if patchelf fails to run through. Clean up the logic after the introduction of bases and the requirement to explicitly add libc6 to stage-packages in case of non host compatibilities - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Adds a warning for patchelf failures in classic confinement Go snaps and cleans up bases/libc6 logic. Approved after reviewer questions regarding patchelf crash output were addressed.
qwen3.6-35b-a3b-mtp-q6 Merged. Special-cases patchelf failures for Go snaps under classic confinement, issuing a warning instead of failing. Cleans up base and libc6 stage-package logic. Approved after reviewer confirmed expected tool behavior.
qwen3.6-35b-a3b-mtp-q6 Merged. Special-cases patchelf failures for Go snaps in classic confinement by issuing a warning instead of failing. Cleans up plugin logic for bases and adds libc6 to stage-packages for non-host compatibility. Approved after reviewer clarification.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3277 pluginhandler: support using patchelf on strict snaps snapcraft merged Adds enable-patchelf build attribute to opt into rpath and interpreter patching for strict snaps. Feature applies per-part. Review resolved naming and command-chain handling. Merged following a commit revert.
73%
#1850 pluginhandler: patch and handle elf files on glibc mismatch snapcraft merged Merged. Resolves glibc mismatches in ELF files by fetching libc6 from the host, priming it, and using its dynamic loader instead of the base snap's. Approved by two reviewers and closes issues #1668 and #1669.
73%