Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65858 - Main Ruby ebuild seems to have broken tck/tk support
Summary: Main Ruby ebuild seems to have broken tck/tk support
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-29 16:25 UTC by Jamie
Modified: 2004-10-05 21:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
games-board/rubygo-1.12.ebuild (rubygo-12.1.ebuild,670 bytes, text/plain)
2004-10-02 00:53 UTC, Mamoru KOMACHI (RETIRED)
Details
gzipped output from "emerge =dev-lang/ruby-1.8.2_pre2" (rubyinstall.log.gz,19.55 KB, application/octet-stream)
2004-10-05 13:44 UTC, Jamie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie 2004-09-29 16:25:11 UTC
after emerging Ruby with tcltk in my use flags, I'm unable to get rubygo (http://rubygo.rubyforge.org) to load properly.  It runs on my windows box with a prebuilt binary, though.

When I try to run it, I get the following output:
~/$ ruby RubyGo/lib/go.rb

RubyGo path is  /home/jmacey/rubygo/RubyGo/lib
/usr/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- tcltklib (LoadError)
        from /usr/lib/ruby/1.8/tk.rb:7
        from /home/jmacey/rubygo/RubyGo/lib/prolog.rb:38:in `require'
        from /home/jmacey/rubygo/RubyGo/lib/prolog.rb:38
        from RubyGo/lib/go.rb:84:in `require'
        from RubyGo/lib/go.rb:84

I've tried re-emerging tcl, tk, and ruby, and doing a revdep-rebuild as suggested by tcl (since tcltk is fairly new to my system - it started without), but results are the same.

Reproducible: Always
Steps to Reproduce:
emerge tcl tk ruby
<extract rubygo>
ruby RubyGo/lib/go.rb
Actual Results:  
Error message as detailed above

Expected Results:  
the main window of the app should have popped up

Running a 2.6 series kernel, in Gnome 2.6.2.

emerge info:

Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.3.20040420-r1,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CCACHE_SIZE="1G"
CFLAGS="-O3 -march=athlon -fomit-frame-pointer -pipe -ffast-math"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-O3 -march=athlon -fomit-frame-pointer -pipe -ffast-math"
DCCC_PATH="/usr/lib/distcc/bin"
DESKTOP_SESSION="gnome"
DISPLAY=":0.0"
DISTCC_DIR="/var/tmp/portage/.distcc"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="vim"
FEATURES="autoaddcvs ccache distcc sandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GDMSESSION="gnome"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://mirrors.tds.net/gentoo
ftp://mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/"
GLIBC_SSP_CHECKED="1"
GNOME_DESKTOP_SESSION_ID="Default"
GNOME_KEYRING_SOCKET="/tmp/keyring-chgvPB/socket"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/jmacey/.gtkrc-1.2-gnome2"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
HOME="/home/jmacey"
HOSTNAME="celestoderm"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/blackdown-jdk-1.4.2_rc1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2_rc1"
JDK_HOME="/opt/blackdown-jdk-1.4.2_rc1"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:"
MAKEOPTS="-j7"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man:/usr/X11R6/man::/opt/blackdown-jdk-1.4.2_rc1/man"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
NOCOLOR="false"
OLDPWD="/home/jmacey"
PAGER="/usr/bin/less"
PATH="/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2_rc1/bin:/opt/blackdown-jdk-1.4.2_rc1/jre/bin:/usr/games/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="10694"
PORTAGE_NICENESS="19"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PWD="/home/jmacey"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SESSION_MANAGER="local/celestoderm:/tmp/.ICE-unix/6732"
SHELL="/bin/zsh"
SHLVL="1"
SSH_AGENT_PID="6750"
SSH_ASKPASS="/usr/bin/gtk2-ssh-askpass"
SSH_AUTH_SOCK="/tmp/ssh-QokOOm6732/agent.6732"
SUDO_COMMAND="/usr/bin/emerge -av info"
SUDO_GID="100"
SUDO_UID="1001"
SUDO_USER="jmacey"
SYNC="rsync://nekropolis/portage"
TERM="xterm"
USE="3dnow X acpi aim alsa apache2 audiofile avi berkdb bitmap-fonts bonobo
bzlib cpdflib crypt cups curl curlwrappers dba dbx dga dio divx4linux encode esd
evo exif faad fam fbcon flac flash foomaticdb ftp gb gd gd-external gdbm gif
gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml gtkhtml2 guile iconv icq
imagemagick imap imlib innodb jabber java jpeg ldap libg++ libgda libwww mad
mikmod mmap mmx motif mozilla moznocompose moznoirc moznomail mozp3p mozsvg mpeg
msn mtrr mysql ncurses nls nntp objc odbc offensive oggvorbis opengl oscar oss
pam pcre pdflib perl php png ppds python quicktime readline ruby samba sdl
shared slang soap sockets spell spl ssl sv svg svga tcltk tcpd theora threads
tiff tokenizer truetype unicode usb vhosts wmf wxwindows x86 xml xml2 xmlrpc
xmms xprint xsl xv xvid yahoo zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
WINDOWID="42011383"
XARGS="xargs -r"
XAUTHORITY="/home/jmacey/.Xauthority"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/sudo"
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-02 00:53:14 UTC
Created attachment 40909 [details]
games-board/rubygo-1.12.ebuild
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-02 00:56:03 UTC
I can run attached rubygo with ruby-cvs-1.8.2-r1, so will you
unmerge ruby-1.8.2_pre2 temporary and try ruby-cvs-1.8.2-r1?
They fixed several bugs with ruby-tk after _pre2 release, so
it might be fixed in the next _pre3.
Comment 3 Jamie 2004-10-04 13:25:51 UTC
Sorry about delay, gone for the weekend :P

After getting ruby-cvs-1.8.2-r1, and running "ruby lib/go.rb" from the RubyGo directory, I get this:

RubyGo path is  /home/jmacey/rubygo/RubyGo/lib
/usr/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- tcltklib (LoadError)
        from /usr/lib/ruby/1.8/tk.rb:7
        from /home/jmacey/rubygo/RubyGo/lib/prolog.rb:38:in `require'
        from /home/jmacey/rubygo/RubyGo/lib/prolog.rb:38
        from lib/go.rb:84:in `require'
        from lib/go.rb:84

Apparently doing this command also got me 1.9.0-r2:
ACCEPT_KEYWORDS="~x86" emerge =dev-lang/ruby-cvs-1.8.2-r1

switching to 1.9 using /usr/sbin/ruby-config ruby19, I get an identical error except replace 1.8 with 1.9.

I also downloaded the attached ebuild, and emerged using it, but still get the same error.

Any other data I can give you about my system that might help?
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-05 00:52:12 UTC
Will you submit a full log of ruby-1.8.2_pre2 (as an attachment) 
and the versions of tcl/tk you installed?
Comment 5 Jamie 2004-10-05 13:44:04 UTC
Created attachment 41171 [details]
gzipped output from "emerge =dev-lang/ruby-1.8.2_pre2"

usata:

I'm presuming this is what you wanted when you mentioned a full log.  The odd
control characters are probably from zsh, the distcc errors are from the other
box in the office that's not running.

As var as versions for tcl and tk, I'm running tcl-8.4.6 and tk-8.4.6-r1.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-05 21:10:31 UTC
Thank you very much. I found the problem. Your log says you enabled 
threads for tk, and dev-lang/ruby(,-cvs) didn's support threads. So I 
added threads IUSE flag to ruby-1.8.2_pre2, ruby-cvs-1.8.2-r1 and 
ruby-cvs-1.9.0-r2. I suppose this will solve the issue.
Please remerge one of them and see if RubyGo works ;-)