Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128837 - dev-lang/ruby-1.8.5-r3 compiles tk support even with the use flag turned off
Summary: dev-lang/ruby-1.8.5-r3 compiles tk support even with the use flag turned off
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-04 16:32 UTC by Henrique Ferreiro
Modified: 2007-05-17 22:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrique Ferreiro 2006-04-04 16:32:49 UTC
Even disabled this appeared while compiling:

compiling tk

emerge --info:

Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-suspend2 i686)
=================================================================
System uname: 2.6.16-suspend2 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy ccache collision-protect confcache digest distlocks fixpackages metadata-transfer sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="gl_ES.UTF-8"
LC_ALL="gl_ES.UTF-8"
LINGUAS="gl es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-gentopia /usr/local/portage-bmg /usr/local/portage-xgl /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm avahi avi bash-completion beagle bzip2 cairo cli ctype cups dba dbus dri dvd dvdr eds emboss encode esd exif expat fastbuild fbcon firefox foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 gtkhtml hal imlib isdnlog jpeg lcms libg++ libnotify libwww mad memlimit mikmod mmx mmxext mp3 mpeg ncurses nls nptl ogg opengl pcre pdf pdflib pic png posix pppd quicktime readline samba session simplexml soap sockets spell spl sse sse2 ssl svg test tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xsl xv zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard input_devices_synaptics kernel_linux linguas_gl linguas_es userland_GNU video_cards_ati video_cards_fglrx"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-04-06 16:44:03 UTC
I don't have tcltk to test, but can you try adding this line to the build:

$(use_enable tcltk tcltk-framework) \

to line 86, just below the "ipv6" line.
Comment 2 Henrique Ferreiro 2006-04-08 02:11:29 UTC
It does not work.
Comment 3 Josip Dzolonga 2006-06-17 04:45:34 UTC
The tk library is part of the stdlib, so I'm not quite sure if it's possible to disable it without stripping the core. I've just read the configure.in file and there's no such option `tcltk'. The tcltk flag just pulls the dependencies, and doesn't affect any ./configure option. I sugguest removing the flag since it's a must. Correct me if I'm wrong.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2006-06-19 04:28:15 UTC
I don't have the source in front of me, but if you look deeper in some subdirectory there does seem to be an option for enabling/disabling tcl/tk.  I'm not sure if it's being picked up or not though.
Comment 5 Josip Dzolonga 2006-06-19 07:20:53 UTC
The `tk' module resides in the ext/ directory of the ruby source code. There's a `Setup' file, which I tought was used for enabling/disabling extension, but unfortunately it's for linking statically the extensions specified there. I can't think of another solution besides removing the whole ext/tk directory, which worked for me.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-11-13 07:50:21 UTC
(In reply to comment #1)
> I don't have tcltk to test, but can you try adding this line to the build:
> 
> $(use_enable tcltk tcltk-framework) \
> 
> to line 86, just below the "ipv6" line.
> 

I read the code in extconf.rb and it seems that it just fails back to autodetection in all cases. So we should get a patch accepted upstream to be able to explicitly disable tk/tcl usage.
Comment 7 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-12-18 05:32:06 UTC
I don't think upstream will accept such a patch. Allowing explicitly enabling/disabling an ext module means they will have to add lots of option.

Look another way, why ext/tk has its own use flag while others (curses,iconv,gdbm,syslog,zlib...) don't?
Comment 8 Richard Brown (RETIRED) gentoo-dev 2007-05-17 22:26:12 UTC
According to ruby-talk:183494 $(use_with tk) should work. I've added it to dev-lang/ruby-1.8.6-r1 and tested it. If anyone wants it added to an earlier ebuild please let me know.