Bug 519694 - archives with binary content handled improperly
Summary: archives with binary content handled improperly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-27 13:03 UTC by Milos Jakubicek
Modified: 2009-10-03 19:05 UTC (History)
3 users (show)

Fixed In Version: 0.91-1.fc11
Clone Of:
Environment:
Last Closed: 2009-10-03 19:05:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Milos Jakubicek 2009-08-27 13:03:42 UTC
Description of problem:

Currently, rpmlint complains with "binaryinfo-readelf-failed" if it checks an archive containing binaries. It is because such an archive has pkgfile.magic:

ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) (gzip compressed data, from Unix, last modified: Thu Aug 27 11:44:01 2009, max compression)

...rpmlint checks for the "ELF" string, finds it, consider the archive itself to be a binary file, tries readelf and fails.

Either we can skip archives, that is easy to change the corresponding line in BinariesCheck.py to:

is_elf = pkgfile.magic.find('ELF') != -1 and pkgfile.magic.find('compressed') == -1

...or we can try to look into the archive contents and check it.

Version-Release number of selected component (if applicable):

rpmlint-0.90-1.fc11.noarch

Comment 1 Ville Skyttä 2009-08-27 15:58:44 UTC
Can you provide a pointer to a package containing such a file/archive?  Before doing anything to rpmlint, I'd like to verify that file(1) is doing the right thing.

Comment 2 Milos Jakubicek 2009-08-27 21:42:25 UTC
Have a look here:

http://koji.fedoraproject.org/koji/taskinfo?taskID=1637958

(the package is not yet in Fedora)

Comment 3 Ville Skyttä 2009-08-30 21:10:44 UTC
I took a more generalized magic-from-inside-compressed-files bypass approach upstream; even though BinariesCheck is currently the only consumer of pkgfile.magic, that might change and we'd run into this issue elsewhere (and the problem is not even currently limited to ELF files).

This will probably be in the next > 0.90 upstream release:
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1641

Comment 4 Fedora Update System 2009-09-13 22:42:10 UTC
rpmlint-0.91-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/rpmlint-0.91-1.fc11

Comment 5 Fedora Update System 2009-09-15 07:42:17 UTC
rpmlint-0.91-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rpmlint'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-9562

Comment 6 Fedora Update System 2009-10-03 19:05:09 UTC
rpmlint-0.91-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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