Tue Aug 11 07:24:21 2009: Request 48614 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR
     Subject: PAR must NOT evaluate PERL5OPT
   Broken in: (no value)
    Severity: Important
       Owner: Nobody
  Requestors: yn...@mm.st
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48614 >


I concur, pp'ed executables should ignore PERL5OPT.
The patch below implements that.
Note: I only tested that on Linux. Also, it may now ignore
PERL5OPT where it shouldn't.

Cheers, Roderich

diff -ubr PAR-Packer-0.991/myldr/utils.c
PAR-Packer-0.991-ignore-PERL5OPT/myldr/utils.c
--- PAR-Packer-0.991/myldr/utils.c      2009-03-21 11:45:48.000000000 +0100
+++ PAR-Packer-0.991-ignore-PERL5OPT/myldr/utils.c      2009-08-11
12:31:08.000000000 +0200
@@ -220,6 +220,7 @@
     char par_clean[] = "__ENV_PAR_CLEAN__               \0";
     char *buf;

+    par_unsetenv("PERL5OPT");
     par_unsetenv("PAR_INITIALIZED");
     par_unsetenv("PAR_SPAWNED");
     par_unsetenv("PAR_TEMP");

Reply via email to