Subject: | module build directories as tempdirs: better not |
Date: | Wed, 02 May 2007 13:48:37 +0200 |
To: | bug-CPAN [...] rt.cpan.org |
From: | Matthias Ferdinand <mf [...] mfedv.net> |
Hello,
in CPAN 1.9101 (probably since CPAN 1.90), the module build directories
under $CPAN::Config->{'build_dir'} are created as temp dirs with names like
Module-1.2-yf0Qrz/
Every invocation of CPAN::Module::get now creates a new extracted directory
no matter how often that module has been unpacked before, which is wasting
disk space.
I guess it would be ok if an old existing build dir of the same name would
be purged, avoiding a cluttered directory after unpacking, but the build
directory name should stay the same across CPAN invocations.
I am using a tool to automatically extract Changelogs from distribution
files and send them as a mail report. For every invocation of that tool and
every upgradeable module a new temp dir is created and never deleted.
Together with a bug of not honoring $CPAN::Config->{'build_cache'} (see
http://rt.cpan.org/Ticket/Display.html?id=26884 ) this has led to enormous
build cache sizes (>500MB) and disk full conditions.
Best regards
Matthias Ferdinand