The best practice is to always start out with a fresh installation of scratchbox. Setting up a clean environment doesn’t take that long and helps to detect necessary dependencies

$ hfp sb-remove
sudo umount /scratchbox/users/hv/home/hv/hfp
sudo umount /scratchbox/users/hv/home/hv/downloads
sudo /scratchbox/sbin/sbox_ctl stop
Stopping Scratchbox: umount, binfmt_misc.
sudo rm -rf /scratchbox
scratchbox removed

$ hfp sb-install
scratchbox-devkit-qemu-0.12.50-0sb3-i386.tar.gz already exists
scratchbox-devkit-perl-1.0.5-i386.tar.gz already exists
scratchbox-core-1.0.22-i386.tar.gz already exists
scratchbox-libs-1.0.22-i386.tar.gz already exists
scratchbox-toolchain-arm-gcc4.3-uclibc0.9.31-1.0.22-i386.tar.gz already exists
unpack scratchbox-core-1.0.22-i386.tar.gz
unpack scratchbox-libs-1.0.22-i386.tar.gz
unpack scratchbox-devkit-qemu-0.12.50-0sb3-i386.tar.gz
unpack scratchbox-devkit-perl-1.0.5-i386.tar.gz
unpack scratchbox-toolchain-arm-gcc4.3-uclibc0.9.31-1.0.22-i386.tar.gz
sudo /scratchbox/
sudo /scratchbox/sbin/sbox_adduser hv

$ hfp sb-login
mkdir /scratchbox/users/hv/home/hv/hfp
sudo mount -o bind /home/hv/hfp /scratchbox/users/hv/home/hv/hfp
mkdir /scratchbox/users/hv/home/hv/downloads
sudo mount -o bind /home/hv/downloads /scratchbox/users/hv/home/hv/downloads

You dont have active target in scratchbox chroot.
Please create one by running "sb-menu" before continuing

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-NO-TARGET] ~
$ hfp sb-arm
sb-conf st ARM -c arm-gcc4.3-uclibc0.9.31 -d qemu -t qemu-arm-sb
sb-conf in ARM -c -F -e
sb-conf se ARM

[sbox-ARM] ~


Creating one packages often requires the installation or compilation of other packages it depends upon. Therefore, a description of one package often includes the creation of other scratchbox packages too.