Ticket #930: nofreakychars.diff

File nofreakychars.diff, 0.8 KB (added by dukeleto, 5 years ago)

chromatic's diff for fixing the "spaces in the build dir" issue

  • config/init/defaults.pm

    diff --git config/init/defaults.pm config/init/defaults.pm
    index be75c59..6f8e6f8 100644
     
    7474 
    7575    my $ccdlflags = $Config{ccdlflags}; 
    7676    $ccdlflags =~ s/\s*-Wl,-rpath,\S*//g if $conf->options->get('disable-rpath'); 
     77    (my $build_dir = abs_path($FindBin::Bin)) =~ s/([^-A-Za-z0-9_\/])/\\$1/g; 
     78 
    7779 
    7880    # We need a Glossary somewhere! 
    7981    $conf->data->set( 
    8082        debugging => $conf->options->get('debugging') ? 1 : 0, 
    8183        optimize  => '', 
    8284        verbose   => $conf->options->get('verbose'), 
    83         build_dir => abs_path($FindBin::Bin), 
     85        build_dir => $build_dir, 
    8486        configured_from_file => 
    8587            $conf->options->get('configured_from_file') || '', 
    8688        configuration_steps => ( join q{ } => $conf->get_list_of_steps() ),