From: "nobu (Nobuyoshi Nakada)" Date: 2013-05-28T00:08:11+09:00 Subject: [ruby-core:55179] [ruby-trunk - Bug #8435] Can't build tcl/tk extensions after updating Debian/Ubuntu package Issue #8435 has been updated by nobu (Nobuyoshi Nakada). romuloceccon (Romulo Ceccon) wrote: > +def multiarch_supported? > + dpkg_arch = `which dpkg-architecture`.strip > + `#{dpkg_arch} -qDEB_HOST_MULTIARCH`.strip unless dpkg_arch.empty? > +end `` returns a string, that is true value. Possibly, /\S/ =~ `dpkg-architecture -qDEB_HOST_MULTIARCH` rescue false ? ---------------------------------------- Bug #8435: Can't build tcl/tk extensions after updating Debian/Ubuntu package https://bugs.ruby-lang.org/issues/8435#change-39544 Author: romuloceccon (Romulo Ceccon) Status: Open Priority: Normal Assignee: nagai (Hidetoshi Nagai) Category: ext Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-05-21 trunk 40883) [x86_64-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN I've recently upgraded my Ubuntu system to 13.04 and tcl8.5-dev and tk8.5-dev were updated as well (to versions 8.5.13-1ubuntu and 8.5.11-2ubuntu4 respectively). Now I can't build Tcl/Tk Ruby extensions anymore. I was able to reproduce the problem with ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux] and ruby 2.1.0dev (2013-05-21 trunk 40883) [x86_64-linux]. Looking at source:/ext/tk/extconf.rb@39974#L376 I see that extconf tries to parse tclConfig.sh and tkConfig.sh, which worked nice previously when those files were ln'ed to the actual configuration files. However, after the update they look like this on my platform: $ cat /usr/lib/tclConfig.sh #!/bin/sh . /usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`/tclConfig.sh $ cat /usr/lib/tkConfig.sh #!/bin/sh . /usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`/tkConfig.sh So the setup fails: ... Search tclConfig.sh and tkConfig.sh..................... WARNING: found "/usr/lib/tclConfig.sh", but cannot find valid Tcl library for the tclConfig.sh. So, ignore it. WARNING: found "/usr/lib/tkConfig.sh", but cannot find valid Tk library for the tkConfig.sh. So, ignore it. .......... Fail to find [tclConfig.sh, tkConfig.sh] ... Full 'ruby extconf.rb' output and mkmf.log are attached. -- http://bugs.ruby-lang.org/