← Back to issue list

snap: revert to patchelf 0.9 with local patches

View original Github issue

Metadata

Project
snapcraft
Number
#2531
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged a revert to patchelf 0.9 with local patches after version 0.10 generated unreliable binaries on i386, ppc64el, and s390x. The change restores build stability pending upstream fixes.

Suggested action:

No scores available.

Issue body

After extensive tests with patchelf 0.10 on different architectures, it seems that it's not producing reliable binaries on (at least) i386, ppc64el and s390x. Revert back to 0.9 with local patches until 0.10 issues are properly addressed. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [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/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a revert to patchelf 0.9 with local patches after version 0.10 generated unreliable binaries on i386, ppc64el, and s390x. The change restores build stability pending upstream fixes.
qwen3.6-35b-a3b-mtp-q6 Merged a revert of patchelf from 0.10 to 0.9 with local patches after 0.10 generated unreliable binaries on i386, ppc64el, and s390x. The change was merged into master as a temporary workaround until upstream issues are resolved.
qwen3.6-35b-a3b-mtp-q6 Merged to master. Reverted patchelf from 0.10 to 0.9 with local patches after 0.10 generated unreliable binaries on i386, ppc64el, and s390x. The change restores cross-architecture build stability pending upstream fixes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2519 packaging: use local patchelf snapcraft merged Merged. Relinked dynamic executables with the system linker to resolve set-rpath segfaults in Go binaries. Integrates upstream patchelf 0.10 to correctly set interpreters and fix ELF section layout issues.
75%
#2528 packaging: use our patchelf branch snapcraft merged Merged into master to fix s390x build failures by switching patchelf to a custom branch with a failing test disabled. The one-line change was approved, passed CI, and integrated.
73%
#3589 snap: correct patch apply for patchelf snapcraft merged Merged a two-line fix correcting patch application for patchelf. Approved by a reviewer, passed CI, and merged to master. An unrelated test failure was noted but disregarded to proceed.
72%
#1983 snap: update revision of patchelf to use snapcraft closed Closed without merging. The patchelf revision update received no reviews, comments, or CI checks, indicating it was abandoned or superseded by a later change.
71%
#3588 snap: patch patchelf on riscv64 (CRAFT-566) snapcraft merged Merged to master. Conditionally applies patchelf patches on riscv64 to prevent breaking other architectures. Approved by one reviewer, passed CI, and added 104 lines across three files without impacting test coverage.
71%
#1798 elf: strip the .note.go.buildid to make room for patching elf snapcraft merged Merged. Strips the .note.go.buildid section from ELF binaries to resolve patchelf compatibility issues and fix build failures. Approved after passing CI checks. Introduces a newer patchelf build-snap dependency to ensure correct header patching.
70%