develooper Front page | perl.perl5.porters | Postings from December 2004

Re: [ANNOUNCE] ExtUtils::MakeMaker 6.25_06

Michael G Schwern
December 31, 2004 00:47
Re: [ANNOUNCE] ExtUtils::MakeMaker 6.25_06
Message ID:
On Thu, Dec 30, 2004 at 08:36:54AM -0600, Craig A. Berry wrote:
> 2.) MM_Unix::fixin doesn't seem to clean up properly on VMS.  Here's 
> an example borrowed from the $(INST_SCRIPT)instmodsh target showing 
> that it successfully creates a new file with the .new extension but 
> does not rename it back to the original name:

Investigated this.  exe files weren't getting installed on VMS as a result.

The problem appears to be a bug in rename() on 5.8.0 (and whatever version
of Perl you're using).  It does the following:

rename('[.blib.script]', '[.blib.script]instmodsh');

rename() returns 1 however the file is not renamed.  It appears rename()
will not work unless there's a dot in the filename.  So I hacked up a
rename() wrapper that appends a dot onto a filename if it doesn't have one.

I've also add some tests to ensure executables get installed.

Michael G Schwern
Worship the sig file Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About