Subject: | [PATCH] Makefile.PL: INSTALLDIRS should be set by user/env |
Date: | Wed, 5 Feb 2014 01:48:10 +0100 |
To: | bug-HTML-TagCloud [...] rt.cpan.org |
From: | Kim Christensen <kchr [...] fripost.org> |
Distribution: HTML-TagCloud-0.38
Perl: 5, version 14, subversion 2 (v5.14.2)
System: Linux .2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
Debian: testing (jessie)
I have CPAN configured to build and install in a local environment;
$CPAN::Config = {
'makepl_arg' => q[INSTALL_BASE=~/perl]
}
When building HTML-TagCloud-0.38 through CPAN, it fails with the
following error message:
Running Build install
Building HTML-TagCloud
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/man/man3'
mkdir /usr/local/man/man3: Permission denied at
/usr/share/perl/5.14/ExtUtils/Install.pm line 494
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at /usr/share/perl/5.14/Module/Build/Base.pm line 3569
ROBERTSD/HTML-TagCloud-0.38.tar.gz
./Build install -- NOT OK
It seems that although my CPAN environment is set to install in
~/perl, it tries to install in /usr/local.
Building and installing other packages using the same environment
succeeds without any errors.
Checking the package makefile I see that it does set INSTALLDIRS.
Makefile.PL:
WriteMakefile
(
...
'INSTALLDIRS' => 'site',
I suggest to remove this key from the makefile, leaving the
environmental decisions up to the user and system.
Simple patch attached.
Regards,
-- kchr
|_|O|_|
|_|_|O| Kim Christensen
|O|O|O| http://technopragmatics.org
---------------------------------------------------------------------
() ascii ribbon campain - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.