1 |
Good Day. I've posted my problem to both the gentoo-user list and to the forums on gentoo.org and while I've found several mentions of this problem, I've yet to find a solution other than the M$ sounding "reinstall." |
2 |
|
3 |
emerge is broken on my system (XFS, 2.4.19-gentoo-r5). It seems to be something with python, but I really don't know enough about gentoo, or really python either, to track it down. |
4 |
|
5 |
emerge rsync WORKS |
6 |
emerge -s [package] WORKS |
7 |
emerge [package] errors out everytime with: |
8 |
|
9 |
ValueError: invalid literal for long(): |
10 |
|
11 |
as in: |
12 |
|
13 |
> emerge portage |
14 |
Calculating dependencies ...done! |
15 |
>>> emerge sys-apps/portage-1.9.13 to / |
16 |
>>> Unpacking source... |
17 |
>>> Source unpacked. |
18 |
gcc -Wall -O2 sandbox.c -o sandbox |
19 |
gcc -Wall -O2 -c -o libsandbox.o libsandbox.c |
20 |
gcc -Wall -O2 libsandbox.o -o libsandbox.so -ldl --shared |
21 |
|
22 |
>>> Install portage-1.9.13 into /var/tmp/portage/portage-1.9.13/image/ category sys-apps |
23 |
running install |
24 |
running build |
25 |
running build_ext |
26 |
building 'missingos' extension |
27 |
creating build |
28 |
creating build/temp.linux-i686-2.2 |
29 |
gcc -DNDEBUG -march=i686 -O3 -pipe -fPIC -I/usr/include/python2.2 -c missingos.c -o build/temp.lin |
30 |
ux-i686-2.2/missingos.o -O2 -mcpu=i686 -pipe |
31 |
creating build/lib.linux-i686-2.2 |
32 |
gcc -shared build/temp.linux-i686-2.2/missingos.o -o build/lib.linux-i686-2.2/missingos.so |
33 |
running install_lib |
34 |
creating /var/tmp/portage/portage-1.9.13/image/usr |
35 |
creating /var/tmp/portage/portage-1.9.13/image/usr/lib |
36 |
creating /var/tmp/portage/portage-1.9.13/image/usr/lib/python2.2 |
37 |
creating /var/tmp/portage/portage-1.9.13/image/usr/lib/python2.2/site-packages |
38 |
copying build/lib.linux-i686-2.2/missingos.so -> /var/tmp/portage/portage-1.9.13/image/usr/lib/pyt |
39 |
hon2.2/site-packages |
40 |
warning: install: modules installed to '/var/tmp/portage/portage-1.9.13/image/usr/lib/python2.2/si |
41 |
te-packages/', which is not in Python's module search path (sys.path) -- you'll have to change the |
42 |
search path yourself |
43 |
Listing /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages ... |
44 |
Compiling /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/output.py ... |
45 |
Compiling /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/portage.py ... |
46 |
Compiling /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/xpak.py ... |
47 |
Listing /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages ... |
48 |
Compiling /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/output.py ... |
49 |
Compiling /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/portage.py ... |
50 |
Compiling /var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/xpak.py ... |
51 |
strip: |
52 |
/var/tmp/portage/portage-1.9.13/image/usr/lib/python2.2/site-packages/missingos.so |
53 |
/var/tmp/portage/portage-1.9.13/image/usr/lib/portage/bin/tbz2tool |
54 |
/var/tmp/portage/portage-1.9.13/image/usr/lib/portage/bin/sandbox |
55 |
/var/tmp/portage/portage-1.9.13/image/lib/libsandbox.so |
56 |
>>> Completed installing into /var/tmp/portage/portage-1.9.13/image/ |
57 |
|
58 |
>>> Merging sys-apps/portage-1.9.13 to / |
59 |
Traceback (most recent call last): |
60 |
File "/usr/bin/emerge", line 1242, in ? |
61 |
mydepgraph.merge(mydepgraph.altlist()) |
62 |
File "/usr/bin/emerge", line 619, in merge |
63 |
retval=portage.doebuild(y,"merge",myroot,edebug) |
64 |
File "/var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/portage.py", line 1 |
65 |
102, in doebuild |
66 |
return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-in |
67 |
fo",myroot,myebuild=settings["EBUILD"]) |
68 |
File "/var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/portage.py", line 1 |
69 |
354, in merge |
70 |
mylink.merge(pkgloc,infloc,myroot,myebuild) |
71 |
File "/var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/portage.py", line 3 |
72 |
180, in merge |
73 |
self.treewalk(mergeroot,myroot,inforoot,myebuild) |
74 |
File "/var/tmp/portage/portage-1.9.13/image//usr/lib/python2.2/site-packages/portage.py", line 2 |
75 |
858, in treewalk |
76 |
packagecounter=long(globalcounterfile.readline()) |
77 |
ValueError: invalid literal for long(): |
78 |
|
79 |
emerge errors out with the same error with anypackage. I'm pretty happy with the way my system is set up right now, but I'm sure that someday I'll want to upgrade or add applications. I don't really want to jump through the hoops of configuring postfix, apache, X, etc. again real soon. |
80 |
|
81 |
Hopefully someone here can point me to a way of saving the system without doing a reinstall. Thanks for your time. |
82 |
|
83 |
-Lang |