From: Craig A. Berry Date: Thu, 11 Jul 2002 12:44:41 +0000 (-0500) Subject: MM_Unix.pm : work around File::Find problem on VMS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d71e5ff2e4c4bd22812aaff6cc21c601469f9238;p=p5sagit%2Fp5-mst-13.2.git MM_Unix.pm : work around File::Find problem on VMS From: "Craig A. Berry" Message-Id: <5.1.1.5.0.20020708172342.03422ac8@exchi01> p4raw-id: //depot/perl@17488 --- diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm index 0cd45eb..bb76013 100644 --- a/lib/ExtUtils/MM_Unix.pm +++ b/lib/ExtUtils/MM_Unix.pm @@ -1349,8 +1349,15 @@ sub init_dirscan { # --- File and Directory Lists (.xs .pm .pod etc) # (which includes PARENT_NAME). This is a subtle distinction but one # that's important for nested modules. - $self->{PMLIBDIRS} = ['lib', $self->{BASEEXT}] + if ($Is_VMS) { + # avoid logical name collisions by adding directory syntax + $self->{PMLIBDIRS} = ['./lib', './' . $self->{BASEEXT}] unless $self->{PMLIBDIRS}; + } + else { + $self->{PMLIBDIRS} = ['lib', $self->{BASEEXT}] + unless $self->{PMLIBDIRS}; + } #only existing directories that aren't in $dir are allowed