New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #15421 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

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

Changed 4 years ago by jmr@…

  • owner changed from macports-tickets@… to pguyot@…

Assigning to maintainer.

Changed 4 years ago by synfinatic@…

Looks like Tk/Tcl is broken too. doesn't build the OSX Framework, so you don't get the properly themed Tk. I was able to manually build the Framework and compile the ext/tk using:

ruby extconf.rb --without-X11 --with-tcltk_framework=/Library/Frameworks/
make && make install

which also correctly built/installed the ext/tk/tkutil stuff as well.

Changed 4 years ago by kimuraw@…

  • owner changed from pguyot@… to kimuraw@…

Changed 3 years ago by kimuraw@…

  • status changed from new to closed
  • resolution set to fixed

port ruby186-p287 works correctly. close this ticket.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.