Hi,
I just upgraded to the latest Module::Build dev release on CPAN: 0.27_09
I've noticed that for packages where you have both a Makefile.PL and a
Build.PL you get problems if you dont do a 'clean' before switching
from one to the other.
From what i can tell this is actually because Module::Build doesnt use
ExtUtils::Install::pm_to_blib() to do the move like MakeMaker does,
but rather rolls its own and has missed out (or deliberately left out)
the logic of making the files in blib read only, and the related task
of unreadonly'ing the target file before doing a refresh copy.
Although i will admit im curious why EU::I::pm_to_blib() wasnt used.
Is there something wrong with it? Oh, also note that the error message
is somehow missing the $!, it seems to have been lost, not sure why.
Cheers,
yves
D:\dev\cpan\ExtUtils-Install\trunk>Build test
lib\ExtUtils\Install.pm -> blib\lib\ExtUtils\Install.pm
Can't copy('lib\ExtUtils\Install.pm', 'blib\lib\ExtUtils\Install.pm'):
at D:/ASPerl/811/site/lib/Module/Build/Base.pm line 3761.
D:\dev\cpan\ExtUtils-Install\trunk>copy lib\ExtUtils\Install.pm
blib\lib\ExtUtils\Install.pm
Overwrite blib\lib\ExtUtils\Install.pm? (Yes/No/All): y
Access is denied.
0 file(s) copied.
D:\dev\cpan\ExtUtils-Install\trunk>attrib blib\lib\ExtUtils\Install.pm
A R D:\dev\cpan\ExtUtils-Install\trunk\blib\lib\ExtUtils\Install.pm
D:\dev\cpan\ExtUtils-Install\trunk>nmake
Microsoft (R) Program Maintenance Utility Version 7.00.9955
Copyright (C) Microsoft Corporation. All rights reserved.
Skip blib\lib\ExtUtils\Installed.pm (unchanged)
cp lib/ExtUtils/Install.pm blib\lib\ExtUtils\Install.pm
Skip blib\lib\ExtUtils\Packlist.pm (unchanged)
D:\dev\cpan\ExtUtils-Install\trunk>
--
perl -Mre=3Ddebug -e "/just|another|perl|hacker/"
|