Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4853 - emerge -k fails with portage 2.0.11
Summary: emerge -k fails with portage 2.0.11
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-11 05:37 UTC by george
Modified: 2011-10-30 22:21 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 george 2002-07-11 05:37:03 UTC
I use one machine to build packages  with emerge -b, then emerge onto multiple
machines with emerge -k.  Slave machines mount /usr/portage from the master.

This was working fine until I updated portage to 2.0.11 and emerge -k now fails.

Other uses of emerge still look fine.

To rule out remote mounting as a cause I did the following on the master:

emerge -b gentoolkit   - fine
emerge -k gentoolkit   - failed as below

>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> app-admin/gentoolkit-0.1.13 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 3688, in pkgmerge
    cleanup_pkgmerge(mypkg,origdir)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3632, 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/gentoolkit-0.1.13'

I've left the first lines to show where the failure happens.  This happens with
more than one package so I don't believe the actual package is relevant.

Also, I don't know if this is related but I was trying to merge a new package to
a slave machine and had the following problem which prompted the portage update.

If this is a separate and real bug then I can enter a new bug but it may be
solved at the same time or be OK now but masked by this bug.

emerge -p package shows a number of dependencies as I would expect.
emerge -b package on master builds deps as well.
emerge -k package on slave only builds package - not deps.

TIA,
George.
Comment 1 SpanKY gentoo-dev 2002-07-11 09:19:18 UTC
this is a duplicate of a bug that has already been solved
Look at Bug 4606
Comment 2 george 2002-07-11 10:55:59 UTC
So it is.  PKG_TMPDIR line fixed it.  One day I'll pick the right terms to search on.  Thanks, George. 
Comment 3 SpanKY gentoo-dev 2002-07-11 11:48:51 UTC
np dad ... just mark this bug as a dup now ? ;)
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-07-11 11:58:59 UTC
fixed in 2.0.13
Comment 5 george 2002-07-12 03:54:46 UTC
For anyone else caught by this...

I found a dir in / for each package which I saw this problem on.
e.g. /gentoolkit-0.1.13/.  I have deleted them with no apparent problems.

George.