Commit 28bc92b9 authored by Brendan Long's avatar Brendan Long

Install Ubuntu dependencies using rdepends instead of apt-get buil-dep,...

Install Ubuntu dependencies using rdepends instead of apt-get buil-dep, because build-dep is failing on Ubuntu 12.04.
parent 5a7bd298
......@@ -139,20 +139,24 @@ if $INSTALL_DEPS ; then
done
if [ "$OS" == "Ubuntu" ]; then
if ! hash apt-rdepends ; then
sudo apt-get -y install apt-rdepends
fi
# Work around an issue where Ubuntu 13.04 and 13.10 try to install the
# nVidia drivers for OpenCV
depends=$(apt-get -s build-dep $packages | grep Inst | grep -v nvidia | grep -v opencv | cut -d ' ' -f 2 | paste -s -d ' ')
depends=$(apt-rdepends -b --follow=DEPENDS $packages | grep Build-Depends | grep -v nvidia | grep -v opencv | cut -d ' ' -f 4 | paste -s -d ' ')
if [[ -n "$depends" ]] ; then
echo "Installing build dependencies for$packages"
sudo apt-get -y install "$depends"
echo 'Run with --no-deps to skip this step (you need to run this step at least once!)'
sudo apt-get -y install $depends
fi
elif [ "$OS" == "Fedora" ]; then
echo "Installing build dependencies for$packages"
echo 'Run with --no-deps to skip this step (you need to run this step at least once!)'
sudo yum-builddep -y -q $packages
fi
fi
# Get the name of this gst checkout -- git for ~/gst/git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment