[CentOS] Yum Amavisd Update fails Digest::MD5 error

Thu May 5 00:00:47 UTC 2005
Ralph Angenendt <ra+centos at br-online.de>

Ajay Sharma wrote:
> Leonard Isham wrote:
> > On 5/4/05, Ralph Angenendt <ra+centos at br-online.de> wrote:
> >>Leonard Isham wrote:
> >>>(http://search.cpan.org/~gaas/Digest-MD5-2.33/MD5.pm)
> >>
> >>You know that the next perl upgrade in CentOS (or RHEL fwiw) will break
> >>amavisd again, as it will overwrite your self compiled module?
> > 
> > sigh... Yes but what are my options?  I'm not comfortable maintaining
> > my own rpms, and unfortunately  whoever made the rpm missed that
> > dependency (errors happen).
> > 
> > I don't see an elegant way to resolve this aside from taking on the
> > task of maintaining it myself (then I fix my own problems which may be
> > more than I'm going through now).
> RPMPAN is a repository of RPM's of Perl modules. Every night an infinite
> number of monkeys download the latest modules from CPAN and try to build
> RPM packages out of them. Since they're only monkeys, they miss a few,
> but you'll find most of what you need here.

Yeah, that really sounds like a great idea :)

| [ralph at logout downloads]$ rpm -qpl perl-Digest-MD5-2.33-8.i386.rpm
| /usr/lib/perl5/site_perl/5.6.1/i386-linux/Digest/MD5.pm
| /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Digest/MD5/MD5.bs
| /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Digest/MD5/MD5.so
| /usr/share/doc/perl-Digest-MD5-2.33
| /usr/share/doc/perl-Digest-MD5-2.33/Changes
| /usr/share/doc/perl-Digest-MD5-2.33/README
| /usr/share/man/man3/Digest::MD5.3pm.gz

First problem: 

Wrong version of perl. Won't work. 

Second problem: 

Digest::MD5.3pm.gz clashes with the file installed by perl included in
CentOS3.

Third problem: 

 (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi
 /usr/lib/perl5/5.8.0
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .)

.../site-perl/ is far down in that path, so every module living in there
won't get included, if there's a module of the same name somewhere
earlier in that path. And that is the problem here.

BTW: @INC in RedHat just sucks as there's no possibility to override
core modules in perl. The problem with that is upstreams @INC which is
exactly the same. 

Ralph
-- 
Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...HA-Multimedia | ....to right-justify any idea, even one
Rundfunkplatz 1........80300 München | .which cannot be justified on any other
Tl:089.5900.16023..Fx:089.5900.16240 | ..........grounds." -- J. Finnegan, USC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20050505/6fe59cc9/attachment-0005.sig>