Skip Menu |
 

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 17117
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: SMPETERS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Renaming a directory makes Build script and Makefile unusable
Download (untitled) / with headers
text/plain 532b
After renaming the directory that my module was in, I realized that I had forgotten to run a "make clean" before moving it. When I went to actually do a make clean, I got the following error. steve@kirk:~/HTML-Mason-1.32$ make clean /usr/local/bin/perl5.9.3 Build --makefile_env_macros 1 clean This script must be run from /home/steve/.cpan_blead/build/HTML-Mason-1.32, not /home/steve/HTML-Mason-1.32 Since EU::MM seems to be able to handle this correctly, I would think that Module::Build should be able to handle this as well.
Download (untitled) / with headers
text/plain 412b
I've been thinking about this and I think we may be able to determine that we're in the correct directory without actually checking cwd(). The easiest way may be to check whether ./_build/magic_number exists and contains the correct magic number (just some random number). Otherwise we try a chdir() to the old cwd, otherwise we die. I'll take a stab at this and see whether it causes any problems. -Ken
Download (untitled) / with headers
text/plain 161b
I think I've got this solved in CVS. If you get a chance you could try it out from there, otherwise there should be a new beta version out pretty soon. -Ken


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.