Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99538 - emerging anything does not work at all anymore!
Summary: emerging anything does not work at all anymore!
Status: VERIFIED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 08:15 UTC by Stefan Behte (RETIRED)
Modified: 2008-09-20 22:28 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 Stefan Behte (RETIRED) gentoo-dev Security 2005-07-19 08:15:58 UTC
lato ~ # emerge -u portage
/usr/lib/python2.3/fcntl.py:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.51.22-r2 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3200, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2664, in doebuild
    if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly,
fetchonly=fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 1819, in fetch
    file_lock =
portage_locks.lockfile(mysettings["DISTDIR"]+"/"+locks_in_subdir+"/"+myfile,wantnewlockfile=1)
  File "/usr/lib/portage/pym/portage_locks.py", line 91, in lockfile
    locking_method = fcntl.lockf
AttributeError: 'module' object has no attribute 'lockf'
lato ~ # emerge vlock
/usr/lib/python2.3/fcntl.py:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl
Calculating dependencies ...done!
>>> emerge (1 of 1) app-misc/vlock-1.3-r2 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3200, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2664, in doebuild
    if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly,
fetchonly=fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 1819, in fetch
    file_lock =
portage_locks.lockfile(mysettings["DISTDIR"]+"/"+locks_in_subdir+"/"+myfile,wantnewlockfile=1)
  File "/usr/lib/portage/pym/portage_locks.py", line 91, in lockfile
    locking_method = fcntl.lockf
AttributeError: 'module' object has no attribute 'lockf'

Oh damn :(

lato ~ # emerge info
/usr/lib/python2.3/fcntl.py:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i586)
=================================================================
System uname: 2.6.11-gentoo-r11 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-Os -mcpu=k6-2 -fomit-frame-pointer -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mcpu=k6-2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://192.168.0.2:66/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo
/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE@euro"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi alsa apm arts avi berkdb bitmap-fonts bzip2 crypt esd
ethereal ettercap fam gdbm gif gpm gtk gtk2 imlib ipv6 irda java jpeg mmx mp3
ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt readline
samba sdl sftp snmp socks5 ssl tcpd tiff truetype truetype-fonts type1-fonts usb
vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

Here is what I did before the error occured:
I mounted the drive of this PC from an other one via Samba and tried to chroot
into the system, i also did env-update && source /etc/profile, but some errors
occured...then I tried to upgrade...but it did not work. so i umounted
everything and tried to upgrade from the local system, which now also failed...
I really have no ide what to do now...I'd be really about some help because
doing a complete stage1 Installation (with xorg,firefox,thunderbird and so on)
on that PC tool about a week...
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-07-20 08:54:47 UTC
This is not something that we can really account for. It seems like somehow  
the python installation is broken. To fix it, the easiest way is probably to  
untar a stage3 somewhere else, emerge --buildpkg python and then unpack the  
resulting package found in /usr/portage/packages/All into the root of your 
broken system.  
Comment 2 Alec Warner archtester Gentoo Infrastructure gentoo-dev Security 2005-08-18 20:39:52 UTC
While from a idealistic standpoint all stuff that fails should be in a try-catch 
block someplace, I can't imagine adding the thousands of blocks needed in 
stable.

Portage will not function without a complete python installation.  I would 
follow Jasons advice above, or grab a binary package from one of the developers 
who maintain rescue packages, avenj for example.

http://dev.gentoo.org/~avenj/bins/