Bug 165173 - rpmlint does not recognise other-arch binaries
rpmlint does not recognise other-arch binaries
Product: Fedora
Classification: Fedora
Component: rpmlint (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ville Skyttä
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2005-08-04 17:16 EDT by Paul Howarth
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 0.71-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-18 14:53:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Paul Howarth 2005-08-04 17:16:22 EDT
Description of problem:
When I run rpmlint on an x86 machine against an x86_64 package, the file format
of the binaries is not recognised and spurious "statically-linked-binary" errors
are produced. I wouldn't be surprised if other arch-mixes result in similar

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

How reproducible:
Every time.

Steps to Reproduce:
$ curl --remote-name
(nice, small package, but any should do)
$ rpmlint -i autossh-1.3-2.fc4.x86_64.rpm

Actual results:
file format not recognized for
/tmp/autossh-1.3-2.fc4.x86_64.rpm.19688/usr/bin/autossh in /usr/bin/autossh
E: autossh statically-linked-binary /usr/bin/autossh
The package installs a statically linked binary or object file.

Usually this is a bug. Otherwise, please contact
<flepied at mandriva.com> about this so that this error gets included
in the exception file for rpmlint. With that, rpmlint will ignore
this bug in the future.

Expected results:
No output
Comment 1 Ville Skyttä 2005-08-11 13:55:16 EDT
The root cause is that objdump doesn't grok other-arch binaries, and rpmlint  
doesn't stop checking stuff even if it notices that objdump didn't produce  
usable results.  
The bogus messages should go in these cases though; I looked into it and  
found that fixing it is pretty trivial, but mainly due to Python's indentation 
requirements, results in a big patch that I don't feel like maintaining right 
now.  I've let upstream know about this, let's see what they think first.  
Will roll a 0.71 package without touching this issue, and revisit in the next 
Comment 2 Ville Skyttä 2006-01-17 16:11:55 EST
rpmlint-0.71-3.fc5 (soon in Extras devel, and later probably in FE-4) now outputs:

$ rpmlint -i autossh-1.3-2.fc4.x86_64.rpm
W: autossh objdump-failed objdump:
/tmp/autossh-1.3-2.fc4.x86_64.rpm.6586/usr/bin/autossh: File format not recognized
Executing objdump on this file failed, all checks could not be run.
Comment 3 Paul Howarth 2006-01-18 06:20:59 EST
That's a big improvement and I'm personally happy enough with that.

I guess it's unlikely that objdump will ever be able to grok all possible
architectures, so I think this bug can probably be closed now.
Comment 4 Ville Skyttä 2006-01-18 14:53:19 EST
Yep, agreed.  Not closed yet because the bug was reported against FC4 and it's
still unfixed there, but the fixed version will trickle there too in the near
future once the version in devel has received some testing.

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