Bug 9644

Summary: rpm find_requires misidentifies some executable files
Product: [Retired] Red Hat Linux Reporter: Nigel Metheringham <nigel.metheringham>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-21 16:46:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nigel Metheringham 2000-02-21 15:47:00 UTC
Latest xemacs build gave:-
  Finding  Requires: (using /usr/lib/rpm/find-requires)...
  objdump:
/var/tmp/xemacs-root/usr/lib/xemacs/xemacs-packages/lisp/sh-script/executable.el:
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
"executable".

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.

Comment 1 Jeff Johnson 2000-02-21 16:46:59 UTC
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.