[ruby-core:32901] [Ruby 1.9-Bug#3983][Open] nmake install fail on Windows with r29591

From: Heesob Park <redmine@...>
Date: 2010-10-26 01:20:46 UTC
List: ruby-core #32901
Bug #3983: nmake install fail on Windows with r29591
http://redmine.ruby-lang.org/issues/show/3983

Author: Heesob Park
Status: Open, Priority: Normal
Category: build, Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2010-10-26 trunk 29591) [i386-mswin32_90]

Due to the Revision r29591, nmake install fails on Windows with MSVC.

C:\work\snapshot>nmake install

...

installing binary commands:   /usr/bin
installing base libraries:    /usr/lib
installing arch files:        /usr/lib/ruby/1.9.1/i386-mswin32_90
./tool/rbinstall.rb:343:in `exist?': can't convert nil into String (TypeError)
        from ./tool/rbinstall.rb:343:in `block in <main>'
        from ./tool/rbinstall.rb:555:in `call'
        from ./tool/rbinstall.rb:555:in `block (2 levels) in <main>'
        from ./tool/rbinstall.rb:552:in `each'
        from ./tool/rbinstall.rb:552:in `block in <main>'
        from ./tool/rbinstall.rb:548:in `each'
        from ./tool/rbinstall.rb:548:in `<main>'
NMAKE : fatal error U1077: '.\miniruby.exe' : return code '0x1'
Stop.

Here is a patch

--- rbinstall.rb        2010-10-26 10:13:58.000000000 +0900
+++ rbinstall.rb.new    2010-10-26 10:15:34.000000000 +0900
@@ -340,7 +340,7 @@

 install?(:local, :arch, :data) do
   pc = CONFIG["ruby_pc"]
-  if File.exist?(pc)
+  if pc && File.exist?(pc)
     prepare "pkgconfig data", pkgconfigdir = File.join(libdir, "pkgconfig")
     install pc, pkgconfigdir, :mode => $data_mode
   end


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next