Files
compute-runtime/scripts/install-deps.sh
Pratik Raj 62fbdc64ec Some debian package manager tweaks
By default, Ubuntu or Debian based "apt" or "apt-get" system installs
recommended but not suggested packages.

By passing "--no-install-recommends" option, the user lets apt-get know
not to consider recommended packages as a dependency to install.

This results in smaller downloads and installation of packages.

Original pull request #268 was modified to fix dependencies on
Ubuntu 18.04 and newer.

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/268

Change-Id: I5a5de36102c5d3d3a42def30404078c485705b8a
2020-03-17 19:16:50 +01:00

34 lines
705 B
Bash
Executable File

#!/bin/bash
#
# Copyright (C) 2018-2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
wait_apt() {
while fuser -u -v /var/lib/dpkg/lock
do
echo wait
sleep 5
done
}
echo "deb http://ppa.launchpad.net/ocl-dev/intel-opencl/ubuntu xenial main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3086B78CC05B8B1
apt-get -y update
if [ $? -ne 0 ]
then
wait_apt
apt-get -y update
fi
apt-get --no-install-recommends install -y --allow-unauthenticated cmake ninja-build libigc-dev intel-gmmlib-dev
if [ $? -ne 0 ]
then
wait_apt
apt-get --no-install-recommends install -y --allow-unauthenticated cmake ninja-build libigc-dev intel-gmmlib-dev
fi
dpkg -r ccache