maemo.org Bugzilla – Bug 10241
cdbs always uses python from scratchbox
Last modified: 2010-05-24 17:14:53 UTC
You need to log in before you can comment on or make changes to this bug.
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
Created an attachment (id=2730) [details] Proposed fix. Always use versioned python
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