Skip Menu |
 

This queue is for tickets about the Class-ISA CPAN distribution.

Report information
The Basics
Id: 50050
Status: resolved
Priority: 0/
Queue: Class-ISA

People
Owner: Nobody in particular
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.35
Fixed in: (no value)



Subject: Shadowed By the Core Version
Download (untitled) / with headers
text/plain 802b
Dear Steffen Müller, Hi. This is imacat from Taiwan. I found that your Class-ISA-0.35 was shadowed from the core Class::ISA 0.33 supplied by Perl 5.10.1. As a result, the installation of Class::ISA 0.35 is unusable. imacat@rinse perl/5.10.1 % find -name ISA.pm ./lib/5.10.1/Class/ISA.pm ./lib/site_perl/5.10.1/Class/ISA.pm imacat@rinse perl/5.10.1 % grep '$VERSION = ' ./lib/5.10.1/Class/ISA.pm ./lib/site_perl/5.10.1/Class/ISA.pm ./lib/5.10.1/Class/ISA.pm:$VERSION = '0.33'; ./lib/site_perl/5.10.1/Class/ISA.pm:$VERSION = '0.35'; imacat@rinse perl/5.10.1 % ./bin/perl -mClass::ISA -e'print $Class::ISA::VERSION;'; echo 0.33 imacat@rinse perl/5.10.1 % I tried to make a simple patch in the hope that it helps. Please tell me if you need any more information, or if I could be of any help.
Subject: Class-ISA-0.35-installdirs.diff
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 diff -u -r Class-ISA-0.35.orig/Makefile.PL Class-ISA-0.35/Makefile.PL - --- Class-ISA-0.35.orig/Makefile.PL 2009-09-22 19:41:31.000000000 +0800 +++ Class-ISA-0.35/Makefile.PL 2009-09-28 01:24:22.000000000 +0800 @@ -15,5 +15,6 @@ 'PREREQ_PM' => { 'if' => '0', }, + 'INSTALLDIRS' => ($] >= 5.007001 ? 'perl' : 'site'), 'dist' => { COMPRESS => 'gzip -6f', SUFFIX => 'gz', }, ); -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkq/n+cACgkQi9gubzC5S1wNfwCgqzgf5dd6eU2wb61n/iNLEmBl goEAniv8/E0sU/EzlF4RGESLO/SmzseR =BVxO -----END PGP SIGNATURE-----
Subject: [PATCH] Shadowed By the Core Version
Download (untitled) / with headers
text/plain 923b
Attached patch fixes this problem. On Sun Sep 27 13:34:50 2009, IMACAT wrote: Show quoted text
> Dear Steffen Müller, > > Hi. This is imacat from Taiwan. I found that your Class-ISA-0.35 was > shadowed from the core Class::ISA 0.33 supplied by Perl 5.10.1. As a > result, the installation of Class::ISA 0.35 is unusable. > > imacat@rinse perl/5.10.1 % find -name ISA.pm > ./lib/5.10.1/Class/ISA.pm > ./lib/site_perl/5.10.1/Class/ISA.pm > imacat@rinse perl/5.10.1 % grep '$VERSION = ' ./lib/5.10.1/Class/ISA.pm > ./lib/site_perl/5.10.1/Class/ISA.pm > ./lib/5.10.1/Class/ISA.pm:$VERSION = '0.33'; > ./lib/site_perl/5.10.1/Class/ISA.pm:$VERSION = '0.35'; > imacat@rinse perl/5.10.1 % ./bin/perl -mClass::ISA -e'print > $Class::ISA::VERSION;'; echo > 0.33 > imacat@rinse perl/5.10.1 % > > I tried to make a simple patch in the hope that it helps. Please > tell me if you need any more information, or if I could be of any help.
Download patch.txt
text/plain 334b
--- Class-ISA-0.35/Makefile.PL.orig 2009-09-29 16:34:07.453831800 -0400 +++ Class-ISA-0.35/Makefile.PL 2009-09-29 16:37:42.833415000 -0400 @@ -16,4 +16,5 @@ 'if' => '0', }, 'dist' => { COMPRESS => 'gzip -6f', SUFFIX => 'gz', }, + 'INSTALLDIRS' => ((($] >= 5.007003) && ($] < 5.011)) ? 'perl' : 'site'), );
Subject: [PATCH] Shadowed By the Core Version
Download (untitled) / with headers
text/plain 316b
On Tue Sep 29 16:40:40 2009, JDHEDDEN wrote: Show quoted text
> Attached patch fixes this problem.
The reason for the difference between my patch and Imacat's is that Class::ISA was added to core with 5.7.3 (so prior to that site is okay), and with 5.11, the order of @INC has/will change so that site is proper for 5.11 and onward.
Thanks, applied!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.