Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 63003
Status: resolved
Priority: 0/
Queue: Module-Build

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

Bug Information
Severity: Critical
Broken in: 0.36_17
Fixed in: (no value)



Subject: install.t test may install to destination directory
On my FreeBSD 8.0 system with perl 5.12.2 the install.t test seems to install stuff into the "real" destination directory. Using single- stepping in the debugger I identified the bad code line here: main::(t/install.t:82): eval {$mb->dispatch('install', installdirs => 'core', destdir => $destdir)}; After that, there's an additional blib directory next to bin, lib, and man: $ ls -al /home/cpansand/var/ctps/mb03617/install/perl-5.12.2-2 total 14 drwxr-xr-x 6 cpansand cpansand 512 15 Nov 21:04 ./ drwxr-xr-x 4 cpansand cpansand 512 13 Nov 21:56 ../ drwxr-xr-x 2 cpansand cpansand 1024 13 Nov 21:59 bin/ drwxrwxr-x 5 cpansand cpansand 512 15 Nov 21:04 blib/ drwxr-xr-x 4 cpansand cpansand 512 13 Nov 21:56 lib/ drwxr-xr-x 4 cpansand cpansand 512 13 Nov 21:57 man/ The contents of this blib directory look as if the whole lib directory is duplicated. My test report probably did not arrive yet in the metabase database, but here's another test report showing the same failure: http://www.cpantesters.org/cpan/report/d4c30280-e34d-11df-99fd- 2f30adc8c11d Regards, Slaven
Subject: Re: [rt.cpan.org #63003] install.t test may install to destination directory
Date: Mon, 15 Nov 2010 20:26:27 -0500
To: bug-Module-Build [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Mon, Nov 15, 2010 at 3:10 PM, Slaven_Rezic via RT <bug-Module-Build@rt.cpan.org> wrote: Show quoted text
> On my FreeBSD 8.0 system with perl 5.12.2 the install.t test seems to > install stuff into the "real" destination directory. Using single- > stepping in the debugger I identified the bad code line here:
That's strange. I'll check it out. Thanks for the report. -- David
On 2010-11-15 20:26:56, DAGOLDEN wrote: Show quoted text
> On Mon, Nov 15, 2010 at 3:10 PM, Slaven_Rezic via RT > <bug-Module-Build@rt.cpan.org> wrote:
> > On my FreeBSD 8.0 system with perl 5.12.2 the install.t test seems
to Show quoted text
> > install stuff into the "real" destination directory. Using single- > > stepping in the debugger I identified the bad code line here:
> > That's strange. I'll check it out. > > Thanks for the report.
It seems that the current working directory is wrong here. Before line 62 in install.t, it points to a temporary directory. After calling eval {$mb->dispatch('install', destdir => $destdir)}; cwd is /usr/home/cpansand/var/ctps/mb03617/install/perl-5.12.2-2, which is the root directory of this perl installation. Regards, Slaven
I can't see anything in M::B that would do that, but the install action calls out to ExtUtils::Install, which does a lot of directory changes and could have a problem. I've wrapped the install action so it returns to the original directory. I hope that fixes things. I'll mark this 'stalled' until there is more information.
Fixed in 0.3624