[maemo-developers] Everybody please fix bug in your scratchbox installation!

From: Pali Rohár pali.rohar at gmail.com
Date: Thu Jul 19 10:30:33 EEST 2012
Hello Maemo Community!

Now after long time I found a very very *big* problem in Nokia 
Maemo SDK virtual image which can be downloaded from location:  
http://tablets-dev.nokia.com/maemo-dev-env-downloads.php
file Maemo_Ubuntu_Lucid_Desktop_SDK_Virtual_Image_Final.7z

Problem is in scratchbox and may be in regular scratchbox 
installation on desktop too (not only in virtual image)!

That Virtual image contains *thumb* string in scratchbox shell 
variable DEB_BUILD_OPTIONS which cause that some applications 
will be compiled with thumb instructions.

Thumb is unstable on default Maemo 5 for Nokia N900 and 
applications which are compiled with thumb-2 will crash without 
any reason.

Check if you have problematic scratchbox:

1. Login to scratchbox: run /scratchbox/login
2. print DEB_BUILD_OPTIONS in scratchbox: echo $DEB_BUILD_OPTIONS

If it does *not* show "thumb" your scratchbox is already fixed 
and thumb is disabled. If it *show* thumb, disable it.

Instructions how to disable *thumb* string in scratchbox:

1. Login to scratchbox: run /scratchbox/login
2. Edit file /targets/FREMANTLE_ARMEL.environment
3. Remove "thumb" from that file
4. Save file and *logout* from scratchbox

Note that scratchbox is loading DEB_BUILD_OPTIONS variable at 
startup, so you need to restart scratchbox to take effect. After 
restarting please check again if thumb is really disabled.

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20120719/8402a5d9/attachment.pgp>
More information about the maemo-developers mailing list