Subject: | Bootstrapping "./Build install" ignores destdir and installdirs=vendor |
Hi,
after I unpacked Module-Build-Tiny-0.023 I get this:
[SHELL]
shlomif@telaviv1:~/Download/unpack/perl/cpan$ cd Module-Build-Tiny-0.023/
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ls
blib Build.PL INSTALL MANIFEST MYMETA.json t
Build Changes lib META.json MYMETA.yml Todo
_build_params dist.ini LICENSE META.yml README
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ perl B
Build Build.PL
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ perl Build.PL
Creating new 'Build' script for 'Module-Build-Tiny' version '0.023'
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build build
Skip blib/lib/Module/Build/Tiny.pm (unchanged)
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build test
t/00-compile.t .......... ok
t/release-pod-syntax.t .. skipped: these tests are for release candidate testing
t/simple.t .............. ok
All tests successful.
Files=3, Tests=24, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.39 cusr 0.05 csys = 0.48 CPU)
Result: PASS
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build install destdir=`pwd`/foobar
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/lib/perl5/site_perl/5.18.0/Module/Build'
mkdir /usr/lib/perl5/site_perl/5.18.0/Module: Permission denied at /usr/lib/perl5/5.18.0/ExtUtils/Install.pm line 469.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at lib/Module/Build/Tiny.pm line 104.
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ mkdir foobar
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$ ./Build install destdir=`pwd`/foobar
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/lib/perl5/site_perl/5.18.0/Module/Build'
mkdir /usr/lib/perl5/site_perl/5.18.0/Module: Permission denied at /usr/lib/perl5/5.18.0/ExtUtils/Install.pm line 469.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at lib/Module/Build/Tiny.pm line 104.
shlomif@telaviv1:~/Download/unpack/perl/cpan/Module-Build-Tiny-0.023$
[END SHELL]
As you can see, I cannot install under the destdir in "./Build install" and, furthermore, the installdirs=vendor argument is ignored.
Please look into it.
Regards,
-- Shlomi Fish