Red Hat Bugzilla – Bug 22801
objdump spurious error in find-requires.
Last modified: 2007-04-18 12:30:21 EDT
Getting a bunch of errors like this:
Finding Requires: (using /usr/lib/rpm/find-requires)...
objdump: /var/tmp/courier-install/etc/init.d/courier: File format not
format not recognized
This is why:
[mrsam@localhost rpm]$ file
/var/tmp/courier-install/usr/lib/courier/share/esmtpd: Bourne shell script
The grep in find-requires now thinks that this is a binary executable.
This problem still exists in beta2.
The root cause for the problem is a change to /etc/magic in the file package
broke logic in find-requires. FWIW, the error message is harmless.
*** Bug 41372 has been marked as a duplicate of this bug. ***
Fixed (by more carefully qualifying file(1) output) in rpm-4.0.3-0.32.
I solve the problem in rpm-build-4.0.2-8, with a little change in
my new line 9 is :
exelist=`echo $filelist | xargs -r file | grep ":.*executable" | grep -v script
| cut -d: -f1 `