Re: [Module::Build] ./Build on Win98
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <ml...@th...> - 2006-02-25 02:27:42
|
Dr Bean wrote: > On Wed, 22 Feb 2006, Randy W. Sims wrote: > >>> I also just realized that my initial attempts depend on $0 >>> which wont work for our API clients; I'll get this cleaned up. > >> This is hopefully fixed now in CVS, and a new snapshot is up also[1] if >> I can beg one more test. > > I found a different Win98 machine with ActiveState > 5.8.7.815. After running perl Build.PL: > > D:\greg\Module-Build>dir Build > > Volume in drive D has no label > Volume Serial Number is 4658-17D7 > Directory of D:\greg\Module-Build > > BUILD PL 2,591 02-02-06 8:19 Build.PL > BUILD 1,472 02-24-06 22:00 Build > BUILD BAT 1,943 02-24-06 22:00 Build.bat > 3 file(s) 6,006 bytes > 0 dir(s) 13,728.44 MB free > > > D:\greg\Module-Build> Build realclean > Deleting _build > Deleting Build > Deleting Build.bat > Batch file missing It's taking the wrong path here. M::B is deleting 'Build.bat' where it should be letting it delete itself. We know this method of self-deletion works because it was proved in a previous attempt. The only issue here is that the created 'Build.bat' is not correctly passing in the --build_bat argument. To prove this you should be able to: perl Build.PL Build --build_bat realclean and get a successful run without error about missing batch file. If you run: perl Build.PL and then look at the top of the resulting 'Build.bat', you should see the following lines: if "%OS%" == "Windows_NT" goto WinNT perl -x -S "%0" "--build_bat" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl :WinNT perl -x -S "%0" "--build_bat" %* I'd like to know if the resulting 'Build.bat' differs on Win9x. I suspect not. Otherwise the invokation of perl from the batch file would cause errors or different behavior. At one time those quotes around the --build_bat arg seemed necessary, but it may be the cause of the problem; Although, I don't see why they should matter one way or the other. I've removed those quotes, and instrumented the code to see if I can find out where the argument is going. Care to give it another spin? <http://thepierianspring.org/perl/Module-Build.tar.gz> perl Build.PL Build realclean if exist Build.bat echo profanity How many cases do I owe you now? Randy. |