Bug 214233 - Bad script in /usr/lib/rpm/redhat/find-requires
Bad script in /usr/lib/rpm/redhat/find-requires
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jon Masters
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-06 13:32 EST by H.J. Lu
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: f7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-19 14:19:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description H.J. Lu 2006-11-06 13:32:29 EST
/usr/lib/rpm/redhat/find-requires in redhat-rpm-config-8.0.45-6 has

if [ "$1" ]
then
   package_name = "$1"
fi

It leads to

/usr/lib/rpm/redhat/find-requires: line 10: package_name: command not found
Finding  Requires: /usr/lib/rpm/redhat/find-requires kernel

when building noarch kernel rpm. This change

d[hjl@gnu-2 kernel-FC5]$ diff -up /tmp/find-requires
/usr/lib/rpm/redhat/find-reuires
--- /tmp/find-requires  2006-11-06 10:27:50.000000000 -0800
+++ /usr/lib/rpm/redhat/find-requires   2006-11-06 10:27:58.000000000 -0800
@@ -7,7 +7,7 @@
 
 if [ "$1" ]
 then
-   package_name = "$1"
+   package_name="$1"
 fi
 
 ulimit -c 0

works for me.
Comment 1 Jon Masters 2006-11-10 06:23:02 EST
Oops. Got fixed in devel (I think, will check) but didn't get into FC6. I'll
have to make sure this goes into the next update.

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