1 |
On Tue, Dec 9, 2008 at 5:47 PM, Duncan <1i5t5.duncan@×××.net> wrote: |
2 |
|
3 |
> Most of those errors seem to be portage itself choking. I just did an |
4 |
> update here and had a python remerge due to new USE flag (2.5.2-r8, I'm |
5 |
> on ~amd64). If you had a python update or remerge too, that could be |
6 |
> it. Check and see if your python has the expat use flag and whether it's |
7 |
> on or not. If you do and it's off, that /may/ be the problem, as I left |
8 |
> mine on. |
9 |
> |
10 |
> Whether it's python or portage (I suspect one of the two, if it was glibc |
11 |
> you'd almost certainly have far bigger problems), you'll likely not be |
12 |
> able to remerge a good package to fix it, since portage keeps crashing. |
13 |
> If you've been using FEATURES=buildpkg, you should be able to untar an |
14 |
> older package version over top of your system, using basically the below |
15 |
> procedure but using your own package rather than the tarball from the |
16 |
> URL. If not, then use the tarball from the URL listed in the following |
17 |
> document: |
18 |
> |
19 |
> Manually fixing broken portage installations |
20 |
> http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml |
21 |
> |
22 |
> That's for portage itself. If that's not it, try python. If you've been |
23 |
> using FEATURES=buildpkg you should have an older package to use. If not, |
24 |
> the bash part of portage should at least work, so you should be able to |
25 |
> use ebuild.sh to step-by-step thru emerging python, or you can download a |
26 |
> stage tarball, unpack it somewhere, chroot into it, quickpkg python, then |
27 |
> untar that package over your main system using a procedure like that for |
28 |
> portage, above. |
29 |
> |
30 |
|
31 |
Hi Duncan, |
32 |
|
33 |
thanks a lot for this reply! |
34 |
|
35 |
Of course (using Gentoo now for a month or so), I don't have buildpkg |
36 |
in my config. So I used the manual on the URL you provided. It says |
37 |
that one should emerge portage first to get a correct system first. |
38 |
But when I do that, I get an error: |
39 |
|
40 |
martindesktop ~ # emerge portage |
41 |
Calculating dependencies... done! |
42 |
|
43 |
>>> Verifying ebuild manifests |
44 |
|
45 |
>>> Emerging (1 of 1) sys-apps/portage-2.1.4.5 |
46 |
* portage-2.1.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... |
47 |
|
48 |
[ ok ] |
49 |
* portage-2.1.4.5.patch.bz2 RMD160 SHA1 SHA256 size ;-) ... |
50 |
|
51 |
[ ok ] |
52 |
* checking ebuild checksums ;-) ... |
53 |
|
54 |
[ ok ] |
55 |
* checking auxfile checksums ;-) ... |
56 |
|
57 |
[ ok ] |
58 |
* checking miscfile checksums ;-) ... |
59 |
|
60 |
[ ok ] |
61 |
>>> Unpacking source... |
62 |
>>> Unpacking portage-2.1.4.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.4.5/work |
63 |
>>> Unpacking portage-2.1.4.5.patch.bz2 to /var/tmp/portage/sys-apps/portage-2.1.4.5/work |
64 |
* Applying portage-2.1.4.5.patch ... |
65 |
|
66 |
[ ok ] |
67 |
* Setting portage.VERSION to 2.1.4.5 ... |
68 |
|
69 |
[ ok ] |
70 |
>>> Source unpacked. |
71 |
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.4.5/work/portage-2.1.4 ... |
72 |
>>> Source compiled. |
73 |
>>> Test phase [not enabled]: sys-apps/portage-2.1.4.5 |
74 |
|
75 |
>>> Install portage-2.1.4.5 into /var/tmp/portage/sys-apps/portage-2.1.4.5/image/ category sys-apps |
76 |
patching file make.conf |
77 |
>>> Completed installing portage-2.1.4.5 into /var/tmp/portage/sys-apps/portage-2.1.4.5/image/ |
78 |
|
79 |
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment |
80 |
usr/lib64/portage/bin/tbz2tool |
81 |
ecompressdir: bzip2 -9 /usr/share/man |
82 |
|
83 |
>>> Installing sys-apps/portage-2.1.4.5 |
84 |
* If you have an overlay then you should remove **/files/digest-* files |
85 |
* (Manifest1) because they are no longer supported. If earlier versions |
86 |
* of portage will be used to generate manifests for your overlay then you |
87 |
* should add a file named manifest1_obsolete to the root of the repository |
88 |
* in order to disable generation of the Manifest1 digest files. |
89 |
* |
90 |
* For help with using portage please consult the Gentoo Handbook |
91 |
* at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3 |
92 |
* |
93 |
!!! can't process invalid log file: |
94 |
/var/tmp/portage/sys-apps/portage-2.1.4.5/temp/logging/postinst.LOG |
95 |
>>> Auto-cleaning packages... |
96 |
|
97 |
>>> No outdated packages were found on your system. |
98 |
|
99 |
* GNU info directory index is up-to-date. |
100 |
martindesktop ~ # |
101 |
|
102 |
Next, the same issues appear again. So I follow the manual again and |
103 |
instead of 'emerge portage' I first emerged glibc and next python. |
104 |
Both went well. Next I did a full upgrade: |
105 |
|
106 |
- emerge --syn |
107 |
- emerge --update --deep --newuse world |
108 |
- find /etc -iname '._cfg????_*' |
109 |
- emerge --depclean |
110 |
- revdep-rebuild |
111 |
|
112 |
which also went well. Next I emerged portage again.. problem is back again.. |
113 |
|
114 |
martindesktop portage # emerge ktorrent |
115 |
Calculating dependencies \Traceback (most recent call last): |
116 |
File "/usr/bin/emerge", line 6979, in <module> |
117 |
retval = emerge_main() |
118 |
File "/usr/bin/emerge", line 6973, in emerge_main |
119 |
myopts, myaction, myfiles, spinner) |
120 |
File "/usr/bin/emerge", line 6240, in action_build |
121 |
retval, favorites = mydepgraph.select_files(myfiles) |
122 |
File "/usr/bin/emerge", line 2120, in select_files |
123 |
if not self.validate_blockers(): |
124 |
File "/usr/bin/emerge", line 2571, in validate_blockers |
125 |
blocker_cache.flush() |
126 |
File "/usr/bin/emerge", line 1335, in flush |
127 |
cPickle.dump(self._cache_data, f, -1) |
128 |
cPickle.PicklingError: Can't pickle <type 'method-wrapper'>: attribute |
129 |
lookup __builtin__.method-wrapper failed |
130 |
|
131 |
is this a portage issue? Or is there something wrong it depends on? |
132 |
|
133 |
Thanks in advance! |
134 |
|
135 |
Martin |