[Module::Build] MBC possible missing dependency
Status: Beta
Brought to you by:
kwilliams
|
From: Jim C. <jc...@di...> - 2003-11-25 19:45:32
|
MBers, it appears that Module::Build::Compat 'make test' skips 'make' in some circumstances. 1. make clean, make is OK - lib -> blib happens [jimc@harpo Array-Compare-1.09]$ make clean /usr/local/bin/perl Build clean Deleting blib [jimc@harpo Array-Compare-1.09]$ make /usr/local/bin/perl Build lib/Array/Compare.pm -> blib/lib/Array/Compare.pm Manifying blib/lib/Array/Compare.pm -> blib/libdoc/Array::Compare.3 2. make clean, make test - OK - lib -> blib happens [jimc@harpo Array-Compare-1.09]$ make clean /usr/local/bin/perl Build clean Deleting blib [jimc@harpo Array-Compare-1.09]$ make test /usr/local/bin/perl Build test lib/Array/Compare.pm -> blib/lib/Array/Compare.pm t/pod.....make: *** [test] Interrupt 3. perl Makefile.PL, make test NOT OK lib -> blib SKIPPED [jimc@harpo Array-Compare-1.09]$ perl Makefile.PL /usr/local/bin/perl Build.PL Checking whether your kit is complete... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'Array-Compare' version '1.09' [jimc@harpo Array-Compare-1.09]$ make test /usr/local/bin/perl Build test t/pod.....make: *** [test] Interrupt 4. make clean, perl Makefile.PL, make test OK - [jimc@harpo Array-Compare-1.09]$ make clean /usr/local/bin/perl Build clean Deleting blib [jimc@harpo Array-Compare-1.09]$ perl Makefile.PL /usr/local/bin/perl Build.PL Checking whether your kit is complete... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'Array-Compare' version '1.09' [jimc@harpo Array-Compare-1.09]$ make test /usr/local/bin/perl Build test lib/Array/Compare.pm -> blib/lib/Array/Compare.pm t/pod..... from 3,4 I infer that perl Makefile.PL doesnt automatically invalidate blib by Makefile being newer than blib. while that might be a feature (of really knowing nothing changed), it could also be a mising dependency. 5. I change Makefile inside by giving it a new prefix. no lib->blib rebuild. This still might be ok, IFF MB is really smart, and knows that a diffferent install location doesnt need a re-make. [jimc@harpo Array-Compare-1.09]$ perl Makefile.PL PREFIX=~ /usr/local/bin/perl Build.PL config=prefix=/home/jimc Checking whether your kit is complete... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'Array-Compare' version '1.09' [jimc@harpo Array-Compare-1.09]$ make /usr/local/bin/perl Build [jimc@harpo Array-Compare-1.09]$ 6. same as above, but with perl Makefile.PL distdir=~ This could be an " Ouch!, Well - dont do that " problem, but I thought it worth flagging. tia, jimc |