[maemo-developers] Problem after scratchbox installation

From: Tilman Vogel tilman.vogel at web.de
Date: Mon Oct 22 21:56:33 EEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mathias Uebelacker schrieb:
> i edited my sources.list and get an Could not resolve
> 'repository.maemo.org <http://repository.maemo.org>' error. Any hints?

Probably your out-of-scratchbox /etc/resolv.conf changed. Copy it to
/scratchbox/etc/. Or update your /scratchbox/sbin/sbox_ctl such that the
start_sbox function is:

start_sbox()
{
        echo -n "Starting Scratchbox: "
        $SBOX_DIR/sbin/register_misc_runner && echo -n "binfmt_misc, "
        $SBOX_DIR/sbin/sbox_mount_all       && echo -n "mount."
        cp /etc/resolv.conf $SBOX_DIR/etc/  && echo -n " resolv.conf."
        echo
}

While you're at it: some programs get confused and use /etc/resolv.conf
inside scratchbox which is again different from
/scratchbox/etc/resolv.conf. So I recently had to do

rm /etc/resolv.conf
ln -s /scratchbox/etc/resolv.conf /etc/resolv.conf

_inside_ scratchbox (you actually had to do this for every target).

Regards,

Tilman

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHHPJh9ZPu6Yae8lkRAqeoAJ4tjsqhxlkzJ04NYM2QDjrTbfzcrQCgqBeS
U1fJ5k4P4LuxsloNi/72Msk=
=d7uN
-----END PGP SIGNATURE-----

More information about the maemo-developers mailing list