View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#464
Originally Posted by Bundyo View Post
Okay, forgive me my autobuilder ignorance, but I can't read this. What will that give me?
Lol, it's an general sbox1 trick

If you have a scratchbox 1 installed with python2.5 from extras, try this to see what I mean:

Code:
which python
Output:
/scratchbox/bin/...

Code:
python
Output:
Python 2.3...

From that output we see, that when you run "python", scratchbox intercepts it and runs its internal 2.3 version of python. We want the Maemo version of python 2.5 to be loaded so if I do:

Code:
export SBOX_REDIRECT_IGNORE=/usr/bin/python ; export PATH=/usr/bin:$PATH
and then do, this time:
Code:
which python
Output:
/usr/bin/python

Code:
python
Output:
Python 2.5

As we can see from that output (faked, but the outcome should be the same ), scratchbox now uses the version of a tool that you installed and does not use its internal version.

My idea is to implement the above in your debian/rules so scratchbox uses the newer version of bison instead of its internal version.

Now after typing that, I'm not even sure if scratchbox provides bison , but the trick is good to know all the same
 

The Following 4 Users Say Thank You to qwerty12 For This Useful Post: