Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9579 - TCL_SRC_DIR points to portage work dir
Summary: TCL_SRC_DIR points to portage work dir
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-23 18:05 UTC by Chris Maj
Modified: 2005-03-25 11:24 UTC (History)
0 users

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 Chris Maj 2002-10-23 18:05:25 UTC
I was installing gentoo for the first time, using the 1.4_rc1 image.  I started
at stage 1, and bootstrapping went just fine.  On to stage 2, I ran an 'emerge
system' and that worked fine until I got to Tk.

I thought at first that maybe Tcl wasn't there, so I moved into
/usr/portage/dev-lang/tcl/ and ran emerge on that ebuild script.  Worked like a
champ.  So now the problem must have been in Tk.

I tried a couple times to emerge in the tk directory on that ebuild script, and
it barfed on tclInt.h, saying it couldn't be found.

So I noticed in the ebuild script that some shell code in /usr/lib/tclConfig.sh
was responsible for setting up the Tcl environment.  Upon examination of this
shell code, I noticed the TCL_SRC_DIR variable was pointing to the portage work
directory for Tcl instead of where the files are off of /usr/lib

To get it to work, I changed this line in  /usr/lib/tclConfig.sh :

TCL_SRC_DIR='/mnt/data/tmp/portage/tcl-8.3.3-r3/work/tcl8.3.3'

to

TCL_SRC_DIR='/usr/lib/tcl8.3/include'

(That /mnt/data/tmp is my own PORTAGE_TEMPDIR setting.)


After that fix, I could emerge tk and now I'm proceeding with the rest of the
install of stage 2.

I noticed that in Debian, there's a TCL_INC_DIR that is specified for the
generic directory of Tcl, along with the TCL_SRC_DIR.  Perhaps that would offer
a decent solution ?

I would try to nail this down further and submit a patch, but I'm still in stage
2, so it's something for the future...
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-11-02 18:12:54 UTC
Can't reproduce this. It's probably the install CD having an older revision of
tcl, where we don't do proper dosedding. Reopen if it's still around in _rc2;
it's at least not a problem in the current main tree.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-25 11:24:02 UTC
Moving these so we can remove the "Install CD" component from "Gentoo Linux".

I apologize to everyone for this spam, but according to the bugzilla developers,
this is the only reasonable way to do this.