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

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

Issue 2521733002: Revert of Add check_build_deps step to gclient runhooks (Closed)
Patch Set: Created 4 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 | « build/check-build-deps.py ('k') | no next file » | 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 https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i nstructions.md 8 # See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i nstructions.md
9 9
10 usage() { 10 usage() {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 do_inst_lib32=1 65 do_inst_lib32=1
66 fi 66 fi
67 67
68 # Check for lsb_release command in $PATH 68 # Check for lsb_release command in $PATH
69 if ! which lsb_release > /dev/null; then 69 if ! which lsb_release > /dev/null; then
70 echo "ERROR: lsb_release not found in \$PATH" >&2 70 echo "ERROR: lsb_release not found in \$PATH" >&2
71 exit 1; 71 exit 1;
72 fi 72 fi
73 73
74 lsb_release=$(lsb_release --codename --short) 74 lsb_release=$(lsb_release --codename --short)
75 ubuntu_codenames="(precise|trusty|utopic|vivid|wily|xenial|yakkety)" 75 ubuntu_codenames="(precise|trusty|utopic|vivid|wily|xenial)"
76 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then 76 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then
77 if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then 77 if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then
78 echo "WARNING: Only supported build host distros are: " \ 78 echo "ERROR: Only Ubuntu 12.04 (precise), 14.04 (trusty), " \
79 "Ubuntu 12.04 (precise), Ubuntu 14.04 (trusty), Ubuntu 14.10 (utopic), " \ 79 "14.10 (utopic), 15.04 (vivid), 15.10 (wily) and 16.04 (xenial) " \
80 "Ubuntu 15.04 (vivid), Ubuntu 15.10 (wily), Ubuntu 16.04 (xenial), " \ 80 "are currently supported" >&2
81 "Ubuntu 16.10 (yakkety) " >&2 81 exit 1
82 exit
83 fi 82 fi
84 83
85 if ! uname -m | egrep -q "i686|x86_64"; then 84 if ! uname -m | egrep -q "i686|x86_64"; then
86 echo "WARNING: Only supported build host architectures are: " \ 85 echo "Only x86 architectures are currently supported" >&2
87 "x86, x86-64" >&2
88 exit 86 exit
89 fi 87 fi
90 fi 88 fi
91 89
92 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then 90 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then
93 echo "Running as non-root user." 91 echo "Running as non-root user."
94 echo "You might have to enter your password one or more times for 'sudo'." 92 echo "You might have to enter your password one or more times for 'sudo'."
95 echo 93 echo
96 fi 94 fi
97 95
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 # only contains libcrypto.so.1.0.0 and not the symlink needed for 498 # only contains libcrypto.so.1.0.0 and not the symlink needed for
501 # linking (libcrypto.so). 499 # linking (libcrypto.so).
502 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ 500 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \
503 /usr/lib/i386-linux-gnu/libcrypto.so 501 /usr/lib/i386-linux-gnu/libcrypto.so
504 502
505 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ 503 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \
506 /usr/lib/i386-linux-gnu/libssl.so 504 /usr/lib/i386-linux-gnu/libssl.so
507 else 505 else
508 echo "Skipping symbolic links for NaCl." 506 echo "Skipping symbolic links for NaCl."
509 fi 507 fi
OLDNEW
« no previous file with comments | « build/check-build-deps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698