Subject: | Many packages' Build.PL fails on perl5.10.0 with newer external version.pm |
Date: | Sun, 18 Jul 2010 02:46:56 -0400 |
To: | bug-Module-Build [...] rt.cpan.org |
From: | "Daniel Macks" <dmacks [...] netspace.org> |
Not sure if this is a regression in version.pm or a new strictness there that Module::Build needs to compensate, but anyway...
OS X 10.6, apple-supplied perl5.10.0, fink-supplied Module::Build (module-build-pm5100-1:0.36.07-2) which drags along version (version-pm5100-1:0.82-1). Trying to build Params::Validate (0.95) according to the fink recipe fails:
perl5.10.0 Build.PL --install_path arch=/sw/build.build/root-params-validate-pm5100-0.95-1/sw/lib/perl5/5.10.0/darwin-thread-multi-2level --install_path bin=/sw/build.build/root-params-validate-pm5100-0.95-1/sw/bin --install_path bindoc=/sw/build.build/root-params-validate-pm5100-0.95-1/sw/lib/perl5/5.10.0/man/man1 --install_path lib=/sw/build.build/root-params-validate-pm5100-0.95-1/sw/lib/perl5/5.10.0 --install_path libdoc=/sw/build.build/root-params-validate-pm5100-0.95-1/sw/lib/perl5/5.10.0/man/man3 --install_path script=/sw/build.build/root-params-validate-pm5100-0.95-1/sw/bin
Modification of non-creatable hash value attempted, subscript "version.pm" at /sw/lib/perl5/5.10.0/Module/Build/Version.pm line 34, <DATA> line 642.
Compilation failed in require at /sw/lib/perl5/5.10.0/Module/Build/ModuleInfo.pm line 16, <DATA> line 642.
BEGIN failed--compilation aborted at /sw/lib/perl5/5.10.0/Module/Build/ModuleInfo.pm line 16, <DATA> line 642.
Compilation failed in require at /sw/lib/perl5/5.10.0/Module/Build/Base.pm line 23, <DATA> line 642.
BEGIN failed--compilation aborted at /sw/lib/perl5/5.10.0/Module/Build/Base.pm line 23, <DATA> line 642.
Compilation failed in require at /sw/lib/perl5/5.10.0/Module/Build.pm line 14, <DATA> line 642.
BEGIN failed--compilation aborted at /sw/lib/perl5/5.10.0/Module/Build.pm line 14, <DATA> line 642.
Compilation failed in require at Build.PL line 6, <DATA> line 642.
BEGIN failed--compilation aborted at Build.PL line 6, <DATA> line 642.
I can reproduce this result from the command-line using *any* invocation of Build.PL ('perl5.10.0 Build.PL', 'perl5.10.0 Build.PL --help', etc.). If I uninstall the fink "version" package (forced override of the module-build dependency), Build.PL works fine. The version module is dual-lifed, so the trigger appears to be upgrading/overlaying apple's version-0.74 with fink's version-0.82. My fink is configured for i386 (32bit single-arch).
Googling for that error message, I see it reported back in May on the FreeBSD mailing list, so it doesn't seem like specifically a mac or fink issue. http://www.mail-archive.com/freebsd-ports@freebsd.org/msg27477.html
dan
--
Daniel Macks
dmacks@netspace.org