-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

|> Matthew Knopp wrote:
|>> Interestingly I can "fix" the problem by setting PAR_CLEAN=1. A


| Tomas Doran wrote:
|> This also fixes the problem I was having with Class::DBI that I
|> reported to the list a week or two ago.

m.nooning wrote:
| The statement below
|
|     $ENV{PAR_GLOBAL_CLEAN} = 1;
|
<snip>

This doesn't appear in my PAR source code anywhere.. I can find
reference to it on the web, but not in my PAR version:

radon $ find /usr/share/perl5/ -type f | grep PAR | xargs grep GLOBAL

Nothing..

radon $ find /usr/share/perl5/ -type f | grep PAR | xargs grep PAR_CLEAN
/usr/share/perl5/PAR/Heavy.pm:    if ($ENV{PAR_CLEAN} and !$name) {
/usr/share/perl5/PAR.pm:      clean: 0          # default value of PAR_CLEAN
/usr/share/perl5/PAR.pm:User-defined environment variables, like
I<PAR_CLEAN>, always
/usr/share/perl5/PAR.pm:If I<PAR_TEMP> is not set, but I<PAR_CLEAN> is
specified, set
/usr/share/perl5/PAR.pm:        _extract_inc($progname) unless
$ENV{PAR_CLEAN};
/usr/share/perl5/PAR.pm:        if (!$ENV{PAR_CLEAN} and my $mtime =
(stat($progname))[9]) {
/usr/share/perl5/PAR.pm:            $ENV{PAR_CLEAN} = 1;
/usr/share/perl5/PAR.pm:    if ($ENV{PAR_CLEAN} or [EMAIL PROTECTED]) {

This is in PAR version 0.89.

Just for shits & giggles I tried the $ENV{PAR_GLOBAL_CLEAN} thing, but
this didn't do anything - as per $ENV{PAR_CLEAN}

| Unfortunately this is not the $ENV{PAR_CLEAN} you are discussing, so it
| may not stop the infinite loop.  If all else fails you may want to try
| it anyway.  There is also the -C flag, as in

I'm not pp-ing executables, just using par.pl to pack modules. par.pl
*does not* support the -C flag.

I assume putting 'clean: 1' in the META.yaml file of my modules will
cure the problem (if PAR pays attention to this on a per-module basis),
however this means I have to hand roll my modules, not use par.pl -p,
which is annoying.

As a temporary fix, I have just added 'export PAR_CLEAN=1' to the
/etc/profile on all machines concerned. But this is a total band-aid,
not a solution...

Cheers
- - --

Tomas Doran
Research and Development

NTA Monitor Ltd.
14 Ashford House,
Beaufort Court,
Medway City Estate,
Rochester,
Kent ME2 4FA.

Tel: 01634 721855
Fax: 01634 721844

PGP Key Server: pgpkeys.mit.edu (feel free to call and verify fingerprints)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFDYN7tsYOtABuMjoARAnpCAJwMh+rsHIikhdJWUYF2Fa2BqxCfxACg6+0X
tDFCU42WGHd8E4rm3Llcb74=
=aBDW
-----END PGP SIGNATURE-----

Reply via email to