Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 26884
Status: open
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: mf [...] mfedv.net
Cc:
AdminCc:

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



Subject: $CPAN::Config{'build_cache'} ignored in 1.9101
Date: Wed, 02 May 2007 13:32:34 +0200
To: bug-CPAN [...] rt.cpan.org
From: Matthias Ferdinand <mf [...] mfedv.net>
Hello, in CPAN 1.9101 (probably since CPAN 1.90), the maximum size for the build directory $CPAN::Config{'build_cache'} ist not honored anymore. After downgrade to CPAN 1.8802 the next invocation starts removing old directories again. On some installations with restricted disk space, this has led to disk full conditions. Verified on SuSE Linux 8.1, 8.2, 9.2, 10.0 and Debian Sarge. Best regards Matthias Ferdinand
Subject: Re: [rt.cpan.org #26884] $CPAN::Config{'build_cache'} ignored in 1.9101
Date: Wed, 02 May 2007 20:47:56 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Wed, 02 May 2007 07:33:19 -0400, "mf@mfedv.net via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> Wed May 02 07:33:17 2007: Request 26884 was acted upon. > Transaction: Ticket created by mf@mfedv.net > Queue: CPAN > Subject: $CPAN::Config{'build_cache'} ignored in 1.9101 > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: mf@mfedv.net > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=26884 >
Show quoted text
> Hello,
Show quoted text
> in CPAN 1.9101 (probably since CPAN 1.90), the maximum size for the build > directory $CPAN::Config{'build_cache'} ist not honored anymore. After > downgrade to CPAN 1.8802 the next invocation starts removing old > directories again.
I'm surprised, this does not match my observations. There must be something going on that I do not know of. How large is your build_cache? What does CPAN.pm say, when you start the shell and then do your first install or test or make command? Show quoted text
> On some installations with restricted disk space, this has led to disk full > conditions. Verified on SuSE Linux 8.1, 8.2, 9.2, 10.0 and Debian Sarge.
Please supply details how you do the verification. I write several Gigabytes every day to my build_dir. What is your value for scan_cache? Try 'o conf init scan_cache'. -- andreas
Subject: Re: [rt.cpan.org #26884] $CPAN::Config{'build_cache'} ignored in 1.9101
Date: Thu, 03 May 2007 00:35:36 +0200
To: bug-CPAN [...] rt.cpan.org
From: Matthias Ferdinand <mf [...] mfedv.net>
--On Mittwoch, Mai 02, 2007 14:53:24 -0400 "(Andreas J. Koenig) via RT" <bug-CPAN@rt.cpan.org> wrote: Show quoted text
> I'm surprised, this does not match my observations. There must be > something going on that I do not know of.
Hi again, just for documentation purposes I quote some from my answer to #26886. As I carelessly did not state in the initial report, I did not use the CPAN shell, but a script to report changelogs. A sketch of what it does (including the workaround for #26886): Show quoted text
> $m=CPAN::Shell->expand("Module", "IO::Socket::SSL"); > $f=$m->cpan_file; > $d=CPAN::Shell->expand("Distribution", $f); > if (!defined CPAN::Distribution::dir($d)) > { CPAN::Module::get($m); } > $dir=CPAN::Distribution::dir($d); > # look in $dir for Changes, Changelog, ChangeLog etc. ...
Show quoted text
> How large is your build_cache? What does CPAN.pm say, when you start > the shell and then do your first install or test or make command?
build_cache = 'build_cache' => q[100], 'build_dir' => q[/root/.cpan/build], 'build_dir_reuse' => q[1], 'build_requires_install_policy' => q[ask/yes], ... 'scan_cache' => q[atstart], (atstart was already set before I did "o conf init"). Show quoted text
> I agree that there should be a way to invoke the manager cleanup > routine. Currently it is only invoked on new invocations of the shell. > And not by batch jobs. Ahhh, I see, this is probably much closer to > what you need, right?
Not sure about that. Up to version 1.8802 and using $CPAN::Config->{'scan_cache'}='atstart', the build cache cleanup was triggered automatically just by using my changelog reader. I think it would not hurt if this behaviour was re-instated. Otherwise I would need to write code depending on CPAN version in the script. Best regards Matthias