Bug 9644 - rpm find_requires misidentifies some executable files
Summary: rpm find_requires misidentifies some executable files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-02-21 15:47 UTC by Nigel Metheringham
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-02-21 16:46:52 UTC
Embargoed:


Attachments (Terms of Use)

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.


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