[MacPorts] #15421: BUG: ruby 1.8.6-p114_0 +tk incorrectly links against Apple provided TK framework

MacPorts noreply at macports.org
Sat May 24 09:47:53 PDT 2008


#15421: BUG: ruby 1.8.6-p114_0 +tk incorrectly links against Apple provided TK
framework
----------------------------------+-----------------------------------------
 Reporter:  synfinatic at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:  Port Bugs                            
Component:  ports                 |     Version:  1.6.0                                
 Keywords:                        |  
----------------------------------+-----------------------------------------
 Building ruby @1.8.6-p114_0+darwin_9+thread_hooks+tk and then:
 {{{
 /opt/local/bin/irb
 require 'tk'
 TclTkIp.new._eval "info patchlevel"
 }}}
 Doesn't return 8.5.2 (which is the MacPorts version of Tk), but rather
 8.4.7 which is the Apple provided version.

 The issue seems to be that the incorrect arguments are passed to the tk
 ruby extention.  I've had to manually build the tcltklib.bundle and
 tkutil.bundle:
 {{{
 cd ext/tk
 CONFIGURE_ARGS='--with-tcl-dir=/opt/local --with-tk-dir=/opt/local --with-
 tcllib=tcl8.5 \
    --with-tklib=tk8.5 --enable-pthread --without-X11'  /opt/local/bin/ruby
 extconf.rb
 make
 make install
 cd tkutil
 CONFIGURE_ARGS='--with-tcl-dir=/opt/local --with-tk-dir=/opt/local --with-
 tcllib=tcl8.5 \
    --with-tklib=tk8.5 --enable-pthread --without-X11' \
 /opt/local/bin/ruby extconf.rb
 make
 make install
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/15421>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list