On Sat, Jan 10, 2004 at 01:52:03AM +0800, Autrijus Tang wrote:
> ?b å, 2004-01-08 12:40, Barrie Slaymaker ?g?D?G
> > Below is a quick patch to make --add actuall add the requested file(s)
> > instead of merely scanning it for dependancies.
> 
> Wait, --add really works for me.  What file(s) failed to --add for you?
> Are they .pm files?


Hopefully it's PEBKAC.  Here's what I do and how I'm checking (*lots* of
-adds elided).  I'm expecting to see a lib/VCP/DB_File.pm in the
.zip file and neither I nor vcp can find it:

    C:\Perforce\VCP>bin\build_vcp_executable.pl
    pp -o vcp.exe -lib=lib --add=VCP::ConfigFileUtils ...  --add=VCP::DB_File ... 
--add=VCP::Utils::vss bin/vcp

    C:\Perforce\VCP>wzunzip -v vcp.exe | grep DB_File
       4802  DeflatN   1482  70%  01/09/2004  14:14  b942fe2c 
lib/VCP/DB_File/big_records.pm
       4341  DeflatN   1379  69%  01/09/2004  14:14  161f2ac8 lib/VCP/DB_File/sdbm.pm

    C:\Perforce\VCP>.\vcp.exe help
    Can't locate VCP/DB_File.pm in @INC (@INC contains: CODE(0xa3dbcc)
    CODE(0xd27230) .) at VCP/DB_File/sdbm.pm line 33.
    BEGIN failed--compilation aborted at VCP/DB_File/sdbm.pm line 33.
    Compilation failed in require at VCP/DB_File/big_records.pm line 62.
    BEGIN failed--compilation aborted at VCP/DB_File/big_records.pm line 62.
    Compilation failed in require at VCP/Revs.pm line 27.
    BEGIN failed--compilation aborted at VCP/Revs.pm line 27.
    Compilation failed in require at VCP/Plugin.pm line 34.
    BEGIN failed--compilation aborted at VCP/Plugin.pm line 34.
    Compilation failed in require at VCP.pm line 31.
    Compilation failed in require at script/vcp line 274.
    BEGIN failed--compilation aborted at script/vcp line 274.

    C:\Perforce\VCP>

You can see the source for DB_File here in case it's a scanner bug:

   http://makeashorterlink.com/?Y41032407

> I think one possible way is to force-assign the temp/cache file name
> into the $INC{} hash, instead of their current value of CODE(abcdef). 
> How to do that is left as an exercise for the list, or at least until I
> get more tuits. :-)

This is fundable for reasonable amounts of funding.  I'll dig in and do
it or you can.  My alternative is to simply bundle the files I need
from the disk in to and to have Perl code in vcp.exe extract them as
need be.

> /Autrijus/

- Barrie

Reply via email to