Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.

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 11:46:52 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nigel Metheringham 2000-02-21 10:47:00 EST
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 11:46:59 EST
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.