[Debian-med-packaging] Bug#571491: Bug#571491: gdcm: FTBFS with Python 2.6 as default

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Feb 26 09:04:30 UTC 2010


Dear debian-python,

  I am trying to solve the following issue (*). Basically Python.h is
not found.
  In order to reproduce it, I tried changing the default python
version. Here is where I got to.

I read:
http://codeghar.wordpress.com/2009/01/27/update-alternatives-in-debian/
http://www.linuxquestions.org/questions/debian-26/change-default-python-version-605397/

So I blindly followed this instruction and I have now:
[I have a sid/chroot where I do all my tweakings.]

I changed default-version from python2.5 to python2.6

$ cat /usr/share/python/debian_defaults
[DEFAULT]
# the default python version
default-version = python2.6

# all supported python versions
supported-versions = python2.5, python2.6

# formerly supported python versions
old-versions = python2.3, python2.4

# unsupported versions, including older versions
unsupported-versions = python2.3, python2.4


As reported by pyversions -d I was doing something wrong:

$ /usr/bin/pyversions -d
pyversions: /usr/bin/python does not match the python default version.
It must be reset to point to python2.6

Ok then I did:

$  update-alternatives --install /usr/bin/python python /usr/bin/python2.5 10
$  update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20
$  update-alternatives --config python

All good :

$ ls -al /etc/alternatives/python
lrwxrwxrwx 1 root root 18 Feb 26 09:01 /etc/alternatives/python ->
/usr/bin/python2.6
$ ls -al /usr/bin/python
lrwxrwxrwx 1 root root 24 Feb 26 09:01 /usr/bin/python ->
/etc/alternatives/python

Well still no luck:

$ /usr/bin/pyversions -d
pyversions: /usr/bin/python does not match the python default version.
It must be reset to point to python2.6


Could someone please let me know how I can change the default python
default version, or at least try to reproduce bug #571491.

Thanks,

Ps: Please note that gdcm Build-Dep on python-dev:
http://svn.debian.org/wsvn/debian-med/trunk/packages/gdcm/trunk/debian/control

PPs: as a side note this is not related to gdcm at all, but instead
vtk package. So I am CCing the vtk-guru too


(*)
On Thu, Feb 25, 2010 at 7:35 PM, Jakub Wilk <jwilk at debian.org> wrote:
> Source: gdcm
> Version: 2.0.14-4
> Severity: important
> User: debian-python at lists.debian.org
> Usertags: python2.6
>
> Hello,
>
> When rebuilt in an environment with Python 2.6 as the default version, your
> package failed to build from source. Here are the relevant parts of the
> build log:
>
> | make[3]: Entering directory
> `/build/user-gdcm_2.0.14-4-amd64-ewBrfR/gdcm-2.0.14/debian/build-python2.6'
> | [ 90%] [ 90%] [ 90%] Building CXX object
> Utilities/VTK/CMakeFiles/vtkgdcmPythonD.dir/vtkGDCMTestingPython.cxx.o
> | Building CXX object
> Utilities/VTK/CMakeFiles/vtkgdcmJava.dir/vtkGDCMTestingJava.cxx.o
> | In file included from
> /build/user-gdcm_2.0.14-4-amd64-ewBrfR/gdcm-2.0.14/debian/build-python2.6/Utilities/VTK/vtkGDCMTestingPython.cxx:5:
> | /usr/include/vtk-5.4/vtkPython.h:46:22: Building CXX object
> Utilities/VTK/CMakeFiles/vtkgdcmJava.dir/vtkGDCMImageReaderJava.cxx.o
> | error: Python.h: No such file or directory
> | Building CXX object
> Utilities/VTK/CMakeFiles/vtkgdcmJava.dir/vtkGDCMImageWriterJava.cxx.o
> | In file included from
> /build/user-gdcm_2.0.14-4-amd64-ewBrfR/gdcm-2.0.14/debian/build-python2.6/Utilities/VTK/vtkGDCMTestingPython.cxx:8:
> | /usr/include/vtk-5.4/vtkPythonUtil.h:36: error: 'PyObject_HEAD' does not
> name a type
> | /usr/include/vtk-5.4/vtkPythonUtil.h:39: error: ISO C++ forbids
> declaration of 'PyObject' with no type
> | /usr/include/vtk-5.4/vtkPythonUtil.h:39: error: expected ';' before '*'
> token
> | /usr/include/vtk-5.4/vtkPythonUtil.h:40: error: ISO C++ forbids
> declaration of 'PyObject' with no type
>
> If you need help with fixing this bug, don't hesitate to ask on
> #debian-python or debian-python at lists.debian.org.
>
> --
> Jakub Wilk
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIcBAEBCAAGBQJLhsL8AAoJEC1Os6YBVHX161gQANBIk50l09TM/AGahAFPYKmo
> 2zSkXJ82THr81opbZrazEJ7xuj42pSqfmaJjR9Ure3Ka44iVKm0lbOI/Z7gPXI/g
> 1FYb/WBBOaGkLCO7QYPdw/HdSC/uQnLXxEfV+Q0q8+ynxpIKRFl865jqAJ52wXtU
> MUHL3gYc4QRq7woZ7hXmqhpDfZmGKUHp6L/PnO7Wq1RjPD+TZX7ZaHqJBnM2OKd4
> dB4OaR268rKaZY6NoRQtXPgs1h64StSmwg0eCEAzkJSz9paNIgH9i2BHfI0lZIA+
> QU25GgbfClCpOC/LtmpAE93CQWaAXtcxaMOfjgWQdMe6MPfrcdQHaDuvopA6zPb+
> tamDB3qAuA5N+kGq5PeKd7vCZmStmfSHjHSKm+kA4EoPyV1R7ORmQ5+46FE3mwT/
> rA1IOGSX+W1ElJ+SLZ/yxbtP/Cjl8JVuxudKu4Pl3SxouJqGYp6NFnOcQlgHOHkM
> wsHACwRtHKZQjxtXCBm7F+K6J6myAYakQy3eE7Eu4zpQ7RLJpVzqhuXR9PiPiyNn
> xDeVAMSZTZP07QrcZ7QeXkXxuEdqPg99SOlMS6WbscqjlmCYjWKQPBXCxAaJx3qS
> FLP+TfEvLdht6S5wXiCmNrRsrVomSWtz5xAWxd8+Fa1TNtv3vpkIVfXqyD9bDvmZ
> XIN+tXA+rjq+fd3MV8/f
> =5MqJ
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med-packaging at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-med-packaging
>



-- 
Mathieu





More information about the Debian-med-packaging mailing list