Changeset 7937 for inc

Show
Ignore:
Timestamp:
11/12/05 23:35:55 (3 years ago)
Author:
autrijus
Message:

* simonf on perlmonks (and iirc, lwall also) reported that

on FC4, somehow the Cwd/RealBin test fails in Module::Install
code. Try to fix this be appealing to Cwd::abs_path and
add some better diagnostics.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • inc/Module/Install.pm

    r1108 r7937  
    2727 
    2828    if (not -f $self->{file}) { 
    29         die "Pugs build should not get here"; 
     29        require Cwd; 
     30        die << "."; 
     31*** Error: $self->{file} does not exist! 
     32    Current directory is @{[Cwd::abs_path(Cwd::cwd())]} 
     33    Program path is @{[Cwd::abs_path($FindBin::Bin)]} 
     34*** Please report this issue to <perl6-compiler\@perl.org>. 
     35. 
    3036        require "$self->{path}/$self->{dispatch}.pm"; 
    3137        File::Path::mkpath("$self->{prefix}/$self->{author}"); 
     
    6874    # ignore the prefix on extension modules built from top level. 
    6975    delete $args{prefix} 
    70       unless Cwd::cwd() eq $FindBin::Bin; 
     76      unless Cwd::abs_path(Cwd::cwd()) eq Cwd::abs_path($FindBin::Bin); 
    7177 
    7278    return $args{_self} if $args{_self}; 
     
    7682    $args{author}   ||= '.author'; 
    7783    $args{bundle}   ||= 'inc/BUNDLES'; 
    78     $args{base}     ||= $FindBin::Bin; 
     84    $args{base}     ||= Cwd::abs_path($FindBin::Bin); 
    7985 
    8086    $class =~ s/^inc:://;