Backport #8209

mkmf.log contains misplaced messages

Added by Akira Tanaka about 1 year ago. Updated 9 months ago.

[ruby-dev:47215]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga

Description

mkmf.log の内容が奇妙なものになることがあります。

以下は Debian GNU/Linux squeeze でのビルドの結果から
調べたものですが、
ext/-test-/win32/dln の mkmf.log にその拡張ライブラリ以外 (tk とか win32ole
とか) に関するメッセージが出ています。
また、なぜ ext/-test-/win32/dln がビルドされないかという理由が残っていません。
同様に、tk の mkmf には win32ole に関するメッセージが入っていて、
なぜ tk がビルドされないかという理由が入っていません。

boron% cat ext/-test-/win32/dln/mkmf.log
Failed to configure -test-/win32/dln. It will not be installed.
Failed to configure -test-/win32/fd_setsize. It will not be installed.
Failed to configure dl/win32. It will not be installed.
Failed to configure fiddle/win32. It will not be installed.
Failed to configure tk. It will not be installed.
Failed to configure tk/tkutil. It will not be installed.
Failed to configure win32ole. It will not be installed.
boron% cat ext/tk/mkmf.log

Failed to configure tk. It will not be installed.
Failed to configure tk/tkutil. It will not be installed.
Failed to configure win32ole. It will not be installed.

boron% pwd
/home/akr/chkbuild/tmp/build/ruby-trunk/20130403T000400Z/ruby
boron% svn info
Path: .
URL: http://svn.ruby-lang.org/repos/ruby/trunk
Repository Root: http://svn.ruby-lang.org/repos/ruby
Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Revision: 40075
Node Kind: directory
Schedule: normal
Last Changed Author: svn
Last Changed Rev: 40073
Last Changed Date: 2013-04-03 00:09:41 +0900 (Wed, 03 Apr 2013)

なお、気がついたきっかけは socket をいじったときで、
ext/-test-/win32/dln や ext/tk 固有の問題ではないと思います。


Related issues

Duplicated by ruby-trunk - Bug #8715: openssl mkmf.log filled with other data Closed 08/01/2013

Associated revisions

Revision 42359
Added by Tomoyuki Chikanaga 9 months ago

merge revision(s) 40080,40081: [Backport #8209]

* ext/extmk.rb (extmake): Use Logging.open to switch stdout and
  stderr.  Delay Logging::log_close until the failure message is
  written.  Write the failure message only if log file is opened.

* lib/mkmf.rb (Logging.log_opened?): New method.
   [Bug #8209]

* ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure
  clause.

History

#1 Updated by Akira Tanaka about 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40080.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • ext/extmk.rb (extmake): Use Logging.open to switch stdout and
    stderr. Delay Logging::log_close until the failure message is
    written. Write the failure message only if log file is opened.

  • lib/mkmf.rb (Logging.log_opened?): New method.

    [Bug #8209]

#2 Updated by Tomoyuki Chikanaga 9 months ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Status changed from Closed to Assigned
  • Assignee set to Tomoyuki Chikanaga

#3 Updated by Tomoyuki Chikanaga 9 months ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r42359.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 40080,40081: [Backport #8209]

* ext/extmk.rb (extmake): Use Logging.open to switch stdout and
  stderr.  Delay Logging::log_close until the failure message is
  written.  Write the failure message only if log file is opened.

* lib/mkmf.rb (Logging.log_opened?): New method.
   [Bug #8209]

* ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure
  clause.

Also available in: Atom PDF