Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8047 - portage doesnt like trailing / on PORTAGE_TMPDIR
Summary: portage doesnt like trailing / on PORTAGE_TMPDIR
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
: 8090 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-17 15:18 UTC by Mathias Menzel-Nielsen
Modified: 2011-10-30 22:19 UTC (History)
2 users (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 Mathias Menzel-Nielsen 2002-09-17 15:18:45 UTC
the compile of tk-8.3.3 depends on some files of tcl-8.3.3. But the workdir of
the tcl compile is removed after succesfully merging it. So tk cant find some
files e.g.: tclInt.h

Perhaps tk ebuild script should check if the tcl workdir is available and
eventually have to unpack the sources again?
Comment 1 SpanKY gentoo-dev 2002-09-17 18:03:12 UTC
does this file exist on your system ?
/usr/lib/tcl8.3/include/generic/tclInt.h
Comment 2 Mathias Menzel-Nielsen 2002-09-17 18:15:51 UTC
yes

but the make of tk does -I /var/tmp/portage/tcl-8.3.3-r3
Comment 3 SpanKY gentoo-dev 2002-09-17 18:18:10 UTC
then thats an error that needs to be corrected ;)
Comment 4 Mathias Menzel-Nielsen 2002-09-18 08:46:30 UTC
well, I think the error is in tclConfig.sh:

bash-2.05a# grep ^.*/portage/tcl-8.3.3-r3/work/tcl8.3.3.*$ /usr/lib/tclConfig.sh 
TCL_BUILD_LIB_SPEC='-L/var/tmp/portage/tcl-8.3.3-r3/work/tcl8.3.3/unix
-ltcl8.3${TCL_DBGX}'
TCL_SRC_DIR='/var/tmp/portage/tcl-8.3.3-r3/work/tcl8.3.3'
TCL_BUILD_STUB_LIB_SPEC='-L/var/tmp/portage/tcl-8.3.3-r3/work/tcl8.3.3/unix
-ltclstub8.3${TCL_DBGX}'
TCL_BUILD_STUB_LIB_PATH='/var/tmp/portage/tcl-8.3.3-r3/work/tcl8.3.3/unix/libtclstub8.3${TCL_DBGX}.a'


the vars point to the portage build dir which is deleted after tcl merge.
perhaps i could put some sed's in the tk-8.3.3-r*.ebuild to change them to the
right places (/usr/lib and /usr/lib/tcl8.3/include/unix) ?

Or is my box the only with this weird tclConfig.sh? But its a fresh
"out-of-the-box" gentoo 1.2 installation.
Comment 5 Mathias Menzel-Nielsen 2002-09-18 10:10:32 UTC
ok after looking into tcl-8.3.3-r3.ebuild, i saw that there were already sed
lines modifying tclConfig.sh. 
And I found the error:
  I set my PORTAGE_TMPDIR to a different location due to lack of diskspace.
  But It had a final '/' like PORTAGE_TMPDIR="/mypath/"

Because of that, the ebuild script does this:
>>> Install tcl-8.3.3-r3 into /usr/build-temp//portage/tcl-8.3.3-r3/image/
category dev-lang
(note the double '/')

and therefore the sed failed and produced no tclConfig.sh.new with changed paths

after changing my PORTAGE_TMPDIR to "/mypath" it worked, hence i changed this
bug to invalid on my own : )
Comment 6 SpanKY gentoo-dev 2002-09-18 15:02:09 UTC
well, if portage doesnt handle 'PORTAGE_TMPDIR' due to trailing / then maybe we 
should have someone fix that :)

nice catch
Comment 7 SpanKY gentoo-dev 2002-09-18 22:10:52 UTC
*** Bug 8090 has been marked as a duplicate of this bug. ***
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2002-10-20 03:59:11 UTC
Note added to make.conf