From: Michael Graff Date: 2010-03-24T03:40:53+09:00 Subject: [ruby-core:28901] [Bug #2997] Patch for ext/tk/extconf.rb X11 build failure on NetBSD 5 Bug #2997: Patch for ext/tk/extconf.rb X11 build failure on NetBSD 5 http://redmine.ruby-lang.org/issues/show/2997 Author: Michael Graff Status: Open, Priority: Normal ruby -v: ruby 1.9.2dev (2010-03-24 trunk 27027) [i386-netbsdelf5.0.] [submitted directly to the ruby-core list, but I understand this is the preferred path] I'm attempting to make ruby 1.9.1 build more easily/cleanly on NetBSD 5, and ran into a problem inside ext/tk. Provided is a patch that does two things: (1) Fixes what I believe is a cut and paste error. In places, TclConfig_Info['TK...'] is used where I I belive these should be TkConfig_Info[]. (2) Adds includes from TK_XINCLUDES if we found X11 libraries, AND it is set, to the build command line. These make things compile on NetBSD. I do not have commit access so it's not easy to test these on other OSs (MacOS is the only one I have easy access to) but I do not believe they should affect other systems negatively. ---------------------------------------- http://redmine.ruby-lang.org