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

Re: [ANNOUNCE] ExtUtils::MakeMaker 6.25_06

From:
Michael G Schwern
Date:
December 31, 2004 00:47
Subject:
Re: [ANNOUNCE] ExtUtils::MakeMaker 6.25_06
Message ID:
20041231084706.GB13890@windhund.schwern.org
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]instmodsh.new', '[.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     schwern@pobox.com     http://www.pobox.com/~schwern/
Worship the sig file



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About