Package: python2.6
Version: 2.6.6-6
Severity: important

n contrast to other Linux distributions like Red Hat/Fedora Python shared 
libraries are not linked against libpython2.6.so. E.g.,
r...@xmdebian:/home/wucloud#  ldd /usr/lib64/python2.6/lib-dynload/datetime.so
        linux-vdso.so.1 =>  (0x00007fff6abff000)
        libm.so.6 => /lib/libm.so.6 (0x00007fccc0fb3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fccc0d97000)
        libc.so.6 => /lib/libc.so.6 (0x00007fccc0a35000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fccc145d000)

This makes it impossible to *embed* Python in other software packages since 
python modules possibly requiring those python libraries will fail to load. In 
this case datetime.so cannot resolve symbols contained in libpython2.6.so.
Of course this has no effect when starting the Python interpreter which has 
libpython2.6.so compiled in.

Configuring Python using "--enable-shared" seems to do the job. But this is for 
some reason not the default in the Debian package.

Thus, to enable embedding python without running into this bug we would either 
need to
 a) compile python with --enable-shared (which makes the libpython
    package superfluous)
 b) compile python with --disable-shared (that's the current default)
    and let libpython replace all python-related so-files which do not
    contain dependencies to libpython with versions which contain these
    dependencies.
    - otherwise the libpython package is broken as we cannot import
      libraries such as datetime from embedded python scripts.

Best,
st

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.12-0.7-xen (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages python2.6 depends on:
ii  libbz2-1.0                1.0.5-6        high-quality block-sorting file co
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libdb4.8                  4.8.30-2       Berkeley v4.8 Database Libraries [
ii  libexpat1                 2.0.1-7        XML parsing C library - runtime li
ii  libncursesw5              5.7+20100313-4 shared libraries for terminal hand
ii  libreadline6              6.1-3          GNU readline and history libraries
ii  libsqlite3-0              3.7.3-1        SQLite 3 shared library
ii  mime-support              3.48-1         MIME files 'mime.types' & 'mailcap
ii  python2.6-minimal         2.6.6-6        A minimal subset of the Python lan

python2.6 recommends no packages.

Versions of packages python2.6 suggests:
ii  binutils                    2.20.1-15    The GNU assembler, linker and bina
ii  python2.6-doc               2.6.6-9.aasc Documentation for the high-level o
pn  python2.6-profiler          <none>       (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to