Package: python-minimal
Version: 2.6.5-0ubuntu1launchpad1
Severity: important
Tags: patch

Hi,

The python-minimal postinst script contains this line:

python -m compileall /usr/share/python/ >/dev/null

My unlucky officemate had python 2.4 installed as /usr/local/bin/python, and as
/usr/local/bin precedes /usr/bin in roots $PATH (this surprised me, fwiw),
python2.4 is used to try to compile the various things using 2.5 and 2.6 syntax
in /usr/share/python with confusing results.

This was encountered on an Ubuntu system during the upgrade from Lucid to
Maverick, but the postinst script is still the same in sid as far as I can
tell.

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

Kernel: Linux 2.6.32-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-minimal depends on:
ii  dpkg                   1.15.5.6ubuntu4.1 Debian package management system
ii  python2.6-minimal      2.6.5-1ubuntu6    A minimal subset of the Python lan

Versions of packages python-minimal recommends:
ii  python          2.6.5-0ubuntu1launchpad1 An interactive high-level object-o

python-minimal suggests no packages.

-- no debconf information
=== modified file 'debian/python-minimal.postinst'
--- debian/python-minimal.postinst      2010-07-11 17:08:19 +0000
+++ debian/python-minimal.postinst      2010-09-06 22:41:03 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 set -e
 
-python -m compileall /usr/share/python/ >/dev/null
+/usr/bin/python -m compileall /usr/share/python/ >/dev/null
 
 #DEBHELPER#

Reply via email to