Red Hat Bugzilla – Bug 9644
rpm find_requires misidentifies some executable files
Last modified: 2008-05-01 11:37:54 EDT
Latest xemacs build gave:-
Finding Requires: (using /usr/lib/rpm/find-requires)...
File format not recognized
This is due to in find_requires:-
exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1
which misidentifies the .el file as executable because its name contains
if the grep is changed as per the script list one, so its:-
exelist=`echo $filelist | xargs -r file | egrep ":.* executable" | cut
-d: -f1 `
then that cuts out all the false positives - I can see no false negatives
that this will add.
Thanks for the patch. A change similar to this has already been checked
in and should be in (at least) rpm-3.0.4-0.44.