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

Bug 63467

Summary: portage should show a pretty error message when dealing with bad env.d entries
Product: Portage Development Reporter: George Prowse <cokehabit>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal CC: gentoo, jimmygza, kde
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description George Prowse 2004-09-09 12:51:16 UTC
After updating to the new version of portage with emerge -uDv world all other updates stop with errors and do not go onto the next package.

The packages themselves seem to have been installed but i get the errors plus it says about kdepaths for 3.3.0 i am running KDE-3.2.3-r1

Reproducible: Always
Steps to Reproduce:
1.emerge -uDv world
2.
3.

Actual Results:  


!!! Invalid token (not "=") /usr/kde/3.3/shutdown
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2604, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1560, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2365, 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 2487, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 5929, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 5649, in treewalk
    env_update(makelinks=0)
  File "/usr/lib/portage/pym/portage.py", line 625, in env_update
    myconfig=getconfig(root+"etc/env.d/"+x)
  File "/usr/lib/portage/pym/portage.py", line 941, in getconfig
    raise Exception("ParseError: Invalid token (not '='): "+str(mycfg)+": line
"+str(lex.lineno))
Exception: ParseError: Invalid token (not '='): /etc/env.d/47kdepaths-3.3.0: line 5

Expected Results:  
finished and gone onto the next package

george@leviathon george $ emerge info
Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-strict-aliasing"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd encode esd
foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx
motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss other_var1
other_var2 pam pdflib perl png ppds python qt quicktime readline sdl slang spell
ssl svga tcltk tcpd truetype usb x86 xml2 xmms xprint xv zlib"
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-09-09 13:01:34 UTC
attach  /etc/env.d/47kdepaths-3.3.0 please.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-09-09 13:05:18 UTC
was a typo in the arts/kdelibs ebuilds - should be fixed now after a resync.

Comment 3 George Prowse 2004-09-09 13:08:35 UTC
This is the /etc/env.d/47kdepaths-3.3.0

PATH=/usr/kde/3.3/bin
ROOTPATH=/usr/kde/3.3/sbin:/usr/kde/3.3/bin
LDPATH=/usr/kde/3.3/lib
CONFIG_PROTECT=/usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown 
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2004-09-09 13:10:28 UTC
Quotes are missing around the entries on the last line - you can add them yourself or resync and re-emerge arts/kdelibs.
Comment 5 George Prowse 2004-09-09 13:33:55 UTC
Should the quotes be like this:
CONFIG_PROTECT="/usr/kde/3.3/share/config" "/usr/kde/3.3/env" "/usr/kde/3.3/shutdown"

or like this:
CONFIG_PROTECT="/usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown"

Also do you mean kde-base/kdelibs not arts/kdelibs
Comment 6 Tom Knight (RETIRED) gentoo-dev 2004-09-09 14:36:59 UTC
*** Bug 63474 has been marked as a duplicate of this bug. ***
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2004-09-21 18:07:01 UTC
That is nice enough. It might be wrapped more to cover up the traceback later.