[maemo-developers] Maemo-Optify & Builder Bots = Broken?

From: Ed Bartosh bartosh at gmail.com
Date: Thu Oct 22 00:03:15 EEST 2009
2009/10/21 Nathan Anderson <nathan at andersonsplace.net>:
> Ed,
>
>        Sure can (and following the chain).
>
> ls -l / | grep opt
>        lrwxrwxrwx    1 root  root      18 Oct  6 22:36 opt ->
> /targets/links/opt
>
> ls -l /targets/links/ | grep opt
>        lrwxrwxrwx  1 maemo 1000 26 Oct 19 16:55 opt ->
> /targets/FREMANTLE_X86/opt
>
I've found the difference!
In your environment /targets/<target>/opt is a directory. In
autobuilder environment it's a symlink:

> ls -l /targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep opt
lrwxrwxrwx   1 builder1 builder1    9 Oct 21 23:50 opt -> /home/opt

And it looks like it becomes symlink after rootstrap unpacking. Look:
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf re -f
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] > ls -l
/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt
drwxrwxr-x  2 1005 1006 4096 Oct 21 23:56 opt
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf in --etc --devkits
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] > ls -l
/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt
drwxrwxr-x   2 builder1 builder1 4096 Oct 21 23:56 opt
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf in --fakeroot
Installing fakeroot version 1.4.2.1...
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] > ls -l
/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt
drwxrwxr-x   2 builder1 builder1 4096 Oct 21 23:56 opt
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf rs /scratchbox/packages/maemo-sdk-rootstrap_5.0_armel.tgz
Unpacking rootstrap...
[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] > ls -l
/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt
lrwxrwxrwx   1 1005 1006    9 Oct 21 23:57 opt -> /home/opt

So, the difference is in rootstraps. Tell me which rootstrap do you
use and I'll compare it with the one autobuilder uses.

-- 
BR,
Ed
More information about the maemo-developers mailing list