* [gentoo-dev] Serious portage problem...
@ 2002-06-24 19:47 Burton Samograd
2002-06-24 20:16 ` Christophe Vanfleteren
2002-06-24 21:15 ` Ryan Phillips
0 siblings, 2 replies; 6+ messages in thread
From: Burton Samograd @ 2002-06-24 19:47 UTC (permalink / raw
To: gentoo-dev
I seem to be having some wierd problems with portage. Here is an
example when I try to re-emerge portage:
----------------------------------------------------------
root@kruhft:/var/db/pkg/dev-libs# emerge portage
Calculating dependencies ...done!
>>> emerge sys-apps/portage-2.0.5 to /
>>> Unpacking source...
>>> Source unpacked.
gcc -O2 -march=i486 -pipe sandbox.c -o sandbox
gcc -O2 -march=i486 -pipe -c -o libsandbox.o libsandbox.c
gcc -O2 -march=i486 -pipe libsandbox.o -o libsandbox.so -ldl --shared
>>> Install portage-2.0.5 into /var/tmp/portage/portage-2.0.5/image/
category sys-apps
running install
running build
running build_ext
building 'missingos' extension
creating build
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -march=i686 -mcpu=i686 -O3 -pipe -fforce-addr
-frerun-cse-after-loop -frerun-loop-opt -malign-functions=4
-funroll-loops -fomit-frame-pointer -fexpensive-optimizations
-fPIC -I/usr/include/python2.2 -c missingos.c -o
build/temp.linux-i686-2.2/missingos.o -march=i686 -mcpu=i686 -O3
-pipe -fforce-addr -frerun-cse-after-loop -frerun-loop-opt
-malign-functions=4 -funroll-loops -fomit-frame-pointer
-fexpensive-optimizations
creating build/lib.linux-i686-2.2
gcc -shared build/temp.linux-i686-2.2/missingos.o -o
build/lib.linux-i686-2.2/missingos.so
running install_lib
creating /var/tmp/portage/portage-2.0.5/image/usr
creating /var/tmp/portage/portage-2.0.5/image/usr/lib
creating /var/tmp/portage/portage-2.0.5/image/usr/lib/python2.2
creating
/var/tmp/portage/portage-2.0.5/image/usr/lib/python2.2/site-packages
copying build/lib.linux-i686-2.2/missingos.so ->
/var/tmp/portage/portage-2.0.5/image/usr/lib/python2.2/site-packages
warning: install: modules installed to
'/var/tmp/portage/portage-2.0.5/image/usr/lib/python2.2/site-packages/',
which is not in Python's module search path (sys.path) -- you'll
have to change the search path yourself
strip:
/var/tmp/portage/portage-2.0.5/image/usr/lib/python2.2/site-packages/missingos.so/var/tmp/portage/portage-2.0.5/image/usr/lib/portage/bin/tbz2tool
/var/tmp/portage/portage-2.0.5/image/usr/lib/portage/bin/sandbox
/var/tmp/portage/portage-2.0.5/image/lib/libsandbox.so
>>> Completed installing into /var/tmp/portage/portage-2.0.5/image/
>>> Merging sys-apps/portage-2.0.5 to /
Traceback (most recent call last):
File "/usr/bin/emerge", line 1233, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 610, in merge
retval=portage.doebuild(y,"merge",myroot,edebug)
File "/usr/lib/python2.2/site-packages/portage.py", line 1212, 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 1436, in
merge
mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3340, in
merge
self.treewalk(mergeroot,myroot,inforoot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3016, in
treewalk
packagecounter=long(globalcounterfile.readline())
ValueError: invalid literal for long():
---------------------------------------------------------
Basically emerge has become useless. Anybody have this problem
before, or is there a way to reinstall just portage from a package if
it's screwed up like this?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Serious portage problem...
2002-06-24 19:47 [gentoo-dev] Serious portage problem Burton Samograd
@ 2002-06-24 20:16 ` Christophe Vanfleteren
2002-06-24 21:03 ` Burton Samograd
2002-06-24 21:15 ` Ryan Phillips
1 sibling, 1 reply; 6+ messages in thread
From: Christophe Vanfleteren @ 2002-06-24 20:16 UTC (permalink / raw
To: gentoo-dev
On Monday 24 June 2002 21:47, Burton Samograd wrote:
> I seem to be having some wierd problems with portage. Here is an
> example when I try to re-emerge portage:
>
<--lots of errors -->
Check /usr/portage/sys-apps/portage/files/README.RESCUE, you can find
instructions on how to restore portage.
Christophe Vanfleteren
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Serious portage problem...
2002-06-24 20:16 ` Christophe Vanfleteren
@ 2002-06-24 21:03 ` Burton Samograd
0 siblings, 0 replies; 6+ messages in thread
From: Burton Samograd @ 2002-06-24 21:03 UTC (permalink / raw
To: gentoo-dev
I tried that but it sill seems to come up with the same error :-/
Here's a recap:
Traceback (most recent call last):
File "/usr/bin/emerge", line 1314, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 590, in merge
retval=portage.doebuild(y,"merge",myroot,edebug)
File "/usr/lib/python2.2/site-packages/portage.py", line 1007, 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 1262, in
merge
mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3000, in
merge
self.treewalk(mergeroot,myroot,inforoot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 2714, in
treewalk
packagecounter=long(globalcounterfile.readline())
ValueError: invalid literal for long():
Looks like something about a "globalcounterfile" object not being
present..i'm not much of a python wizard so i'm not really sure. Any
other suggestions?
On Mon, Jun 24, 2002 at 10:16:06PM +0200, Christophe Vanfleteren wrote:
> On Monday 24 June 2002 21:47, Burton Samograd wrote:
> > I seem to be having some wierd problems with portage. Here is an
> > example when I try to re-emerge portage:
> >
> <--lots of errors -->
>
> Check /usr/portage/sys-apps/portage/files/README.RESCUE, you can find
> instructions on how to restore portage.
>
> Christophe Vanfleteren
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Serious portage problem...
2002-06-24 19:47 [gentoo-dev] Serious portage problem Burton Samograd
2002-06-24 20:16 ` Christophe Vanfleteren
@ 2002-06-24 21:15 ` Ryan Phillips
2002-06-24 21:46 ` Burton Samograd
1 sibling, 1 reply; 6+ messages in thread
From: Ryan Phillips @ 2002-06-24 21:15 UTC (permalink / raw
To: Burton Samograd, gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
* Burton Samograd <kruhft@shaw.ca> [2002-06-24 13:00]:
> ValueError: invalid literal for long():
I'm going out on a limb here...
Check /var/cache/edb/counter... Is there an L at the end of
the number? If there isn't add one, if there is delete it.
Maybe that will help.
Which platform are you on? PPC/x86
Regards,
Ryan
[-- Attachment #2: Type: application/pgp-signature, Size: 481 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Serious portage problem...
2002-06-24 21:15 ` Ryan Phillips
@ 2002-06-24 21:46 ` Burton Samograd
2002-06-24 21:54 ` Lars Pechan
0 siblings, 1 reply; 6+ messages in thread
From: Burton Samograd @ 2002-06-24 21:46 UTC (permalink / raw
To: gentoo-dev; +Cc: Ryan Phillips, Burton Samograd
I checked that file and it seemed to be empty (except for some binary
data):
--- contents of counter ---
^@^@^@
----------------------------
i'm on x86 for the record. i'm thinking that just setting that to
zero would fix the problem but i'll wait until someone with more
portage knowledge suggests it first :)
On Mon, Jun 24, 2002 at 02:15:47PM -0700, Ryan Phillips wrote:
> * Burton Samograd <kruhft@shaw.ca> [2002-06-24 13:00]:
> > ValueError: invalid literal for long():
>
> I'm going out on a limb here...
> Check /var/cache/edb/counter... Is there an L at the end of
> the number? If there isn't add one, if there is delete it.
>
> Maybe that will help.
>
> Which platform are you on? PPC/x86
>
>
> Regards,
> Ryan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Serious portage problem...
2002-06-24 21:46 ` Burton Samograd
@ 2002-06-24 21:54 ` Lars Pechan
0 siblings, 0 replies; 6+ messages in thread
From: Lars Pechan @ 2002-06-24 21:54 UTC (permalink / raw
To: gentoo-dev
See http://bugs.gentoo.org/show_bug.cgi?id=1829
It mentions losing the counterfile as the result of a power outage but the
problem is the same regardless.
Also, if you search the archives I'm quite sure someone has posted a script
re-establishing the counterfile with a correct value.
HTH,
/Lasse
On Tue, 25 Jun 2002 09:46, Burton Samograd wrote:
> I checked that file and it seemed to be empty (except for some binary
> data):
>
> --- contents of counter ---
>
> ^@^@^@
>
> ----------------------------
>
> i'm on x86 for the record. i'm thinking that just setting that to
> zero would fix the problem but i'll wait until someone with more
> portage knowledge suggests it first :)
>
> On Mon, Jun 24, 2002 at 02:15:47PM -0700, Ryan Phillips wrote:
> > * Burton Samograd <kruhft@shaw.ca> [2002-06-24 13:00]:
> > > ValueError: invalid literal for long():
> >
> > I'm going out on a limb here...
> > Check /var/cache/edb/counter... Is there an L at the end of
> > the number? If there isn't add one, if there is delete it.
> >
> > Maybe that will help.
> >
> > Which platform are you on? PPC/x86
> >
> >
> > Regards,
> > Ryan
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-06-24 21:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24 19:47 [gentoo-dev] Serious portage problem Burton Samograd
2002-06-24 20:16 ` Christophe Vanfleteren
2002-06-24 21:03 ` Burton Samograd
2002-06-24 21:15 ` Ryan Phillips
2002-06-24 21:46 ` Burton Samograd
2002-06-24 21:54 ` Lars Pechan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox