Subject: | installation fails |
The installation attempts to write to the the read-only lib/Perl/Critic/
logicLAB.pm file through Module::Build::Bundle. This is wrong place
(everything that is not in blib is for a good reason not easily
mutable), and the wrong time (should run in the build step, not the the
install step). To fix this problem, override the appropriate M::B hook
(probably process_lib_files) so that it rewrites the file in the build
step during transit to the blib directory.
$ cpanm --look Perl::Critic::logicLAB
--> Working on Perl::Critic::logicLAB
Fetching http://www.cpan.org/authors/id/J/JO/JONASBN/Perl-Critic-
logicLAB-0.05.tar.gz ... OK
Entering /home/daxim/.cpanm/work/1362413557.7155/Perl-Critic-
logicLAB-0.05 with /bin/bash
~/.cpanm/work/1362413557.7155/Perl-Critic-logicLAB-0.05$ perl
Build.PL
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Perl-Critic-logicLAB' version
'0.05'
~/.cpanm/work/1362413557.7155/Perl-Critic-logicLAB-0.05$ ./Build
test
Use of uninitialized value $Test::Harness::Switches in length at /
home/daxim/local/share/perlbrew/perls/perl-5.10.1/lib/5.10.1/Module/
Build/Base.pm line 2767.
t/00-load.t .. ok
t/pod.t ...... skipped: set TEST_POD to enable this test
All tests successful.
Files=2, Tests=1, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.08
cusr 0.02 csys = 0.14 CPU)
Result: PASS
~/.cpanm/work/1362413557.7155/Perl-Critic-logicLAB-0.05$ ./Build
install
Unable to open file: /home/daxim/.cpanm/work/1362413557.7155/Perl-
Critic-logicLAB-0.05/lib/Perl/Critic/logicLAB.pm - Keine Berechtigung
at ./Build line 58.
~/.cpanm/work/1362413557.7155/Perl-Critic-logicLAB-0.05$ chmod u+w /
home/daxim/.cpanm/work/1362413557.7155/Perl-Critic-logicLAB-0.05/lib/
Perl/Critic/logicLAB.pm
~/.cpanm/work/1362413557.7155/Perl-Critic-logicLAB-0.05$ ./Build
install
Building Perl-Critic-logicLAB
Installing /home/daxim/local/share/perlbrew/perls/perl-5.10.1/lib/
site_perl/5.10.1/Perl/Critic/logicLAB.pm
Installing /home/daxim/local/share/perlbrew/perls/perl-5.10.1/man/
man3/Perl::Critic::logicLAB.3