I believe the tests for Archive::Zip utilize File::Temp, which discovers the tempdir using File::Spec. File::Spec suggests you can hint an alternate tempdir by setting the TMPDIR environment variable. Proof of concept:
- In your homedir create a directory named ~/tmp
- Execute TMPDIR=~/tmp perl -MFile::Spec::Functions=tmpdir -E 'say tmpdir()'
You will see your alternate tempdir returned. This is what Archive::Zip should actually use.
So you could possibly do this:
TMPDIR=~/tmp cpanm Archive::Zip
And if that doesn't work, built it yourself by downloading the archive from CPAN, extracting it to a directory, then:
perl Makefile.PL
make
TMPDIR=~/tmp make test
make install
...or just cpanm -f, but those tests for linkdir do exist for a reason. ;)
|