Bug 60802 - rpm install fails on a satisfied dependency
rpm install fails on a satisfied dependency
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.1
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-06 17:12 EST by Rick Jenkins
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-06 17:59:07 EST
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 Rick Jenkins 2002-03-06 17:12:16 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.4) Gecko/20011126
Netscape6/6.2.1

Description of problem:
The terminal session below shows a package install failing 
because of a missing dependency. It also shows that the 
required package is installed, and that rpm can see it. Is 
this a bug, or do I merely misunderstand the situation?
Note that I tried an 

rpm --rebuilddb

which apparently succeeded, in that it ran for a while and
terminated with no messages.

[root@fafnir download]#  rpm -i --test perl-Term-ReadLine-Gnu-1.11-1.i386.rpm
error: failed dependencies:
        libreadline.so.4   is needed by perl-Term-ReadLine-Gnu-1.11-1
[root@fafnir download]#  rpm -q readline-4.1-9
readline-4.1-9
[root@fafnir download]#  rpm -ql readline-4.1-9
/usr/lib/libhistory.so.4
/usr/lib/libhistory.so.4.1
/usr/lib/libreadline.so.4
/usr/lib/libreadline.so.4.1
/usr/share/info/history.info.gz
/usr/share/info/readline.info.gz
/usr/share/info/rluserman.info.gz
/usr/share/man/man3/readline.3.gz
[root@fafnir download]# ls -l /usr/lib/libreadline*
-rw-r--r--    1 root     root       218440 Apr  7  2001 /usr/lib/libreadline.a
lrwxrwxrwx    1 root     root           18 Nov 19 13:30 /usr/lib/libreadline.so
-> libreadline.so.4.1
lrwxrwxrwx    1 root     root           18 Nov 19 13:41
/usr/lib/libreadline.so.3 -> libreadline.so.3.0
-rw-r--r--    1 root     root       168423 Jul 12  2000 /usr/lib/libreadline.so.3.0
lrwxrwxrwx    1 root     root           18 Nov 19 12:33
/usr/lib/libreadline.so.4 -> libreadline.so.4.1
-rwxr-xr-x    1 root     root       177511 Apr  7  2001 /usr/lib/libreadline.so.4.1


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.See terminal session above
2.
3.
	

Additional info:
Comment 1 Jeff Johnson 2002-03-06 17:15:50 EST
What does
	rpm -q --whatprovides libreadline.so.4
say?
Comment 2 Rick Jenkins 2002-03-06 17:23:03 EST
# rpm -q --whatprovides libreadline.so.4
no package provides libreadline.so.4
Comment 3 Jeff Johnson 2002-03-06 17:47:42 EST
Then this isn't an rpm problem, as rpm -q --whatprovides
searches for dependencies.

What does
	rpm -q --provides readline
say? If there is no "libreadline.so.4",
then you need to find a readline )or possibly other)
package that actually Provides: the needed dependency.
Comment 4 Rick Jenkins 2002-03-06 17:59:02 EST
#  rpm -q --provides readline
libhistory.so.4.1
libreadline.so.4.1
readline = 4.1-9

But note in the original rpm -ql that the package also provides 

/usr/lib/libreadline.so.4   

which is merely a link to

/usr/lib/libreadline.so.4.1

Comment 5 Jeff Johnson 2002-03-06 18:03:23 EST
Yup, but those are not dependencies, only files.
The package header must supply a Provides: or
any matching Requires: will fail.

Look for a readline package that has the needed
Provides:

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