Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25238

Summary: portage-2.0.48-r5: emerge fails with -pf flags
Product: Portage Development Reporter: Andrey Melentyev <andrey.melentyev>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED DUPLICATE    
Severity: normal CC: genone
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrey Melentyev 2003-07-25 02:42:05 UTC
When I try to emerge some app, wich is not installed yet, with -pf flags I get
the following:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 1951, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1176, in merge
    retval=portage.doebuild(y,"fetch",myroot,edebug,("--pretend" in
myopts),fetchonly=1)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1734, in doebuild
    if not digestcheck(checkme, ("strict" in features)):
  File "/usr/lib/python2.2/site-packages/portage.py", line 1484, in digestcheck
    return digestCheckFiles(myfiles, mydigests, basedir, "src_uri")
  File "/usr/lib/python2.2/site-packages/portage.py", line 1402, in digestCheckFiles
    if strict:
NameError: global name 'strict' is not defined

----

I tryed to emerge -pf gnome, icc and some other apps, I got the same errors.

Reproducible: Always
Steps to Reproduce:
1. Just use emerge some application with -pf flags
Actual Results:  
I get message about faults in /usr/lib/python2.2/site-packages/portage.py and
emerge does not work properly:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1951, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1176, in merge
    retval=portage.doebuild(y,"fetch",myroot,edebug,("--pretend" in
myopts),fetchonly=1)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1734, in doebuild
    if not digestcheck(checkme, ("strict" in features)):
  File "/usr/lib/python2.2/site-packages/portage.py", line 1484, in digestcheck
    return digestCheckFiles(myfiles, mydigests, basedir, "src_uri")
  File "/usr/lib/python2.2/site-packages/portage.py", line 1402, in digestCheckFiles
    if strict:
NameError: global name 'strict' is not defined


Expected Results:  
I think 'emerge -pf gnome' for example must give me a full list of needed files
to 'emerge gnome', but it doesn`t work.

# emerge info
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21-ck3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS="ftp://hess.local/gentoo  #ftp://kos.local/gentoo 
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 crypt foomaticdb libg++ mad mikmod pdflib xml2 gdbm tetex bonobo guile
mysql tcpd libwww python imlib motif tcltk mbox maildir -arts avi cdr cups fbcon
gif java jpeg mozilla mpeg ncurses nls oggvorbis oss perl png scanner spell usb
xmms tiff truetype opengl sse mmx ssl doc -kde qt X gtk gtk2 gnome -alsa -apm
-dvd directfb gpm pam quicktime readline xv slang encode zlib -samba -postgres -
berkdb -emacs esd svga sdl 3dnow ggi dga aalib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-07-25 09:07:04 UTC
49_pre14 fails for me with another error when running as user (it works as root):

Calculating dependencies ...done!
!!! File system problem. (ReadOnly? Out of space?)
!!! Perhaps: rm -Rf /var/tmp/portage
!!! [Errno 1] Operation not permitted: '/var/tmp/portage'

!!! Fetch for /usr/portage/kde-base/kdebase/kdebase-3.1.2.ebuild failed, continuing...

!!! File system problem. (ReadOnly? Out of space?)
!!! Perhaps: rm -Rf /var/tmp/portage
!!! [Errno 1] Operation not permitted: '/var/tmp/portage'

Checked on another machine with 48-r1, same error.
I thought all pretend modes should work as user.
Comment 2 SpanKY gentoo-dev 2003-07-25 15:11:01 UTC

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