Bug 5836 - Solaris find-requires function has a syntax error
Solaris find-requires function has a syntax error
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.1
All Linux
low Severity low
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-10-11 11:34 EDT by Nigel Metheringham
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-10-11 11:48:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nigel Metheringham 1999-10-11 11:34:46 EDT
fine-requires on solaris built rpm fails due to [ -z
being given a variable number of arguments.

Patch to fix is:-
Index: ./autodeps/solaris.req
--- ./autodeps/solaris.req      Tue Sep 21 19:34:55 1999
+++ ./autodeps/solaris.req      Mon Oct 11 16:29:54 1999
@@ -8,7 +8,7 @@
 ulimit -c 0

 filelist=`sed "s/['\"]/\\\&/g"`
-[ -z $filelist ] && exit #emulate -r option for xargs
+[ -z "$filelist" ] && exit #emulate -r option for xargs

 for f in `echo $filelist | xargs file | fgrep executable |
cut -d: -f1`; do
     ldd $f 2>/dev/null | awk '/\=\>/ { print $1 }'
#### End of Patch data ####

[didn't I used to get asked my email address - well its
nigel@pobox.com among others :-) ]
Comment 1 Jeff Johnson 1999-10-11 11:48:59 EDT
Fixed in cvs. Thanks for the report.

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