Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 88909
Status: resolved
Priority: 0/
Queue: version

People
Owner: Nobody in particular
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

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



Subject: Makefile.PL needs UNINST=1 on old perls
Because ExtUtils::MakeMaker bundles version and might install it into the core library path, any subsequent installs before v5.10 will be shadowed by the stale version that EU::MM installed. (in v5.10, you have version installing into the core path as well) Other distributions bundled with EU::MM are changing Makefile.PL like this commit shows: https://github.com/dagolden/JSON-PP/commit/432d597b66a582c99ee27ead47c69e522a4638f5 Please either add code like this or else change INSTALLDIRS to always be 'perl' prior to v5.12. Thanks, David
On Mon Sep 23 10:51:54 2013, DAGOLDEN wrote: Show quoted text
> https://github.com/dagolden/JSON- > PP/commit/432d597b66a582c99ee27ead47c69e522a4638f5
After a complaint, I've added an environment variable "PERL_NO_HIGHLANDER", to disable the UNINST behavior: if ( $] < 5.012 && ! $ENV{PERL_NO_HIGHLANDER} && ! ( $ENV{PERL_MM_OPT} && $ENV{PERL_MM_OPT} =~ /(?:INSTALL_BASE|PREFIX)/ ) && ! grep { /INSTALL_BASE/ || /PREFIX/ } @ARGV ) { $WriteMakefileArgs{UNINST} = 1; } I recommend implementing it as well for consistency.
Thanks, applied (more or less)! Will be in the next CPAN release.