Bug #8830

Cannot Build Tk / Ruby 2.0.0 p247 on OSX (Mountain Lion)

Added by Marco Ceruso 8 months ago. Updated 8 months ago.

[ruby-core:56856]
Status:Closed
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:ruby 2.0.0p247 (2013-06-27) [x86_64-darwin12.4.0] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

The file ext/tk/extconf.rb seems to contain a typo (misplaced parenthesis line 318; see output of 'diff -u ' below.

The issue was reported earlier (bug #8656) for ruby 1.9.7 p448 and is now closed, but the typo is still present in the tar archive (ruby-2.0.0-p247.tar.gz) that can be downloaded from the website

--- extconf.rb.orig 2013-06-17 11:38:49.000000000 -0400
+++ extconf.rb.modif 2013-08-28 20:09:00.000000000 -0400
@@ -315,7 +315,7 @@
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]


Related issues

Duplicates ruby-trunk - Bug #8656: Cannot Build Ruby-Tk Closed 07/19/2013

History

#1 Updated by Nobuyoshi Nakada 8 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF