Bug 10241 - cdbs always uses python from scratchbox
: cdbs always uses python from scratchbox
Status: RESOLVED INVALID
Product: Development platform
SDK
: 5.0-final
: All Maemo
: Unspecified normal (vote)
: ---
Assigned To: Marcell Lengyel
: sdk-bugs
:
:
:
:
  Show dependency tree
 
Reported: 2010-05-22 17:49 UTC by Lauro Moura
Modified: 2010-05-24 17:14 UTC (History)
0 users (show)

See Also:


Attachments
Proposed fix. Always use versioned python (640 bytes, patch)
2010-05-22 17:55 UTC, Lauro Moura
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description Lauro Moura (reporter) 2010-05-22 17:49:38 UTC
SOFTWARE VERSION:
Using python 2.5.4 from extras and cdbs 0.4.52-maemo2 from fremantle/free.

EXACT STEPS LEADING TO PROBLEM: 
1. Create a debian package that uses cdbs (>= 0.4.50) python-distutils.mk class
and python2.5 from extras.
2. Try to compile on scratchbox

EXPECTED OUTCOME (in scratchbox):
cdbs should call "python2.5 setup.py ..." during the build.

ACTUAL OUTCOME (correct on desktop):
cdbs uses the default python executable, which is provided by scratchbox
(2.3.4).

REPRODUCIBILITY:
always

OTHER COMMENTS:

This happens due to this[1] debian change: "cdbs should use the unversioned
interpreter for the default python version", introduced in version 0.4.50.
While ok for most systems, it breaks development with python and cdbs on
scratchbox.

fremantle/sdk/free cdbs 0.4.48 does not have this change and builds correctly.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377964
Comment 1 Lauro Moura (reporter) 2010-05-22 17:55:46 UTC
Created an attachment (id=2730) [details]
Proposed fix. Always use versioned python
Comment 2 Lauro Moura (reporter) 2010-05-24 17:14:53 UTC
Marking as invalid. To fix this without touching cdbs, just use
SBOX_REDIRECT_IGNORE in debian/rules:

# workaround to avoid calling Scratchbox python2.3
PATH := /usr/bin:$(PATH)
export PATH
SBOX_REDIRECT_IGNORE = /usr/bin/python
export SBOX_REDIRECT_IGNORE