1 |
On 26-08-2008 19:27:39 +1200, Derek Harland wrote: |
2 |
> I've just updated portage and have found the following bug in portage: |
3 |
|
4 |
I've gotta run for a plane, so won't be able to fix it instantly. |
5 |
Please do file a bug on this issue, assigned to Gentoo/Alt -> Prefix. |
6 |
|
7 |
Thanks! |
8 |
|
9 |
|
10 |
> emerge -u gettext |
11 |
> |
12 |
> >>> Installing sys-devel/gettext-0.17 |
13 |
> Traceback (most recent call last): |
14 |
> File "/Volumes/MacData/Users/derek/gentoo/usr/bin/emerge", line 20, in |
15 |
> <module> |
16 |
> retval = _emerge.emerge_main() |
17 |
> ... |
18 |
> File "/Volumes/MacData/Users/derek/gentoo/usr/lib/portage/pym/ |
19 |
> portage/dbapi/vartree.py", line 2965, in _preserve_libs |
20 |
> if linkmap.isMasterLink(lib): |
21 |
> File "/Volumes/MacData/Users/derek/gentoo/usr/lib/portage/pym/ |
22 |
> portage/dbapi/vartree.py", line 898, in isMasterLink |
23 |
> if obj_key not in self._obj_properties: |
24 |
> NameError: global name 'obj_key' is not defined |
25 |
> |
26 |
> Theres clearly a bug in this method, it seems to be missing a line to |
27 |
> compute obj_key |
28 |
> |
29 |
> def isMasterLink(self, obj): |
30 |
> """ |
31 |
> Determine whether an object is a master link. |
32 |
> |
33 |
> @param obj: absolute path to an object |
34 |
> @type obj: string (example: '/usr/bin/foo') |
35 |
> @rtype: Boolean |
36 |
> @return: |
37 |
> 1. True if obj is a master link |
38 |
> 2. False if obj is not a master link |
39 |
> |
40 |
> """ |
41 |
> basename = os.path.basename(obj) |
42 |
> if obj_key not in self._obj_properties: |
43 |
> raise KeyError("%s (%s) not in object list" % (obj_key, obj)) |
44 |
> install_name = self._obj_properties[obj_key][1] |
45 |
> return (len(basename) < len(os.path.basename(install_name))) |
46 |
> |
47 |
> It should probably have the following added |
48 |
> |
49 |
> obj_key = self._ObjectKey(obj) |
50 |
> |
51 |
> (Note I'm very new to gentoo in all forms and no nothing about portage |
52 |
> itself ... should I be filing this on gentoos bug tracker?) |
53 |
> |
54 |
> Here is my emerge --info |
55 |
> |
56 |
> $ emerge --info |
57 |
> Portage 2.2.00.11472-prefix (default-prefix/darwin/macos/10.4/x86, |
58 |
> gcc-4.0.1, unavailable, 8.11.1 i386) |
59 |
> ================================================================= |
60 |
> System uname: Darwin-8.11.1-i386-32bit |
61 |
> Timestamp of tree: Tue, 26 Aug 2008 06:41:29 +0000 |
62 |
> distcc 2.18.3-Apple.1 powerpc-apple-darwin8.0 (protocols 1 and 2) |
63 |
> (default port 3632) [disabled] |
64 |
> app-shells/bash: 3.2_p39 |
65 |
> dev-lang/python: 2.4.4-r13, 2.5.2-r5 |
66 |
> sys-devel/autoconf: 2.61-r2 |
67 |
> sys-devel/automake: 1.10.1-r1 |
68 |
> sys-devel/gcc-config: 1.4.0-r04.3 |
69 |
> sys-devel/libtool: 1.5.26 |
70 |
> |
71 |
> Derek. |
72 |
> |
73 |
> |
74 |
|
75 |
-- |
76 |
Fabian Groffen |
77 |
Gentoo on a different level |