cpanpm icon indicating copy to clipboard operation
cpanpm copied to clipboard

fix INSTALLDIRS for newer PERL versions

Open pgnd opened this issue 2 years ago • 2 comments

similar to

https://github.com/jonathanstowe/Term-Cap/issues/15 https://github.com/jonathanstowe/Term-Cap/pull/16

"INSTALLDIRS should not be set to "perl" in perl versions newer than 5.12, because site will take precedence."

i.e.,

@ https://github.com/andk/cpanpm/blob/master/Makefile.PL#L199
-	INSTALLDIRS  => 'perl',  # as it is coming with perl
+	'INSTALLDIRS'       => ($] < 5.012) ? "perl" : "site",

or similar, as appropriate

pgnd avatar Apr 28 '23 12:04 pgnd

filed https://github.com/andk/cpanpm/pull/178 for this.

pgnd avatar May 01 '23 09:05 pgnd

#178 was merged, so this can be closed as completed.

briandfoy avatar Nov 03 '23 16:11 briandfoy