Ticket #15421 (closed defect: fixed)
BUG: ruby 1.8.6-p114_0 +tk incorrectly links against Apple provided TK framework
| Reported by: | synfinatic@… | Owned by: | kimuraw@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | ||
| Port: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

