OLD | NEW |
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 Loading... |
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)" | 75 ubuntu_codenames="(precise|trusty|utopic|vivid|wily|xenial|yakkety)" |
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 "ERROR: Only Ubuntu 12.04 (precise), 14.04 (trusty), " \ | 78 echo "WARNING: Only supported build host distros are: " \ |
79 "14.10 (utopic), 15.04 (vivid), 15.10 (wily) and 16.04 (xenial) " \ | 79 "Ubuntu 12.04 (precise), Ubuntu 14.04 (trusty), Ubuntu 14.10 (utopic), " \ |
80 "are currently supported" >&2 | 80 "Ubuntu 15.04 (vivid), Ubuntu 15.10 (wily), Ubuntu 16.04 (xenial), " \ |
81 exit 1 | 81 "Ubuntu 16.10 (yakkety) " >&2 |
| 82 exit |
82 fi | 83 fi |
83 | 84 |
84 if ! uname -m | egrep -q "i686|x86_64"; then | 85 if ! uname -m | egrep -q "i686|x86_64"; then |
85 echo "Only x86 architectures are currently supported" >&2 | 86 echo "WARNING: Only supported build host architectures are: " \ |
| 87 "x86, x86-64" >&2 |
86 exit | 88 exit |
87 fi | 89 fi |
88 fi | 90 fi |
89 | 91 |
90 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then | 92 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then |
91 echo "Running as non-root user." | 93 echo "Running as non-root user." |
92 echo "You might have to enter your password one or more times for 'sudo'." | 94 echo "You might have to enter your password one or more times for 'sudo'." |
93 echo | 95 echo |
94 fi | 96 fi |
95 | 97 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 # only contains libcrypto.so.1.0.0 and not the symlink needed for | 500 # only contains libcrypto.so.1.0.0 and not the symlink needed for |
499 # linking (libcrypto.so). | 501 # linking (libcrypto.so). |
500 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ | 502 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ |
501 /usr/lib/i386-linux-gnu/libcrypto.so | 503 /usr/lib/i386-linux-gnu/libcrypto.so |
502 | 504 |
503 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ | 505 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ |
504 /usr/lib/i386-linux-gnu/libssl.so | 506 /usr/lib/i386-linux-gnu/libssl.so |
505 else | 507 else |
506 echo "Skipping symbolic links for NaCl." | 508 echo "Skipping symbolic links for NaCl." |
507 fi | 509 fi |
OLD | NEW |