why will the fedora 13 bugzilla rpm install without perl-CGI?

Andrew J. Schorr ajschorr at alumni.princeton.edu
Sun Feb 6 16:08:42 UTC 2011


Hi,

This is probably a stupid question, so I apologize in advance.  I guess
I don't really understand how the rpm dependency processing works.

I am having difficulty understanding how bugzilla's perl(CGI) requirement is
processed:

   bash-4.1$ rpm --requires -qp bugzilla-3.4.10-1.fc13.noarch.rpm | fgrep 'perl(CGI)'
   perl(CGI)  
   perl(CGI) >= 3.33

Looking at the installed rpms on my system, I see that perl(CGI) is provided,
but with no version number:

   bash-4.1$ rpm --provides -qa  | fgrep 'perl(CGI)'
   perl(CGI)  

This comes from the perl rpm:

   bash-4.1$ rpm -q --whatprovides 'perl(CGI)'
   perl-5.10.1-120.fc13.x86_64

Note that the perl-CGI rpm is NOT installed on my system.  Based on the
bugzilla dependency, I expected it to require that I install the perl-CGI rpm:

   bash-4.1$ repoquery --provides perl-CGI
   perl(CGI)
   perl(CGI::Apache) = 1.01
   perl(CGI::Carp) = 3.51
   perl(CGI::Cookie)
   perl(CGI::Fast)
   perl(CGI::Pretty) = 3.46
   perl(CGI::Push)
   perl(CGI::Switch) = 1.01
   perl(CGI::Util) = 3.51
   perl(CGITempFile)
   perl-CGI = 3.51-1.fc13

So I expect that an attempt to install the bugzilla rpm should fail since
perl-CGI is not installed.  However, it does not:

   bash-4.1$ rpm -Uvh --test bugzilla-3.4.10-1.fc13.noarch.rpm
   Preparing...                ########################################### [100%]

So the installation would succeed without perl-CGI.  I expected to see an error
about a failed dependency, something like this:

   bash-4.1$ rpm -Uvh --test ImageMagick-perl-6.5.8.10-7.fc13.x86_64.rpm 
   error: Failed dependencies:
	   ImageMagick = 6.5.8.10-7.fc13 is needed by ImageMagick-perl-6.5.8.10-7.fc13.x86_64

But this does not happen.  Also, "yumdownloader --resolve bugzilla" does not
download the perl-CGI rpm.  So despite the fact that bugzilla says it requires
perl-CGI version >= 3.33, neither rpm nor yum seems to honor the version number
requirement.  They are satisfied with the presence of perl-CGI without any
version number.

Can somebody please explain why bugzilla installs without perl-CGI?

Thanks in advance,
Andy


More information about the Rpm-list mailing list