[CentOS] Openwebmail dependency problem

Steve Huff shuff at vecna.org
Thu Jun 10 13:38:06 UTC 2010


On Jun 10, 2010, at 9:23 AM, Jussi Hirvi wrote:

> By googling I found a lot of descriptions of the problem, but no solution.
> 
> Transaction Check Error:
>   file /usr/lib/perl5/vendor_perl/5.8.8/Compress/Zlib.pm from install 
> of perl-Compress-Zlib-2.015-1.el5.rf.noarch conflicts with file from 
> package perl-IO-Compress-2.024-1.el5.rf.noarch
>   file /usr/share/man/man3/Compress::Zlib.3pm.gz from install of 
> perl-Compress-Zlib-2.015-1.el5.rf.noarch conflicts with file from 
> package perl-IO-Compress-2.024-1.el5.rf.noarch

yum tells you what the problem is, and the solution.

the problem is that both the packages perl-Compress-Zlib-2.015-1 and perl-IO-Compress-2.024-1 contain the same file.  the solution is to install only one of those two packages.

there is a deeper problem, though: whoever wrote the openwebmail RPM specified some of the Perl dependencies in a problematic fashion.  it looks like you got the openwebmail package from the project page; look at how these dependencies are specified:

$ rpm -qp --requires openwebmail-2.53-3.i386.rpm
perl
perl-suidperl
perl-Compress-Zlib
perl-Text-Iconv
perl(MIME::Base64) >= 3.00
...

notice how the dependency on MIME::Base64 is specified correctly (e.g. perl(MIME::Base64)), but the other Perl module dependencies are specified by package name (e.g. perl-Compress-Zlib instead of perl(Compress::Zlib)).  this is the convention used by RPMs from upstream with Perl module dependencies, and it's there for good reason; sometimes Perl modules move around from version to version.  if you specify Perl dependencies using the perl() convention, then yum can do the right thing in its dependency resolution and make sure you get the modules you need; if you specify Perl dependencies using hard-coded package names, yum's hands are tied, and you get conflicts.

so the real fix, in this case, is to contact the openwebmail developers and ask them to change their specfile and rebuild.

-steve

--
If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
http://five.sentenc.es

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20100610/c489d0f8/attachment.sig>


More information about the CentOS mailing list