Everybody please fix bug in your scratchbox installation!

Everybody please fix bug in your scratchbox installation!

Pali Rohár
Karma: 1382
2012-07-19 07:30 UTC
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@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAlAHt5kACgkQi/DJPQPkQ1L5jACfYg12x0/OKzh7Iy7S/3G+wvhQ
lwgAn1y6GlCRQzGwFRDomH+U8Yzv53zH
=kcz9
-----END PGP SIGNATURE-----

  •  Reply

Re: Everybody please fix bug in your scratchbox installation!

Marcin Mielniczuk
Karma: 705
2012-07-19 07:35 UTC
I'm using scratchbox on Linux, and have thumb too. So it's a bug not only
in the virtual image. Or maybe it's "thumb-1".
But autobuilder is using scratchbox too, doesn't it? Are there problems
with some autobuilder built packages?
--
Marcin



2012/7/19 Pali Rohár <pali.rohar@gmail.com>

> 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@gmail.com
>
>

  •  Reply

Re: Everybody please fix bug in your scratchbox installation!

Pali Rohár
Karma: 1382
2012-07-19 07:43 UTC
On Thursday 19 July 2012 09:35:33 Marcin Mielniczuk wrote:
> I'm using scratchbox on Linux, and have thumb too. So it's a
> bug not only in the virtual image. Or maybe it's "thumb-1".
> But autobuilder is using scratchbox too, doesn't it? Are there
> problems with some autobuilder built packages?
> --
> Marcin

If you have thumb in your scratchbox FREMANTLE_ARMEL.environment
then bug is not only in virtual image...

Autobuilder using scratchbox too, but it set DEB_BUILD_OPTIONS
variable before bulding package. So deb packages builded by
autobuilder are not affected by this problem.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAlAHuq8ACgkQi/DJPQPkQ1KznwCglxjBPz2GNDBlJXBjl0PBm9h9
DyUAn0SfXwfyNY05yswJz3qprrQX+YG6
=Bn3b
-----END PGP SIGNATURE-----

  •  Reply

Re: Everybody please fix bug in your scratchbox installation!

Marcin Mielniczuk
Karma: 705
2012-07-19 08:18 UTC
Yes, it's in FREMANTLE_ARMEL. In FREMANTLE_X86, $DEB_BUILD_FLAGS is blank.
It may be why there's a problem with libmeegotouch (segfaults and etc.), as
libmeegotouch is in non-free
--
Marcin



2012/7/19 Pali Rohár <pali.rohar@gmail.com>

> On Thursday 19 July 2012 09:35:33 Marcin Mielniczuk wrote:
> > I'm using scratchbox on Linux, and have thumb too. So it's a
> > bug not only in the virtual image. Or maybe it's "thumb-1".
> > But autobuilder is using scratchbox too, doesn't it? Are there
> > problems with some autobuilder built packages?
> > --
> > Marcin
>
> If you have thumb in your scratchbox FREMANTLE_ARMEL.environment
> then bug is not only in virtual image...
>
> Autobuilder using scratchbox too, but it set DEB_BUILD_OPTIONS
> variable before bulding package. So deb packages builded by
> autobuilder are not affected by this problem.
>
> --
> Pali Rohár
> pali.rohar@gmail.com
>
>

  •  Reply

Re: Everybody please fix bug in your scratchbox installation!

Pali Rohár
Karma: 1382
2012-07-19 08:24 UTC
On Thursday 19 July 2012 10:18:49 Marcin Mielniczuk wrote:
> Yes, it's in FREMANTLE_ARMEL. In FREMANTLE_X86,
> $DEB_BUILD_FLAGS is blank. It may be why there's a problem
> with libmeegotouch (segfaults and etc.), as libmeegotouch is
> in non-free
> --
> Marcin
>

Thumb is for arm processors, not for intel x86. If libmeegotouch
is compiled for fremantle with thumb then this is reason why it
segfaults.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAlAHxCwACgkQi/DJPQPkQ1Ji8wCfeWnsW1/YMV931h4KGE+Utb+u
km8AoJfpPxbDUx8/Huvdx9FdfVaat9xC
=Q/S7
-----END PGP SIGNATURE-----

  •  Reply

Re: Everybody please fix bug in your scratchbox installation!

Paul Hartman

2012-07-19 18:41 UTC
On Thu, Jul 19, 2012 at 2:30 AM, Pali Rohár <pali.rohar@gmail.com> wrote:
> 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.

Thanks, I have 2 instances of SDK VM and both had "thumb" enabled in
the options.
  •  Reply

Re: Everybody please fix bug in your scratchbox installation!

Marcin Mielniczuk
Karma: 705
2012-07-22 08:31 UTC
According to this:
http://forums.internettablettalk.com/showthread.php?t=84829 thumb != thumb2.
Will thumb in DEB_BUILD_OPTIONS enable thumb or thumb2? As I compiled
sqlite3 without changing the variable and works ok.
--
Marcin



2012/7/19 Pali Rohár <pali.rohar@gmail.com>

> On Thursday 19 July 2012 10:18:49 Marcin Mielniczuk wrote:
> > Yes, it's in FREMANTLE_ARMEL. In FREMANTLE_X86,
> > $DEB_BUILD_FLAGS is blank. It may be why there's a problem
> > with libmeegotouch (segfaults and etc.), as libmeegotouch is
> > in non-free
> > --
> > Marcin
> >
>
> Thumb is for arm processors, not for intel x86. If libmeegotouch
> is compiled for fremantle with thumb then this is reason why it
> segfaults.
>
> --
> Pali Rohár
> pali.rohar@gmail.com
>
>

  •  Reply