Bug 1609013 - [RFE] find-debuginfo.sh should use a reliable, dedicated ELF file id tool, not rely on parsing 'file' output
Summary: [RFE] find-debuginfo.sh should use a reliable, dedicated ELF file id tool, no...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: debugedit
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mark Wielaard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-26 18:02 UTC by Adam Williamson
Modified: 2022-08-30 12:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1608549 0 unspecified CLOSED 'file' fails to recognize that a large library with a large number of sections is 'not stripped' 2021-02-22 00:41:40 UTC

Internal Links: 1608549

Description Adam Williamson 2018-07-26 18:02:45 UTC
This bug is a spin-off from https://bugzilla.redhat.com/show_bug.cgi?id=1608549 . In https://bugzilla.redhat.com/show_bug.cgi?id=1608549#c20 , Mark Wielaard wrote:

"Then file does keep giving us trouble when used as "ELF file identifier", file could be fixed, but I think rpm should stop relying on file and just have its own small specific ELF file id utility. I could write that and update the rpm scripts to use that instead of trying to regex match file output."

So, this is a bug for that specific task, I'll assign it to Mark.

Comment 1 Panu Matilainen 2018-08-24 09:22:04 UTC
Actually... we already have a small, ELF-specific tool in rpm: elfdeps. The one in released rpm's wont work, but after this patch it should be usable for the purpose:
https://github.com/rpm-software-management/rpm/commit/4cc32dec579afbc4aa48de62ee125f532bf3fc94

Comment 2 Panu Matilainen 2018-08-24 09:33:28 UTC
After actually looking at what find-debuginfo.sh does with file... it needs quite a bit of adaptation to work with the above elfdeps change, or we need to further change elfdeps to be more like file, eg add an option that prints out the filename if a file is actually ELF, or something like that.

Comment 3 Panu Matilainen 2021-05-20 08:20:42 UTC
Reassigning to debugedit which is where future developments in this area will take place.


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