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
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.
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
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