From d13881915425ef84c2d8b55cbd5944c3c16cdec2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 26 Jul 2016 21:03:07 +0100 Subject: [PATCH] Fix broken chroot --- src/freedombone-app-tox | 74 ++++++++++++++++++++++++++++++----------- 1 file changed, 55 insertions(+), 19 deletions(-) diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 4cdecbff..67b9c915 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -369,15 +369,19 @@ function mesh_tox_node { exit 16865 fi - mesh_tox_node_prefix='' if [ $rootdir ]; then - mesh_tox_node_prefix="chroot \"$rootdir\"" + chroot ${rootdir} apt-get -y install build-essential libtool autotools-dev + chroot ${rootdir} apt-get -y install automake checkinstall check git yasm + chroot ${rootdir} apt-get -y install libsodium13 libsodium-dev libcap2-bin + chroot ${rootdir} apt-get -y install libconfig9 libconfig-dev autoconf + chroot ${rootdir} apt-get -y install libopus-dev libvpx-dev + else + apt-get -y install build-essential libtool autotools-dev + apt-get -y install automake checkinstall check git yasm + apt-get -y install libsodium13 libsodium-dev libcap2-bin + apt-get -y install libconfig9 libconfig-dev autoconf + apt-get -y install libopus-dev libvpx-dev fi - $mesh_tox_node_prefix apt-get -y install build-essential libtool autotools-dev - $mesh_tox_node_prefix apt-get -y install automake checkinstall check git yasm - $mesh_tox_node_prefix apt-get -y install libsodium13 libsodium-dev libcap2-bin - $mesh_tox_node_prefix apt-get -y install libconfig9 libconfig-dev autoconf - $mesh_tox_node_prefix apt-get -y install libopus-dev libvpx-dev if [ ! -d ${rootdir}${INSTALL_DIR} ]; then mkdir -p ${rootdir}${INSTALL_DIR} @@ -389,18 +393,32 @@ function mesh_tox_node { cd ${rootdir}$INSTALL_DIR/toxcore git checkout $TOXCORE_COMMIT -b $TOXCORE_COMMIT - $mesh_tox_node_prefix /bin/bash -x <