Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4454 - portage-2.0.9: missing variables in make.globals cause emerge errors
Summary: portage-2.0.9: missing variables in make.globals cause emerge errors
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-02 17:09 UTC by Pau Oliva
Modified: 2011-10-30 22:18 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 Pau Oliva 2002-07-02 17:09:00 UTC
portage-2.0.9 has missing variables in make.globals file, here's the diff 
between previous make.globals:

9,10d8
<
< #PORTAGE_TMPDIR=${ROOT}/var/tmp
12,16d9
< #/var/tmp without ${ROOT} seems more appropriate
<
< # Directory used for the build process
< BUILD_PREFIX=${PORTAGE_TMPDIR}/portage
< PKG_TMPDIR=${PORTAGE_TMPDIR}/portage-pkg
22,23d14
< CURRENTFILE=${PORTDIR}/current-packages
< PLATFORM=$CHOST
35,36d25
<
< # C++ Compiler flags

This causes emerge to fail when using a .tbz2 precompiled package with option --
usepkg.
As an example:
# emerge --usepkg sendmail
[...]
>>> Regenerating /etc/ld.so.cache...
>>> net-mail/sendmail-8.12.4-r2 merged.
Traceback (most recent call last):
File "/usr/bin/emerge", line 1265, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 643, in merge
retval=portage.pkgmerge(mytbz2,x[1])
File "/usr/lib/python2.2/site-packages/portage.py", line 3619, in pkgmerge
cleanup_pkgmerge(mypkg,origdir)
File "/usr/lib/python2.2/site-packages/portage.py", line 3569, in 
cleanup_pkgmerge
shutil.rmtree(settings["PKG_TMPDIR"]+"/"+mypkg)
File "/usr/lib/python2.2/shutil.py", line 117, in rmtree
_build_cmdtuple(path, cmdtuples)
File "/usr/lib/python2.2/shutil.py", line 132, in _build_cmdtuple
for f in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/var/tmp/portage-pkg/sendmail-
8.12.4-r2'

And it creates /sendmail-8.12.4-r2 in / instead of /var/tmp/portage-pkg not 
cleaning it after the install.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-08 20:39:23 UTC
This will be fixed in Portage 2.0.12