On Sun, Oct 07, 2001 at 05:09:29PM -0400, Kirrily 'Skud' Robert wrote:
> I've built an RPM of Test-SDK using cpan2rpm, and when I try to install
> it on a Red Hat system it says:
> 
> [root@e-smith skud]# rpm -Uvh perl-Test-SDK-0.04-1.i386.rpm 
> Preparing...                ########################################### [100%]
> file /usr/lib/perl5/5.6.0/Test/Harness.pm from install of perl-Test-SDK-0.04-1 
>conflicts with file from package perl-5.6.0-12
> file /usr/share/man/man3/Test::Harness.3pm.gz from install of perl-Test-SDK-0.04-1 
>conflicts with file from package perl-5.6.0-12
> 
> 
> Not sure what to do about this.  Suggestions welcome.

It means both packages lay claim to /usr/lib/perl5/5.6.0/Test/Harness.pm and
/usr/share/man/man3/Test::Harness.3pm.gz.  Can't happen (at very least it's 
not considered good form).

In order to install correctly, the new Test::Harness must overwrite
the existing core module, or at least come before it in @INC.  

Debian solves this problem by placing /usr/local/lib/perl/5.6.1 before
/usr/lib/perl5 in it's @INC.  Debian packages wishing to install
modules place them in /usr/local/lib/perl/5.6.1 to avoid conflict with
the perl base package.  Debian has a policy guide on making packages
for Perl modules around somewhere.

I don't know if Redhat has a similar setup or not.

Your other option is to perhaps ask the Redhat perl package maintainer
to patch in the CPAN Test::Harness and distribute it with perl.  Good
luck.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <[EMAIL PROTECTED]>       Kwalitee Is Job One
If you have to shoot, shoot!  Don't talk.
                -- Tuco, "The Good, The Bad And The Ugly"

Reply via email to