Bug 1976254 - rpmlint cannot find installed files
Summary: rpmlint cannot find installed files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-25 15:59 UTC by Jerry James
Modified: 2021-07-01 16:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-01 16:38:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpmlint issues 671 0 None open rpmlint run against installed packages does not work properly 2021-06-30 20:14:58 UTC

Description Jerry James 2021-06-25 15:59:01 UTC
Description of problem:
When passing the -i flag to check installed packages, rpmlint seems to be unable to find ELF files; e.g.:

$ rpmlint -i ocaml-qcheck

...

ocaml-qcheck.x86_64: E: readelf-failed /usr/lib64/ocaml/qcheck-alcotest/qcheck_alcotest.cmxs readelf: /tmp/rpmlint.ocaml-qcheck.rcyaud3n/usr/lib64/ocaml/qcheck-alcotest/qcheck_alcotest.cmxs: Error: No such file

readelf: /tmp/rpmlint.ocaml-qcheck.rcyaud3n/usr/lib64/ocaml/qcheck-alcotest/qcheck_alcotest.cmxs: Error: No such file

[snip many more errors of the same type]

Version-Release number of selected component (if applicable):
rpmlint-2.0.0-3.fc35.noarch

How reproducible:
Always

Steps to Reproduce:
1. rpmlint -i coreutils
2.
3.

Actual results:
Lots of readelf errors.

Expected results:
Readelf should read from the installed location, not from a nonexistent temporary directory where a nonexistent binary rpm has not been unpacked.

Additional info:

Comment 1 Tom "spot" Callaway 2021-06-30 20:08:24 UTC
It seems even more broken than that. I'm opening an upstream issue.

Comment 2 Tom "spot" Callaway 2021-07-01 16:38:16 UTC
Upstream fixed it extremely quickly, now fixed in rpmlint-2.0.0-4.fc35.


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