Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11333 - broken Portage/Python after emerge -u world
Summary: broken Portage/Python after emerge -u world
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 11366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-28 04:45 UTC by Jonathan GIll
Modified: 2011-10-30 22:18 UTC (History)
2 users (show)

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 Jonathan GIll 2002-11-28 04:45:30 UTC
Received the following after doing an emerge -u world that upgraded Python.

>>> Merging sys-devel/autoconf-2.54 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1641, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1037, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1244, 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 1470, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3939, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3646, in treewalk
    mymtime=int(time.time())
OverflowError: float too large to convert
Comment 1 Jonathan GIll 2002-11-28 06:04:55 UTC
Details of exactly what I did.

Base gentoo 1.4rc1 install. X KDE, evolution mozilla etc.

Changed the make.conf to include ACCEPT_KEYWORDS="~x86"

emerge -f -u world to grab all the new stuff.

emerge mysql to get that running

USE="mysql" emerge -u msyslog to get and build msyslog

and then it upgraded about 8 packages, including gcc to 3.2.1 and glibc and python. 

try to emerge rest of the world by doing emerge -u world and then get the error
reported.

Comment 2 Jonathan GIll 2002-11-28 06:08:51 UTC
one more thing...

seems to be "time" dependent.  Just doing a emerge -u world now, and it is
putting in one package.  If I wait a while then it seems to break again.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2002-11-28 11:29:54 UTC
Things may have been broken because you switched gcc and glibc versions due to
your sudden change of keywords. You need to either rebuild those packages in a
consistant form, or get some bin packages form someone. Do not mix ~arch with
arch for system packages.
Comment 4 SpanKY gentoo-dev 2002-11-29 11:57:17 UTC
*** Bug 11366 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2002-11-29 11:57:31 UTC
this happens on a fresh stage2 install too ... 
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2002-11-29 14:04:08 UTC
Fresh stage 2 with or without ~arch ?
Comment 7 Jonathan GIll 2002-11-30 02:07:31 UTC
Someone else on the mailing list (gentoo users) had similar problem.  Below is
my post on what I did to work around this problem.  

------------ Start Post to mailing list ---------------
Hi All,

I had the same problem, I did file it as a bug (ID 11333) and was told
its a problem with using ~arch and gcc/glibc.  

What I did to fix it was hack the portage.py code a little and changed
the line it complains on to read 

starttime=long(time.time())

that seemed to fix the problem and all worked well after that (there is
another line in the code that does the same thing, but cant remember
where it is now. just do a search for int(time.time()) within your
editor and change the line to long(time.time()).

As a by the way...   I did an rsync again, re-emerge'd portage and
python and even tried the rescure portage.  None worked until I did the
code hack.

hope this helps.

Jonathan

-------------- End post to mailing list -----------------
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2002-11-30 05:52:47 UTC
It's kinda odd for that to happen...
What is your date set to?

Do this:
python -c 'import time; print time.time()'
Comment 9 Jonathan GIll 2002-12-01 19:24:03 UTC
This is what I get from that command.

jonathan@pixie jonathan $ python -c 'import time; print time.time()'
1038791097.79
jonathan@pixie jonathan $ 

System date is set correctly, ntpdate sync'd daily with ntp servers.
Comment 10 Nicholas Jones (RETIRED) gentoo-dev 2002-12-02 21:06:49 UTC
What version of python do you have?
python -V
Comment 11 Jonathan GIll 2002-12-02 22:00:27 UTC
Version 2.2.2 
Comment 12 Nicholas Jones (RETIRED) gentoo-dev 2002-12-09 06:32:13 UTC
This is _really_ silly, but I fixed it anyway.