Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 61927
Status: open
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: JFITZ [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.002
Fixed in: (no value)



Subject: $ENV{PAR_GLOBAL_TMPDIR} not used
The documentation for specifying the tempdir says that the following environment variables are checked in order: PAR_GLOBAL_TMPDIR TMPDIR TEMPDIR TEMP TMP I wasn't able to get PAR_GLOBAL_TMPDIR to work - the cache was being created in /tmp. Examination of PAR::SetupTemp shows that PAR_GLOBAL_TMPDIR is never used (a recursive grep of the distribution only finds it in ChangeLog and POD). PAR_TMPDIR is used: foreach my $path ( (map $ENV{$_}, qw( PAR_TMPDIR TMPDIR TEMPDIR TEMP TMP )), qw( C:\\TEMP /tmp . ) ) { But the documentation says that users should set PAR_GLOBAL_TMPDIR instead.
On 2010-10-06 06:39:45, JFITZ wrote: Show quoted text
> I wasn't able to get PAR_GLOBAL_TMPDIR to work - the cache was being > created in /tmp. Examination of PAR::SetupTemp shows that > PAR_GLOBAL_TMPDIR is never used (a recursive grep of the distribution > only finds it in ChangeLog and POD). PAR_TMPDIR is used:
The mention of PAR_GLOBAL_TMPDIR in the documentation looks like a holdover from the time before PAR::Packer was split off from PAR. It _is_ actually used in PAR::Packer. There are references to other PAR_GLOBAL_* environment variables that are probably also wrong.