Package: debhelper
Version: 9.20130504
Severity: important

I believe that this recent commit breaks it.  With python*-dbg  there is no 
separate 
/usr/lib/$python/distutils/__init__.py

$> ls -l /usr/bin/python2*-dbg /usr/lib/*/distutils/__init__.py      
lrwxrwxrwx 1 root root      13 Feb 28 10:47 /usr/bin/python2-dbg -> 
python2.7-dbg*
-rwxr-xr-x 1 root root 5831299 Jan 26 10:33 /usr/bin/python2.6-dbg*
-rwxr-xr-x 1 root root 6748246 Apr 10 19:27 /usr/bin/python2.7-dbg*
-rw-r--r-- 1 root root     332 Sep 25  2009 
/usr/lib/python2.4/distutils/__init__.py
-rw-r--r-- 1 root root     635 Nov 28  2010 
/usr/lib/python2.5/distutils/__init__.py
-rw-r--r-- 1 root root     616 Jan 26 10:32 
/usr/lib/python2.6/distutils/__init__.py
-rw-r--r-- 1 root root     337 Apr 10 20:53 
/usr/lib/python2.7/distutils/__init__.py
-rw-r--r-- 1 root root     314 Feb 20 09:56 
/usr/lib/python3.2/distutils/__init__.py
-rw-r--r-- 1 root root     314 Apr  6 10:04 
/usr/lib/python3.3/distutils/__init__.py

Detected while trying to build recent package of cython -- _d.so were not
built, and as a resuilt could not be installed.  For your reference -- here is 
a build log:

http://neuro.debian.net/_files/_buildlogs/cython/0.19+git51-g3078752/cython_0.19+git51-g3078752-1_amd64.build

and here is the commit at fault I believe which was followed by
f79ed4ddd81b299fe9b7aab55c0ef01b89989910 which was not of help to resolve it
anyways

commit 00250d8cd20a37be362850d3ed8a652b0768455f
Author: Joey Hess <j...@kitenet.net>
Date:   Mon Aug 27 12:03:50 2012 -0400

    python distutils buildsystem: When checking if a version of python is 
installed, don't trust the presense of the executable, as a python2.X-minimal 
package may provide it while not having distutils installed. Closes: #683557
    
    python hate increasing..

diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm 
b/Debian/Debhelper/Buildsystem/python_distutils.pm
index 4795b7c..81cff3c 100644
--- a/Debian/Debhelper/Buildsystem/python_distutils.pm
+++ b/Debian/Debhelper/Buildsystem/python_distutils.pm
@@ -155,7 +155,7 @@ sub setup_py {
        }
 
        foreach my $python (@python_dbg, @python_requested) {
-           if (-x "/usr/bin/".$python) {
+         if (-f "/usr/lib/$python/distutils/__init__.py") {
                        # To allow backports of debhelper we don't pass
                        # --install-layout=deb to 'setup.py install` for
                        # those Python versions where the option is


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100, 
'stable'), (100, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils    2.22-8
ii  dpkg        1.16.9
ii  dpkg-dev    1.16.9
ii  file        5.11-2
ii  html2text   1.3.2a-15
ii  man-db      2.6.2-1
ii  perl        5.14.2-20
ii  po-debconf  1.0.16+nmu2

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  0.61

-- 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