Gentoo Archives: gentoo-user

From: Geralt <usr.gentoo@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] A question about emerge --info
Date: Thu, 30 Oct 2008 10:37:19
Message-Id: fbdd0e50810300337s285f793ar3fc6b513ec85667a@mail.gmail.com
In Reply to: Re: [gentoo-user] A question about emerge --info by Andrey Vul
1 Hi,
2 I don't know if this is clear by now, but apparently the glibc version
3 which is printed is the glibc version used to built python, because
4 >libcname,libcversion = libc_ver(sys.executable)
5 in this line the version is determined of sys.executable which is the
6 python interpreter used to run the script.
7
8 But I'm not sure if libc_ver is working correctly, since platform.py
9 says on my system "with-glibc2.0", but my current version is 2.6.1 and
10 I doubt that my python 2.5 was built with 2.0.
11
12 Some checking:
13 $ ldd $(which python)
14 linux-gate.so.1 => (0xb7efb000)
15 libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0xb7dcf000)
16 libpthread.so.0 => /lib/libpthread.so.0 (0xb7db7000)
17 libdl.so.2 => /lib/libdl.so.2 (0xb7db3000)
18 libutil.so.1 => /lib/libutil.so.1 (0xb7daf000)
19 libm.so.6 => /lib/libm.so.6 (0xb7d86000)
20 libc.so.6 => /lib/libc.so.6 (0xb7c34000)
21 /lib/ld-linux.so.2 (0xb7efc000)
22
23 and
24 $ ls -l /lib/libc.so.6
25 lrwxrwxrwx 1 root root 13 2008-09-28 01:38 /lib/libc.so.6 -> libc-2.6.1.so
26 $ qfile /lib/libc.so.6
27 sys-libs/glibc (/lib/libc.so.6)
28
29 $ eix -s glibc
30 [I] sys-libs/glibc
31 Available versions: (2.2) [P]2.2.5-r10!s [P]2.3.2-r12!s
32 [P]2.3.5-r3!s [P]2.3.6-r4!s [P]2.3.6-r5!s 2.4-r4!s 2.5-r2!s 2.5-r3!s
33 2.5-r4!s **2.5.1!s ~2.6!s 2.6.1!s ~2.7-r2!s ~2.8_p20080602!s
34 {build crosscompile_opts_headers-only debug erandom gd
35 glibc-compat20 glibc-omitfp hardened linuxthreads-tls multilib nls
36 nptl nptlonly pic profile selinux userlocales vanilla}
37 Installed versions: 2.6.1(2.2)!s(01:38:10 AM
38 09/28/2008)(glibc-omitfp nls -crosscompile_opts_headers-only -debug
39 -gd -hardened -multilib -profile -selinux -vanilla)
40 Homepage: http://www.gnu.org/software/libc/libc.html
41 Description: GNU libc6 (also called glibc2) C library
42
43
44 As you can see 2.6.1 is installed and python is using this version of glibc.
45
46 That's why I'm wondering if it's not libc_ver which is buggy.
47
48
49
50
51
52 Geralt.