Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4450 - dev-lang/tcl should be SLOT-ed
Summary: dev-lang/tcl should be SLOT-ed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
Depends on:
Reported: 2002-07-02 16:07 UTC by Curtis Magyar
Modified: 2014-02-10 16:35 UTC (History)
3 users (show)

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

tk-8.4.4-r1 beta 1 (tk-8.4.4-r1.ebuild,2.12 KB, text/plain)
2003-11-20 18:34 UTC, Eamon Caddigan
tcl-8.4.4-r1 beta 1 (tcl-8.4.4-r1.ebuild,2.72 KB, text/plain)
2003-11-20 18:34 UTC, Eamon Caddigan

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Magyar 2002-07-02 16:07:45 UTC
Although I can find no convention on this, it would seem tcl.h should probably
be placed in /usr/include/tcl8.3, and tk.h in /usr/include/tk8.3.  Debian puts
them both in /usr/include/tcl8.3, but either way will save major headaches when
tcl/tk 8.4 is released.

Also the api to tcl/tk changes frequently, we need to provide a mechanism to
have the developer choose the version of tcl/tk headers to include.  We could
possibly place a symlink from /usr/include/tcl8.3/tcl.h to /usr/include/tcl.h to
provide backward compatibility, as well as in the future provide a mechanism for
a default tcl.h header.  Same goes for tk.  Right now, there is no way to
install tcl/tk 8.1 on my system without breaking tck/tk 8.3 other than
installing in /usr/local/include.
Comment 1 SpanKY gentoo-dev 2002-07-03 12:04:11 UTC
tcl and tk are sep packages thus they get sep dirs ... i find the way it is 
currently setup to be the 'norm' on distro's ive used
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-11-02 05:55:00 UTC
Good suggestion, but as we only have one version of tcl, it's not a problem
right now. Whenever 8.4 comes out and we get a package for it, we'll handle it
Comment 3 Eamon Caddigan 2003-11-20 18:29:57 UTC
8.4 is out and a lot of people who want to use it find it's breaking other 
packages (which explains why it's still masked). I've written a couple of beta 
ebuilds for slotted tcl and tk. This will allow everybody to keep the old 
libraries for backward-compatability, and still take advantage of the new 
features in the language.

* Write a tcltk-update script that allows the user to switch tcl-tk versions
(see opengl-update).
* Handle man pages and headers as mentioned in the original description for
this bug.
* Clean up this hack, possibly using tcltk-update to check for previously 
installed versions and create symlinks (and possibly move this functionality 
from src_install to pkg_postinst).

I'm still new to writing ebuilds, so there's probably much more room for improvement. 
Comment 4 Eamon Caddigan 2003-11-20 18:34:02 UTC
Created attachment 21007 [details]
tk-8.4.4-r1 beta 1
Comment 5 Eamon Caddigan 2003-11-20 18:34:30 UTC
Created attachment 21008 [details]
tcl-8.4.4-r1 beta 1