ruby-changes:30318
From: nagai <ko1@a...>
Date: Sun, 4 Aug 2013 10:30:58 +0900 (JST)
Subject: [ruby-changes:30318] nagai:r42370 (ruby_2_0_0): * ext/tk/extconf.rb: Default search_versions are set 8.5 and 8.4 only. At present, Tcl/Tk8.6 is not supported.
nagai 2013-08-04 10:30:46 +0900 (Sun, 04 Aug 2013) New Revision: 42370 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42370 Log: * ext/tk/extconf.rb: Default search_versions are set 8.5 and 8.4 only. At present, Tcl/Tk8.6 is not supported. * ext/tk/extconf.rb: Fix typo. [ruby-core:56084] [Bug #8656] * ext/tk/extconf.rb: Don't add "-ltk -ltcl" for MacOSX frameworks, because they may link improper libraries. Modified files: branches/ruby_2_0_0/ext/tk/extconf.rb Index: ruby_2_0_0/ext/tk/extconf.rb =================================================================== --- ruby_2_0_0/ext/tk/extconf.rb (revision 42369) +++ ruby_2_0_0/ext/tk/extconf.rb (revision 42370) @@ -8,7 +8,8 @@ TkLib_Config = {} https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/tk/extconf.rb#L8 TkLib_Config['search_versions'] = # %w[8.9 8.8 8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6 4.2] # %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0] - %w[8.7 8.6 8.5 8.4 8.0] # to shorten search steps + # %w[8.7 8.6 8.5 8.4 8.0] # to shorten search steps + %w[8.5 8.4] # At present, Tcl/Tk8.6 is not supported. TkLib_Config['major_nums'] = '87' @@ -315,7 +316,7 @@ def find_macosx_framework https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/tk/extconf.rb#L316 paths.map{|dir| dir.strip.chomp('/')}.each{|dir| next unless File.exist?(File.join(dir, "Tcl.framework", "Headers")) next unless File.directory?(tcldir = File.join(dir, "Tcl.framework")) - next unless File.exist?(File.join(dir, "Tk.framework"), "Headers") + next unless File.exist?(File.join(dir, "Tk.framework", "Headers")) next unless File.directory?(tkdir = File.join(dir, "Tk.framework")) TkLib_Config["tcltk-framework"] = dir return [tcldir, tkdir] @@ -2020,7 +2021,6 @@ if TkLib_Config["tcltk-framework"] https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/tk/extconf.rb#L2021 end end $LDFLAGS << ' ' << libs - $libs << ' -ltk -ltcl' setup_for_macosx_framework(tclver, tkver) if tcl_cfg_dir && tk_cfg_dir end @@ -2056,4 +2056,6 @@ if (TkLib_Config["tcltk-framework"] || https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/tk/extconf.rb#L2056 puts "\nFind Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk." else puts "\nCan't find proper Tcl/Tk libraries. So, can't make tcltklib.so which is required by Ruby/Tk." + puts "If you have Tcl/Tk libraries on your environment, you may be able to use them with configure options (see ext/tk/README.tcltklib)." + puts "At present, Tcl/Tk8.6 is not supported. Although you can try to use Tcl/Tk8.6 with configure options, it will not work correctly. I recommend you to use Tcl/Tk8.5 or 8.4." end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/