Thu Oct 18 01:15:46 2012: Request 80257 was acted upon.
Transaction: Ticket created by BULKDD
       Queue: Win32-API
     Subject: presence of cygpath needs to be check on module load
   Broken in: 0.72
    Severity: Unimportant
       Owner: Nobody
  Requestors: bul...@cpan.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=80257 >


On Cygwin builds, a backquote call is made to cygpath for DLL path
conversion. If cygwin perl is started without cygwin being in the PATH,
cygpath will not be found and the DLL path turns to empty string leading
and fails, possibly with a bad $^E (I got "network connection lost" but
that might be part of my Perl debugger). Add a test call to cygpath
during the modules require phase. Die during module load if cygpath
backquote test call (I'm thinking a `cygpath -V` and an index string
search) didn't work.  Also check to make sure "        if ($^O eq
'cygwin' and $dll ne File::Basename::basename($dll)) {" is const folded
away on VC Perl. This is a reminder for myself.

Reply via email to