Debian Bug report logs - #595826
python-minimal postinst script should specify complete python path

version graph

Package: python-minimal; Maintainer for python-minimal is Matthias Klose <doko@debian.org>; Source for python-minimal is src:python-defaults (PTS, buildd, popcon).

Reported by: Michael Hudson <michael.hudson@canonical.com>

Date: Mon, 6 Sep 2010 22:51:02 UTC

Severity: important

Tags: patch

Found in version 2.6.5-0ubuntu1launchpad1

Fixed in version python-defaults/2.6.6-2

Done: Piotr Ożarowski <piotr@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#595826; Package python-minimal. (Mon, 06 Sep 2010 22:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Hudson <michael.hudson@canonical.com>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (Mon, 06 Sep 2010 22:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michael Hudson <michael.hudson@canonical.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python-minimal postinst script should specify complete python path
Date: Tue, 07 Sep 2010 10:50:05 +1200
[Message part 1 (text/plain, inline)]
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
[preview.diff (text/plain, attachment)]

Reply sent to Piotr Ożarowski <piotr@debian.org>:
You have taken responsibility. (Sun, 12 Sep 2010 17:03:06 GMT) (full text, mbox, link).


Notification sent to Michael Hudson <michael.hudson@canonical.com>:
Bug acknowledged by developer. (Sun, 12 Sep 2010 17:03:06 GMT) (full text, mbox, link).


Message #10 received at 595826-close@bugs.debian.org (full text, mbox, reply):

From: Piotr Ożarowski <piotr@debian.org>
To: 595826-close@bugs.debian.org
Subject: Bug#595826: fixed in python-defaults 2.6.6-2
Date: Sun, 12 Sep 2010 17:02:11 +0000
Source: python-defaults
Source-Version: 2.6.6-2

We believe that the bug you reported is fixed in the latest version of
python-defaults, which is due to be installed in the Debian FTP archive:

idle_2.6.6-2_all.deb
  to main/p/python-defaults/idle_2.6.6-2_all.deb
python-all-dbg_2.6.6-2_all.deb
  to main/p/python-defaults/python-all-dbg_2.6.6-2_all.deb
python-all-dev_2.6.6-2_all.deb
  to main/p/python-defaults/python-all-dev_2.6.6-2_all.deb
python-all_2.6.6-2_all.deb
  to main/p/python-defaults/python-all_2.6.6-2_all.deb
python-dbg_2.6.6-2_all.deb
  to main/p/python-defaults/python-dbg_2.6.6-2_all.deb
python-defaults_2.6.6-2.dsc
  to main/p/python-defaults/python-defaults_2.6.6-2.dsc
python-defaults_2.6.6-2.tar.gz
  to main/p/python-defaults/python-defaults_2.6.6-2.tar.gz
python-dev_2.6.6-2_all.deb
  to main/p/python-defaults/python-dev_2.6.6-2_all.deb
python-doc_2.6.6-2_all.deb
  to main/p/python-defaults/python-doc_2.6.6-2_all.deb
python-examples_2.6.6-2_all.deb
  to main/p/python-defaults/python-examples_2.6.6-2_all.deb
python-minimal_2.6.6-2_all.deb
  to main/p/python-defaults/python-minimal_2.6.6-2_all.deb
python_2.6.6-2_all.deb
  to main/p/python-defaults/python_2.6.6-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 595826@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Piotr Ożarowski <piotr@debian.org> (supplier of updated python-defaults package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


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

Format: 1.8
Date: Sun, 12 Sep 2010 18:41:04 +0200
Source: python-defaults
Binary: python python-minimal python-examples python-dev idle python-doc python-dbg python-all python-all-dev python-all-dbg
Architecture: source all
Version: 2.6.6-2
Distribution: experimental
Urgency: low
Maintainer: Matthias Klose <doko@debian.org>
Changed-By: Piotr Ożarowski <piotr@debian.org>
Description: 
 idle       - IDE for Python using Tkinter (default version)
 python     - interactive high-level object-oriented language (default version)
 python-all - package depending on all supported Python runtime versions
 python-all-dbg - package depending on all supported Python debugging packages
 python-all-dev - package depending on all supported Python development packages
 python-dbg - debug build of the Python Interpreter (version 2.6)
 python-dev - header files and a static library for Python (default)
 python-doc - documentation for the high-level object-oriented language Python
 python-examples - examples for the Python language (default version)
 python-minimal - minimal subset of the Python language (default version)
Closes: 595826
Changes: 
 python-defaults (2.6.6-2) experimental; urgency=low
 .
   [ Piotr Ożarowski ]
   * Add README.derivatives (source package)
   * dh_python2:
     - add dist_fallback file with a list of Python distribution name and
       Debian package name pairs (to be used as a fall back source for
       PyDist feature)
     - if dist_fallback and `dpkg -S` fails to find the right package name,
       fall back to package name recommended by Debian Python Policy (use
       debian/pydist-overrides file to override)
     - disable PyDist feature if dh_pydeb is in debian/rules
   * Use versioned interpreter name rather than "python" only in
     python-minimal.postinst (closes: 595826)
 .
   [ Matthias Klose ]
   * python.mk (py_libdir): Return /usr/lib/python3/dist-packages for 3.x
     versions.
   * python.mk (py_pkgname): New macro to refer the package name depending
     on the python version.
Checksums-Sha1: 
 88761d2126e96edaf1359af979d6ac21a5e5d918 1233 python-defaults_2.6.6-2.dsc
 d194180bd95f8b55423323539d11851e0fcff24c 143368 python-defaults_2.6.6-2.tar.gz
 497916e9c6c83f5b204da9001f9ea44985b9734b 168336 python_2.6.6-2_all.deb
 932d108793e2f8a777c2f203346c0003bd7b2a2f 32394 python-minimal_2.6.6-2_all.deb
 14fc524116ad685374dff2efe063d02ad5e53ed4 854 python-examples_2.6.6-2_all.deb
 aa1fec39166471e60bad3934f0875a4b11839851 914 python-dev_2.6.6-2_all.deb
 1922c35307fa6d3ced8c54baff15c3878f3c8b39 3004 idle_2.6.6-2_all.deb
 5011ca8f4a93b06b170195e84333e3b370c87430 17728 python-doc_2.6.6-2_all.deb
 d69277514ff6bae27f808a0102871ee9526fd01f 1010 python-dbg_2.6.6-2_all.deb
 87a508b3956debc4d229c6a94a036e7f89f20d38 878 python-all_2.6.6-2_all.deb
 c219d2066b5120bc17621d8f8fb1afe930f5ef6f 894 python-all-dev_2.6.6-2_all.deb
 39cc292d99b1886a17cad618924d6930e865d108 904 python-all-dbg_2.6.6-2_all.deb
Checksums-Sha256: 
 c32cdf64245505c944bf2a113aba9d54835dbe578b02b9f7d8a095f473d6aaa3 1233 python-defaults_2.6.6-2.dsc
 5f511618ce620655ad3bc58750a1f809b3dfd74dbf51f40d9db8fa1ea9b6d3b9 143368 python-defaults_2.6.6-2.tar.gz
 0365d405939030f2da3c4c5b58177520266fa4003f110d70cb6b5eaae0791680 168336 python_2.6.6-2_all.deb
 fb708591a53c7c1c25881322cac85584a7d95e7f15be708b39fe1a918b6ab3d9 32394 python-minimal_2.6.6-2_all.deb
 3d555dc7a5311d67e58cc618e505ebdffafbc709b443730f0cd4cc171ba6f6dd 854 python-examples_2.6.6-2_all.deb
 a416791d8ad42434c5e8d0b595183787abfd14dc60d0fea5a9b26f81cb2acbde 914 python-dev_2.6.6-2_all.deb
 36019f2618c2e9741afcefad96a4731cd21a07caf87640057e719be631994602 3004 idle_2.6.6-2_all.deb
 1f70a0a7ccca19b94ae514749208de2c9b39bda4251e4cdbf8b2b349ed2d1706 17728 python-doc_2.6.6-2_all.deb
 03be5f3215430ebf7ca240749998337875cd88dcc65f2038b6131caca3d6efbb 1010 python-dbg_2.6.6-2_all.deb
 e0413a49bfccb52e93e51bf2e8232895de9e088db94b6e62f9bc45cfc50733e3 878 python-all_2.6.6-2_all.deb
 f2662bc3b3b9ff039b597fe6cf60a141319e6c0c0d071aac1abc57171d3a2565 894 python-all-dev_2.6.6-2_all.deb
 fc8fc0c7039111bf569339a7a4048127f4c981cbf052ddcb9abc5074eb4dc143 904 python-all-dbg_2.6.6-2_all.deb
Files: 
 79ac33737a2c4c4db483781fb7fe3725 1233 python optional python-defaults_2.6.6-2.dsc
 cd3d5ea09056a62326b7e484993a6ee0 143368 python optional python-defaults_2.6.6-2.tar.gz
 66aaa7bad0de6a90af86127023973db2 168336 python standard python_2.6.6-2_all.deb
 b4f293d92592d471171acd576eac7371 32394 python standard python-minimal_2.6.6-2_all.deb
 b52d00d4cabdf2a1e1ec6889db9aeb1a 854 python optional python-examples_2.6.6-2_all.deb
 0231652b941f1ca07aeeeb33d038a190 914 python optional python-dev_2.6.6-2_all.deb
 7044f19a7875de69ba131f6e1a606ebd 3004 python optional idle_2.6.6-2_all.deb
 8305c086f0755d94c3a05239a00dbe47 17728 doc optional python-doc_2.6.6-2_all.deb
 7fede0e7d2ad6f227a556bc238e8e752 1010 debug extra python-dbg_2.6.6-2_all.deb
 8bf9cad080a7ebe9c739de6df9e6e849 878 python optional python-all_2.6.6-2_all.deb
 190d648d7c73fdd717412b251dbc2186 894 python optional python-all-dev_2.6.6-2_all.deb
 4d53b88b1db32d4f08caed483325bb9f 904 debug extra python-all-dbg_2.6.6-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyNBgMACgkQB01zfu119ZkSIgCgw5Od2uRACc9lwsE60uFGKHQ1
BAMAnRpfs9rwi/j3/9m7+j/q7ffmXjYa
=AAkW
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 11 Oct 2010 07:33:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 01:42:04 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.