Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35074 - emerge --pu world fails with buggy ebuild [patch included]
Summary: emerge --pu world fails with buggy ebuild [patch included]
Status: RESOLVED DUPLICATE of bug 34666
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 12:07 UTC by Brian Skahan
Modified: 2011-10-30 22:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
changes ("+str(ret)+") to ("+str(myret)+") (portage.diff,711 bytes, patch)
2003-12-04 12:09 UTC, Brian Skahan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Skahan 2003-12-04 12:07:57 UTC
emerge chokes and dies with:
Calculating world dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 2170, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1011, in xcreate
    myeb=portage.portdb.xmatch("bestmatch-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 4065, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4076, in xmatch
    myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4062, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 4145, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/portage/pym/portage.py", line 3822, in aux_get
    writemsg(str(red("\naux_get():")+" (0) Error in "+mycpv+" ebuild.
("+str(ret)+")\n"
NameError: global name 'ret' is not defined

ret looks like it should be myret, the patch below changes this and fixes the
problem

Reproducible: Always
Steps to Reproduce:
1.get the xfree-drm-4.3.0-r7 from freedesktop (gentoo forums for ebuild)
2.emerge -pu world with portage-2.0.49-r18
3.

Actual Results:  
see traceback in description

Expected Results:  
usual -pu world updates list

*** portage.py  Thu Dec  4 14:50:42 2003
--- portage.py.orig     Thu Dec  4 14:50:24 2003
***************
*** 3819,3825 ****
                                if myret:

                                        #depend returned non-zero exit code...
!                                       writemsg(str(red("\naux_get():")+" (0)
Error in "+mycpv+" ebuild. ("+str(myret)+")\n"
               "               Check for syntax error or corruption in the
ebuild. (--debug)\n\n"))
                                        raise KeyError

--- 3819,3825 ----
                                if myret:

                                        #depend returned non-zero exit code...
!                                       writemsg(str(red("\naux_get():")+" (0)
Error in "+mycpv+" ebuild. ("+str(ret)+")\n"
               "               Check for syntax error or corruption in the
ebuild. (--debug)\n\n"))
                                        raise KeyError

------------------------------------------------------------
End patch
------------------------------------------------------------

Gentoo Base System version 1.4.3.12
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9-mm5)
=================================================================
System uname: 2.6.0-test9-mm5 i686 AMD Athlon(tm) XP 2000+
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr
 -fprefetch-loop-arrays -falign-functions=16 -falign-labels=1 -falign-loops=16 -
falign-jumps=16 -fstack-protector -mfpmath=sse,387 -fmerge-all-constants -funrol
l-all-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm
/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /us
r/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/con
trol"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/WindowMaker /etc/X11/app-default
s /etc/X11/gdm /etc/X11/gtk /etc/X11/lbxproxy /etc/X11/proxymngr /etc/X11/pwm /e
tc/X11/rstart /etc/X11/serverconfig /etc/X11/starthere /etc/X11/sysconfig /etc/X
11/twm /etc/X11/wmconfig /etc/X11/xdm /etc/X11/xinit /etc/X11/xserver /etc/X11/x
sm /etc/gconf /etc/gnome-vfs-2.0 /etc/init.d /etc/sound /usr/X11R6/lib/X11/xkb /
usr/kde/3/share/config /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-ad
dr -fprefetch-loop-arrays -falign-functions=16 -falign-labels=1 -falign-loops=16
 -falign-jumps=16 -fstack-protector -mfpmath=sse,387 -fmerge-all-constants -funr
oll-all-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonsta
te.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb bonobo cdr crypt cups dga directfb d
vd encode esd evo fbcon foomaticdb gb gd gdbm ggi gif gnome gpm gtk gtk2 gtkhtml
 guile imap imlib java jpeg kde lcms ldap libg++ libwww mad maildir mbox mikmod 
mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl plot
utils png python qt quicktime readline sdl slang spell ssl svga tcpd tetex truet
ype usb x86 xinerama xml xml2 xv zlib video_cards_nvidia"
Comment 1 Brian Skahan 2003-12-04 12:09:59 UTC
Created attachment 21702 [details, diff]
changes ("+str(ret)+") to ("+str(myret)+")
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-12-04 12:28:38 UTC

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