Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: build/install-build-deps.sh

Issue 660893002: [Telemetry] Implement automatic installation of optional openCV dependecy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/platform/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -e 1 #!/bin/bash -e
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to install everything needed to build chromium (well, ideally, anyway) 7 # Script to install everything needed to build chromium (well, ideally, anyway)
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 nacl_list="g++-mingw-w64-i686 lib32z1-dev 148 nacl_list="g++-mingw-w64-i686 lib32z1-dev
149 libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386 149 libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386
150 libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386 150 libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386
151 libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev 151 libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev
152 libnss3:i386 libpango1.0-0:i386 152 libnss3:i386 libpango1.0-0:i386
153 libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool 153 libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool
154 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 154 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386
155 libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb 155 libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb
156 ${naclports_list}" 156 ${naclports_list}"
157 157
158 # Packages needed for telemetry only
159 telemetry_list="python-opencv"
tonyg 2014/10/23 16:56:34 Please land this change first. I believe we'll hav
160
158 # Find the proper version of libgbm-dev. We can't just install libgbm-dev as 161 # Find the proper version of libgbm-dev. We can't just install libgbm-dev as
159 # it depends on mesa, and only one version of mesa can exists on the system. 162 # it depends on mesa, and only one version of mesa can exists on the system.
160 # Hence we must match the same version or this entire script will fail. 163 # Hence we must match the same version or this entire script will fail.
161 mesa_variant="" 164 mesa_variant=""
162 for variant in "-lts-quantal" "-lts-raring" "-lts-saucy" "-lts-trusty"; do 165 for variant in "-lts-quantal" "-lts-raring" "-lts-saucy" "-lts-trusty"; do
163 if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \ 166 if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \
164 grep -q " ok installed"); then 167 grep -q " ok installed"); then
165 mesa_variant="${variant}" 168 mesa_variant="${variant}"
166 fi 169 fi
167 done 170 done
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 fi 289 fi
287 290
288 if test "$do_inst_nacl" = "1"; then 291 if test "$do_inst_nacl" = "1"; then
289 echo "Including NaCl, NaCl toolchain, NaCl ports dependencies." 292 echo "Including NaCl, NaCl toolchain, NaCl ports dependencies."
290 else 293 else
291 echo "Skipping NaCl, NaCl toolchain, NaCl ports dependencies." 294 echo "Skipping NaCl, NaCl toolchain, NaCl ports dependencies."
292 nacl_list= 295 nacl_list=
293 fi 296 fi
294 297
295 packages="$( 298 packages="$(
296 echo "${dev_list} ${lib_list} ${dbg_list} ${arm_list} ${nacl_list}" | 299 echo "${dev_list} ${lib_list} ${dbg_list} ${arm_list} ${nacl_list} " \
297 tr " " "\n" | sort -u | tr "\n" " " 300 "${telemetry_list}" | tr " " "\n" | sort -u | tr "\n" " "
298 )" 301 )"
299 302
300 if [ 1 -eq "${do_quick_check-0}" ] ; then 303 if [ 1 -eq "${do_quick_check-0}" ] ; then
301 failed_check="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' \ 304 failed_check="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' \
302 ${packages} 2>&1 | grep -v "ok installed" || :)" 305 ${packages} 2>&1 | grep -v "ok installed" || :)"
303 if [ -n "${failed_check}" ]; then 306 if [ -n "${failed_check}" ]; then
304 echo 307 echo
305 nomatch="$(echo "${failed_check}" | \ 308 nomatch="$(echo "${failed_check}" | \
306 sed -e "s/^No packages found matching \(.*\).$/\1/;t;d")" 309 sed -e "s/^No packages found matching \(.*\).$/\1/;t;d")"
307 missing="$(echo "${failed_check}" | \ 310 missing="$(echo "${failed_check}" | \
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 echo "Installing symbolic links for NaCl." 404 echo "Installing symbolic links for NaCl."
402 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then 405 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then
403 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so 406 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so
404 fi 407 fi
405 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then 408 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then
406 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so 409 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so
407 fi 410 fi
408 else 411 else
409 echo "Skipping symbolic links for NaCl." 412 echo "Skipping symbolic links for NaCl."
410 fi 413 fi
OLDNEW
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/platform/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698