-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: python2.5-minimal
Version: 2.5.2-2
Severity: normal

python2.5-minimal contains /usr/bin/python2.5 but does not provide a
normal Python 2.5 environment. This is likely to cause anything that
automatically detects the "best" version of Python to behave strangely.

python2.4-minimal and python-minimal have an equivalent bug.

A possible fix would be to move the executable to, for instance,
/usr/lib/python2.5/python, and have the full python2.5 package provide a
symlink /usr/bin/python2.5 -> /usr/lib/python2.5/python.

Packages using the minimal variant of Python could either use this path
directly (all the rdepends appear to be very Debian-specific, apart from
gramps which is probably a mistake in the dependencies), or rely on
new symlinks like /usr/bin/python2.5-minimal -> /usr/lib/python2.5/python in
the python*-minimal packages.

For a concrete example of the problems this can cause, get
telepathy-sofiasip 0.5.6~pre20080402-0 (an upstream prerelease, with the
same packaging as the current sid version) from experimental, and compile
it in a sid chroot where there are initially no Python-related packages,
as follows:

$ apt-get build-dep telepathy-sofiasip
$ apt-get install python2.5-minimal
$ dpkg-buildpackage -us -uc
[the build fails]
$ apt-get remove python2.5-minimal
$ dpkg-buildpackage -us -uc
[the build succeeds]
$ apt-get install python2.5-minimal
$ dpkg-buildpackage -us -uc
[the build fails again]

The failures look like this:

(sid)[EMAIL PROTECTED]:~/tmp$ cd telepathy-sofiasip-0.5.6~pre20080402/
(sid)[EMAIL PROTECTED]:~/tmp/telepathy-sofiasip-0.5.6~pre20080402$ debuild -us 
-uc
 fakeroot debian/rules clean
test -x debian/rules
dh_testroot
[... some more build output ...]
/bin/mkdir -p _gen
xsltproc --nonet --novalid --xinclude ../tools/identity.xsl \
                all.xml > _gen/all.xml
/bin/mkdir -p _gen
xsltproc --nonet --novalid --xinclude ../tools/identity.xsl \
                channel.xml > _gen/channel.xml
python2.5 ../tools/glib-signals-marshal-gen.py _gen/all.xml > 
_gen/signals-marshal.list
Traceback (most recent call last):
  File "../tools/glib-signals-marshal-gen.py", line 4, in <module>
    import xml.dom.minidom
ImportError: No module named xml.dom.minidom
make[3]: *** [_gen/signals-marshal.list] Error 1
make[3]: Leaving directory 
`/home/smcv/tmp/telepathy-sofiasip-0.5.6~pre20080402/tpsip-extensions'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/smcv/tmp/telepathy-sofiasip-0.5.6~pre20080402'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/smcv/tmp/telepathy-sofiasip-0.5.6~pre20080402'
make: *** [debian/stamp-makefile-build] Error 2
debuild: fatal error at line 1264:
debian/rules build failed

and result from the configure script detecting the "best" installed version of
Python (based on the existence or not of python2.5, python2.4, python2.3 or
python on $PATH) and using that for the build, on the assumption that it is
actually a full version of Python.

Regards,
    Simon

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python2.5-minimal depends on:
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

python2.5-minimal recommends no packages.

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iD8DBQFH9CI9WSc8zVUw7HYRAlr+AJsGfq2ZHhKgSvC6H4Uyq7DwebSsggCg2nNj
BgikvDN8Q3rtoJ9IfG3kkMQ=
=y+38
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to