Bug 5836 - Solaris find-requires function has a syntax error
Summary: Solaris find-requires function has a syntax error
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
(Show other bugs)
Version: 6.1
Hardware: All Linux
low
low
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-10-11 15:34 UTC by Nigel Metheringham
Modified: 2008-05-01 15:37 UTC (History)
0 users

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


Attachments (Terms of Use)

Description Nigel Metheringham 1999-10-11 15:34:46 UTC
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 15:48:59 UTC
Fixed in cvs. Thanks for the report.


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