[Python-modules-team] Bug#601259: FTBFS if only built with Python >=2.6

Christian Kastner debian at kvr.at
Sun Oct 24 22:21:25 UTC 2010


On 10/24/2010 09:59 PM, Luke Faraone wrote:
> On 10/24/2010 03:22 PM, Jakub Wilk wrote:
>> * Luke Faraone <lfaraone at debian.org>, 2010-10-24, 13:55:
>>> When attempting to build this package with pyversions of  2.6-, the
>>> package FTBFS because it expects there to be a "build/lib" directory.
>>> Versions of Python after 2.5.x do not create this directory.
>> AFAIK we haven't removed Python 2.5 from the set of supported versions yet.
> 
> Right, I was unclear whether this would merit "does-not-build" or not.
> My apologies.
> 
>> The patch you committed is incorrect: the package will FTBFS on some
>> architectures or if DEB_* variables were not exported into environment.
> 
> I've added the following:
>     DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
>     DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)

Why use the DEB_* stuff at all? The way I see it, the following should
change to PYTHONPATH should sufficed:

PYTHONPATH=$(shell ls -d $(CURDIR)/build/lib* | head -n 1)

ie, pick the first lib directory found instead of hard-coding the 2.5
lib directory.

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 601259.patch
Type: text/x-diff
Size: 810 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20101025/eecec655/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20101025/eecec655/attachment.pgp>


More information about the Python-modules-team mailing list