← Back to issue list

Warn when using `override-prime` and `enable-patchelf`

View original Github issue

Metadata

Project
snapcraft
Number
#4547
Type
issue
State
closed
Author
syu-w
Labels
—
Created
Updated
Closed

Current evaluation

Warning added for enable-patchelf combined with override-prime, which can leave binaries unpatched. Fixed by merged PR #4553 (commit 4a3a0622b), shipped in Snapcraft 8.0.3.

Resolution: closed resolved

Reason: Maintainer mr-cal closed the issue citing merged PR #4553 (commit 4a3a0622b), which emits a progress warning in snapcraft/parts/lifecycle.py for parts using both enable-patchelf and override-prime. The changelog for 8.0.3 lists this change referencing #4547.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Show a warning ### Why it needs to get done override-prime with patchelf may broke the binary.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Warning added for enable-patchelf combined with override-prime, which can leave binaries unpatched. Fixed by merged PR #4553 (commit 4a3a0622b), shipped in Snapcraft 8.0.3.
stealth/space-bunny-alpha — closed resolved Added a warning that combining override-prime with enable-patchelf can produce a broken binary. Fixed via merged PR #4553 (commit 4a3a0622b).
qwen/qwen3.6-35b-a3b — — Fixed via pull request #4553. A warning is now displayed when override-prime and enable-patchelf are used together to prevent potential binary breakage.
qwen/qwen3.6-35b-a3b — — Implemented a warning when override-prime and enable-patchelf are used together to prevent binary breakage. Resolved via pull request #4553.
qwen/qwen3.6-35b-a3b — — Fixed via pull request 4553. A warning is now emitted when using override-prime with enable-patchelf to prevent potential binary breaks from the combination.
qwen3.6-35b-a3b-mtp-q6 — — Fixed via PR #4553. Added a warning when override-prime and enable-patchelf are used together to prevent potential binary breakage. The issue is now closed.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#4553 (confidence 97%)

    Merged PR 'fix: warning unsafe override-prime' (commit 4a3a0622b) implementing the warning; noted in the issue's closing comment.

Related issues

Issue Project State Summary Similarity
#4553 fix: warning unsafe override-prime snapcraft merged Merged PR #4553 in commit 4a3a0622b added a warning that enable-patchelf cannot process files primed by parts using override-prime.
78%
#4524 test(lifecycle): add test for check patchelf when override snapcraft closed PR #4524 was closed unmerged as outdated; snapcraft#4553 superseded it by adding a warning for override-prime combined with patchelf.
75%