Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68212 - while unmerging packages, an installation fails.
Summary: while unmerging packages, an installation fails.
Status: RESOLVED DUPLICATE of bug 42228
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 15:02 UTC by Brandon Low (RETIRED)
Modified: 2005-08-09 22:38 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 Brandon Low (RETIRED) gentoo-dev 2004-10-19 15:02:11 UTC
Carpaski tells me I'm a dumbass for doing this, but I was running an:
emerge --depclean 
just now, and at the same time, I tried to do:
emerge --nodeps ati-drivers
Here is the result:

waiting for lock on /var/lib/portage/prelink-checksum.tmp.portage_lockfile
>>> /usr/X11R6/lib/modules/linux/libfglrxdrm.a
--- /usr/X11R6/lib/modules/drivers/
!!! Unable to copy file '/var/tmp/portage/ati-drivers-3.14.1/image/usr/X11R6/lib/modules/drivers/fglrx_drv.o'.
!!! [Errno 2] No such file or directory: '/var/lib/portage/prelink-checksum.tmp'
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2943, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1795, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2516, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
  File "/usr/lib/portage/pym/portage.py", line 2649, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6602, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6230, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/portage/pym/portage.py", line 6468, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6468, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6468, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6468, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6468, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6472, in mergeme
    mymd5=portage_checksum.perform_md5(mysrc,calc_prelink=1)
  File "/usr/lib/portage/pym/portage_checksum.py", line 24, in perform_md5
    return perform_checksum(x, md5hash, calc_prelink)[0]
  File "/usr/lib/portage/pym/portage_checksum.py", line 120, in perform_checksum
    sys.exit(1)
NameError: global name 'sys' is not defined

It was doing really well, waiting on lockfiles, moving right along, but then something blew up.  I'm too lazy to figure out what, but here's the bug report.

Portage 2.0.51_rc9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20041006-r0, 2.6.8.1-mm1 i686)
=================================================================
System uname: 2.6.8.1-mm1 i686 mobile AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.5.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -fgcse -fgcse-lm -fgcse-sm -freorder-blocks -fprefetch-loop-arrays -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /opt/openjms/config /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -fgcse -fgcse-lm -fgcse-sm -freorder-blocks -fprefetch-loop-arrays -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs digest distlocks fixpackages sandbox usersandbox"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="cvs://lostlogic@cvs.gentoo.org:/home/cvsroot"
USE="x86 3dnow 3dnowex X aalib acpi alsa apache2 avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl dga directfb divx4linux dlloader dvd dvdread encode ethereal fbcon flash gd gdbm ggi gif gphoto2 gpm gtk gtk2 gtkhtml imap imlib innodb java jbig jikes jpeg libg++ libwww lirc mbox mmx mozilla mpeg mysql ncurses oci8 oggvorbis opengl pam pcmcia pdflib perl plotutils png pnp postgres python quicktime readline samba sdl spell sse ssl svga tcltk tetex tiff truetype usb xinerama xml xml2 xmms xprint xv zlib"
Comment 1 Zac Medico gentoo-dev 2005-08-01 13:35:15 UTC
!!! [Errno 2] No such file or directory: '/var/lib/portage/prelink-checksum.tmp'

The tempfile collision seems to be fixed in portage-2.0.51.22 (or before).  It
uses os.getpid() to make the tempfile unique.

prelink_tmpfile = PRIVATE_PATH+"/prelink-checksum.tmp."+str(os.getpid())


Minor detail: "import sys" is still missing from pym/portage_checksum.py
Comment 2 Zac Medico gentoo-dev 2005-08-01 13:43:12 UTC
Duplicate of Bug 42228.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-09 22:36:52 UTC
I'll not dupe it until that import sys line is marked inCVS, the damn thing has 
been missing for over a year.  *pokes ferringb or Jason*
Comment 4 Brian Harring (RETIRED) gentoo-dev 2005-08-09 22:38:57 UTC

*** This bug has been marked as a duplicate of 42228 ***