Tue Feb 08 18:45:29 2011: Request 65535 was acted upon.
Transaction: Correspondence added by [email protected]
       Queue: PAR
     Subject: Re: [rt.cpan.org #65535] Unable to run perl script packaged with 
pp under cygwin on another Windows XP installation
   Broken in: (no value)
    Severity: (no value)
       Owner: RSCHUPP
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=65535 >


Seems to work, though it surfaced some other cygwin related problem, but it 
doesn't seem to have anything to do with PAR.

Thanks.




________________________________
From: Roderich Schupp via RT <[email protected]>
To: [email protected]
Sent: Tue, February 8, 2011 1:15:26 PM
Subject: [rt.cpan.org #65535] Unable to run perl script packaged with pp under 
cygwin on another Windows XP installation 


<URL: https://rt.cpan.org/Ticket/Display.html?id=65535 >

On 2011-02-08 10:35:14, RSCHUPP wrote:
> Stay tuned.

OK, nailed it. Some weird heuristic in AutoBuilder.pm
(a Perl core module) got the wrong idea when presented "C:\TEMP\...".
So don't do that (at least for Cygwin).

Can you please apply the following patch to PAR::Packer,
then rebuild and re-install PAR::Packer. Finally re-pack your script
and try it out.

Cheers, Roderich


Index: myldr/mktmpdir.c
===================================================================
--- myldr/mktmpdir.c    (revision 1233)
+++ myldr/mktmpdir.c    (working copy)
@@ -58,7 +58,12 @@
     char *c;
     const char *tmpdir = NULL;
     const char *key = NULL , *val = NULL;
-    const char *temp_dirs[4] = { "C:\\TEMP", P_tmpdir, ".", "" };
+    const char *temp_dirs[4] = { 
+        P_tmpdir, 
+#ifdef WIN32
+        "C:\\TEMP", 
+#endif
+        ".", "" };
     const char *temp_keys[6] = { "PAR_TMPDIR", "TMPDIR", "TEMPDIR",
"TEMP", "TMP", "" };
     const char *user_keys[3] = { "USER", "USERNAME", "" };

Reply via email to