Bug 1497012 - patchelf bloats files, please apply upstream fix
Summary: patchelf bloats files, please apply upstream fix
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: patchelf
Version: 25
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Sanders
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-29 00:45 UTC by Kevin Kofler
Modified: 2017-12-12 10:08 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:08:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patchelf-0.9-avoid-inflating-file-sizes.patch (5.31 KB, patch)
2017-09-29 01:31 UTC, Kevin Kofler
no flags Details | Diff

Description Kevin Kofler 2017-09-29 00:45:12 UTC
Description of problem:
I tried adding an rpath to a binary using patchelf. I got a "warning: working around a Linux kernel bug by creating a hole of 2097152 bytes". This should be fixed by the following upstream commit:
https://github.com/NixOS/patchelf/commit/c4deb5e9e1ce9c98a48e0d5bb37d87739b8cfee4

Version-Release number of selected component (if applicable):
patchelf-0.8-5.fc24.x86_64 (the latest on F25)
Looking at dist-git, the patchelf-0.9 packages in F26, F27 and Rawhide have the same issue. (The patch is not applied there either, and it is not part of the upstream release 0.9.)

How reproducible:
Always

Steps to Reproduce:
1. Try using patchelf --set-rpath on an executable.

Actual results:
A hole is created.

Expected results:
No hole is created.

Additional info:
Note that chrpath does not support adding rpath at all, so patchelf seems to be the only tool easily allowing that out there.

Comment 1 Kevin Kofler 2017-09-29 01:31:00 UTC
Created attachment 1332182 [details]
patchelf-0.9-avoid-inflating-file-sizes.patch

I backported the patch to 0.9 (see attachment), I was about to file a pull request for dist-git, but unfortunately, it fails the test suite on i686: "FAIL: set-interpreter-long.sh". It passes on x86_64, armv7hl, and s390x though. I have no idea why it doesn't work on i686.

Comment 2 Kevin Kofler 2017-09-30 00:22:57 UTC
I filed https://github.com/NixOS/patchelf/issues/136 for the testsuite failure.

Comment 3 Fedora End Of Life 2017-11-16 18:52:57 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2017-12-12 10:08:51 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.