Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1535 - strange error when emerging *any* package
Summary: strange error when emerging *any* package
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
: 1536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-04 18:27 UTC by Justin Stallard
Modified: 2011-10-30 22:18 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 Justin Stallard 2002-04-04 18:27:15 UTC
I recently upgraded from portage-1.8.9.4 to 1.8.15, then 1.8.16. In both 1.8.15
and 1.8.16, i get the following output at the end of any emerge attempt:

--begin output--

!!! Invalid token (not "=") PATH
Traceback (most recent call last):
  File "/usr/sbin/emerge", line 1263, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/sbin/emerge", line 569, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1003, in doebuild
    return
merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 1258, in merge
    mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2991, in merge
    self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2815, in treewalk
    env_update()	
  File "/usr/lib/python2.2/site-packages/portage.py", line 244, in env_update
    if myconfig.has_key(myspec):
AttributeError: 'NoneType' object has no attribute 'has_key'

--end output--

The reason this is strange is because after emerge exits, the package seems to
have merged successfully.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-04 18:41:17 UTC
*** Bug 1536 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-04-04 19:58:44 UTC
You have a file in /etc/env.d that is causing a parsing error.  Have you been
modifying any files in there?  If not, then we have a package on cvs that is
installing incorrectly-formatted data in there.
Comment 3 Justin Stallard 2002-04-04 20:25:48 UTC
I haven't touched anything in there. I could look at the files to see if there's
anything out of the ordinary, but I don't know what to look for.
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-04-07 20:17:02 UTC
could you tar up your /etc/env.d directory and attach here or simply email it to
me?  (drobbins@gentoo.org)
Comment 5 Daniel Robbins (RETIRED) gentoo-dev 2002-04-16 02:21:13 UTC
Seemant: do you happen to know if karl has fixed his java-config and thus fixed
this bug?
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-16 07:54:34 UTC
According to bug #1577 karl fixed this.  And now java-config is at 0.2.2 with
even more improvements, so I imagine this fix is in the relatively distant past.
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-16 11:07:06 UTC
<karltk> seemant: it might be that the newer portages barf of the java directory
in env.d
<karltk> seemant: ie, that it is a dir, not a file
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-16 11:08:01 UTC
Is this still an issue, by the way?  Portage is at 1.8.19 for a while now.
Comment 9 Justin Stallard 2002-04-16 16:14:17 UTC
All I can say is that since the bug was fixed in java-config, everything has been working fine for me. 
Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-16 23:41:29 UTC
Great