Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 447
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: craigberry [...] mac.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 5.55_01
Fixed in: (no value)



Subject: Tests too deep for 8 level VMS limit.
VMS often limits itself to 8 subdirectories. The attached patch gets around this limitation by setting up a logical root at the top of the test directory. In addition, Big-Fat-Dummy should be reduced a level to Big-Dummy
--- t/basic.t;-0 Thu Apr 4 13:42:08 2002 +++ t/basic.t Thu Apr 4 16:04:26 2002 @@ -21,7 +21,27 @@ my $perl = which_perl(); -$ENV{PERL_CORE} ? chdir '../lib/ExtUtils/t' : chdir 't'; +my $root_dir = $ENV{PERL_CORE} ? '../lib/ExtUtils/t' : 't'; + +if ($^O eq 'VMS') { + # On older systems we might exceed the 8-level directory depth limit + # imposed by RMS. We get around this with a rooted logical, but we + # can't create logical names with attributes in Perl, so we do it + # in a DCL subprocess and put it in the job table so the parent sees it. + + $root_dir = VMS::Filespec::vmspath($root_dir); + + open( BFDTMP, '>bfdtesttmp.com' ) || die "Error creating command file: $!"; + print BFDTMP qq{\$ BFD_TEST_ROOT = F\$PARSE("$root_dir",,,,"NO_CONCEAL")-".][000000"-"]["-"].;"+".]"\n}; + print BFDTMP qq{\$ DEFINE/JOB/NOLOG/TRANSLATION=CONCEALED BFD_TEST_ROOT 'BFD_TEST_ROOT'\n}; + close BFDTMP; + + system( '@bfdtesttmp.com' ); + END { 1 while unlink 'bfdtesttmp.com' } + $root_dir = 'BFD_TEST_ROOT:[000000]'; +} + +chdir $root_dir; perl_lib;
This patch will be accepted after PREFIX is fixed. I can't afford the instability at the moment.
[MSCHWERN - Fri Apr 5 11:00:58 2002]: Show quoted text
> This patch will be accepted after PREFIX is fixed. I can't afford > the instability at the moment.
As promised, 5.91_01 will have a shortened directory structure. Still too long for 8-level VMS, but I don't know what I can do about that.
[MSCHWERN - Fri Apr 19 10:59:44 2002]: Show quoted text
> As promised, 5.91_01 will have a shortened directory structure. > Still too long for 8-level VMS, but I don't know what I can > do about that.
I'll try to salvage some of the code thrown around on vmsperl for detecting a level limited VMS and skip the test if so.
From: craigberry [...] mac.com
[MSCHWERN - Fri Apr 19 11:02:09 2002]: Show quoted text
> [MSCHWERN - Fri Apr 19 10:59:44 2002]:
> > As promised, 5.91_01 will have a shortened directory structure. > > Still too long for 8-level VMS, but I don't know what I can > > do about that.
> > I'll try to salvage some of the code thrown around on vmsperl > for detecting a level limited VMS and skip the test if so.
If we're talking about the same thing, the patch here should allow the test to work on any VMS system: <http://www.xray.mpe.mpg.de/mailing-lists/vmsperl/2002-04/msg00038.html>
Date: Fri, 19 Apr 2002 11:49:48 -0400
From: Michael G Schwern <schwern [...] pobox.com>
To: Guest via RT <bug-ExtUtils-MakeMaker [...] rt.cpan.org>
Subject: Re: [cpan #447] Tests too deep for 8 level VMS limit.
On Fri, Apr 19, 2002 at 11:28:51AM -0400, Guest via RT wrote: Show quoted text
> > [MSCHWERN - Fri Apr 19 10:59:44 2002]:
> > > As promised, 5.91_01 will have a shortened directory structure. > > > Still too long for 8-level VMS, but I don't know what I can > > > do about that.
> > > > I'll try to salvage some of the code thrown around on vmsperl > > for detecting a level limited VMS and skip the test if so.
> > If we're talking about the same thing, the patch here should allow the test to work on any VMS system: > > <http://www.xray.mpe.mpg.de/mailing-lists/vmsperl/2002-04/msg00038.html>
Yeah, we are. How did I miss that? -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ Perl Quality Assurance <perl-qa@perl.org> Kwalitee Is Job One It's Yellowing Laudanum time!
Craig and Tom both confirmed, tests are now safe for VMS.