← Back to issue list

pluginhandler: simplify logic when elf patching is required

View original Github issue

Metadata

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

Current evaluation

Merged changes simplifying ELF patching logic in the pluginhandler. The update reduced code by 38 lines across six files, received reviewer approval, and passed checks before integration.

Suggested action:

No scores available.

Issue body

Signed-off-by: Sergio Schvezov <sergio.schvezov@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/)? - [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 changes simplifying ELF patching logic in the pluginhandler. The update reduced code by 38 lines across six files, received reviewer approval, and passed checks before integration.
qwen3.6-35b-a3b-mtp-q6 Merged simplification of pluginhandler logic for ELF patching requirements. The refactored code streamlines the patching process, passes all static and unit tests, and was approved by the maintainer.
qwen3.6-35b-a3b-mtp-q6 Merged changes simplifying ELF patching logic in the pluginhandler module. The update streamlines conditional checks for ELF patching requirements, improving code maintainability while preserving existing functionality.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1987 pluginhandler: add option to disable patchelf for a part snapcraft merged Merged an update to the pluginhandler introducing an option to disable patchelf for a specific part. Approved by one reviewer, passed all tests, and applied with 53 additions and 4 deletions across five files.
78%
#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.
74%
#3841 elf: add elf file patcher snapcraft merged Merged an ELF file patcher using patchelf, ported from Snapcraft 6.x. Approved by one reviewer, passed CI checks, and increased test coverage by 0.26%. Resolves CRAFT-1191.
74%
#3840 elf: add handling and patching helpers snapcraft merged Merged into main following reviewer approval and passing CI checks. Introduces ELF binary listing and dynamic linker location helpers, adding handling and patching utilities to the elf module while increasing test coverage.
72%
#2021 pluginhandler: only resort to elf mangling if the snap type is app snapcraft merged Merged a fix restricting ELF mangling to app-type snaps only. Approved, passed CI, and updated one file with 12 additions and 4 deletions.
71%
#1873 elf: cleaner patchelf experience snapcraft merged Merged improvements to patchelf handling. The change uses the system patchelf by default, copies files to prevent hard-link conflicts, and provides fallback instructions. Approved by two reviewers and passed CI checks before merging.
71%
#2006 many: use packaging logic to get patchelf snapcraft merged Merged following reviewer approval and CI checks. Refactored patchelf retrieval to use shared packaging logic, aligning its version across snap and deb packages. Modified four files with a net reduction of 24 lines.
70%