| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 ${naclports_list}" | 175 ${naclports_list}" |
| 176 | 176 |
| 177 # Find the proper version of packages that depend on mesa. Only one -lts variant | 177 # Find the proper version of packages that depend on mesa. Only one -lts variant |
| 178 # of mesa can be installed and everything that depends on it must match. | 178 # of mesa can be installed and everything that depends on it must match. |
| 179 | 179 |
| 180 # Query for the name and status of all mesa LTS variants, filter for only | 180 # Query for the name and status of all mesa LTS variants, filter for only |
| 181 # installed packages, extract just the name, and eliminate duplicates (there can | 181 # installed packages, extract just the name, and eliminate duplicates (there can |
| 182 # be more than one with the same name in the case of multiarch). Expand into an | 182 # be more than one with the same name in the case of multiarch). Expand into an |
| 183 # array. | 183 # array. |
| 184 mesa_packages=($(dpkg-query -Wf'${package} ${status}\n' \ | 184 mesa_packages=($(dpkg-query -Wf'${package} ${status}\n' \ |
| 185 libgl1-mesa-glx-lts-\* | \ | 185 libgl1-mesa-glx-lts-\* 2>/dev/null | \ |
| 186 grep " ok installed" | cut -d " " -f 1 | sort -u)) | 186 grep " ok installed" | cut -d " " -f 1 | sort -u)) |
| 187 if [ "${#mesa_packages[@]}" -eq 0 ]; then | 187 if [ "${#mesa_packages[@]}" -eq 0 ]; then |
| 188 mesa_variant="" | 188 mesa_variant="" |
| 189 elif [ "${#mesa_packages[@]}" -eq 1 ]; then | 189 elif [ "${#mesa_packages[@]}" -eq 1 ]; then |
| 190 # Strip the base package name and leave just "-lts-whatever" | 190 # Strip the base package name and leave just "-lts-whatever" |
| 191 mesa_variant="${mesa_packages[0]#libgl1-mesa-glx}" | 191 mesa_variant="${mesa_packages[0]#libgl1-mesa-glx}" |
| 192 else | 192 else |
| 193 echo "ERROR: unable to determine which libgl1-mesa-glx variant is installed." | 193 echo "ERROR: unable to determine which libgl1-mesa-glx variant is installed." |
| 194 exit 1 | 194 exit 1 |
| 195 fi | 195 fi |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 # only contains libcrypto.so.1.0.0 and not the symlink needed for | 471 # only contains libcrypto.so.1.0.0 and not the symlink needed for |
| 472 # linking (libcrypto.so). | 472 # linking (libcrypto.so). |
| 473 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ | 473 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ |
| 474 /usr/lib/i386-linux-gnu/libcrypto.so | 474 /usr/lib/i386-linux-gnu/libcrypto.so |
| 475 | 475 |
| 476 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ | 476 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ |
| 477 /usr/lib/i386-linux-gnu/libssl.so | 477 /usr/lib/i386-linux-gnu/libssl.so |
| 478 else | 478 else |
| 479 echo "Skipping symbolic links for NaCl." | 479 echo "Skipping symbolic links for NaCl." |
| 480 fi | 480 fi |
| OLD | NEW |