Bug 28559 - Shared libraries without execution permissions are ignored
Summary: Shared libraries without execution permissions are ignored
Status: UNCONFIRMED
Alias: None
Product: debugedit
Classification: Unclassified
Component: find-debuginfo (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-08 09:44 UTC by christian.morales.vega
Modified: 2021-11-08 10:02 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christian.morales.vega 2021-11-08 09:44:38 UTC
find-debuginfo only considers files with execution permissions (https://sourceware.org/git/?p=debugedit.git;a=blob;f=scripts/find-debuginfo.in;h=b07a52fe4b983bc7c9c5e12414d68bb91bbe7ea3;hb=f62fdfc7e8ddb9887f91a021636a4b430c76ec05#l415). But not everybody thinks giving execution permissions to shared libraries, specially by default, is a good idea; but the debug information from them needs to be extracted.

OpenSUSE even has this patch saying '-or -name "*.so*"' (https://build.opensuse.org/package/view_file/openSUSE:Factory/rpm/finddebuginfo.diff)
Comment 1 Panu Matilainen 2021-11-08 10:02:58 UTC
Yup, that would be a leftover from rpm days, where the executable bit was abused as a enabler/disabler for dependency generation and also debuginfo generation. It was always a hack and makes even less sense now.