ruby-changes:38633
From: nobu <ko1@a...>
Date: Mon, 1 Jun 2015 18:47:01 +0900 (JST)
Subject: [ruby-changes:38633] nobu:r50714 (trunk): mkmf.rb: logging pkg_config
nobu 2015-06-01 18:46:41 +0900 (Mon, 01 Jun 2015) New Revision: 50714 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50714 Log: mkmf.rb: logging pkg_config * lib/mkmf.rb (pkg_config): log executing command and its results. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 50713) +++ lib/mkmf.rb (revision 50714) @@ -1791,7 +1791,8 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1791 # default to pkg-config command pkgconfig = $PKGCONFIG get = proc {|opt| - opt = IO.popen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read) + opt = xpopen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read) + Logging.open {puts opt.each_line.map{|s|"=> #{s.inspect}"}} opt.strip if $?.success? } elsif find_executable0(pkgconfig = "#{pkg}-config") @@ -1801,7 +1802,8 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1802 end if pkgconfig get ||= proc {|opt| - opt = IO.popen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read) + opt = xpopen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read) + Logging.open {puts opt.each_line.map{|s|"=> #{s.inspect}"}} opt.strip if $?.success? } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/