| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 echo "You might have to enter your password one or more times for 'sudo'." | 131 echo "You might have to enter your password one or more times for 'sudo'." |
| 132 echo | 132 echo |
| 133 fi | 133 fi |
| 134 | 134 |
| 135 # Packages needed for chromeos only | 135 # Packages needed for chromeos only |
| 136 chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath" | 136 chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath" |
| 137 | 137 |
| 138 # Packages needed for development | 138 # Packages needed for development |
| 139 dev_list="bison cdbs curl dpkg-dev elfutils devscripts fakeroot | 139 dev_list="bison cdbs curl dpkg-dev elfutils devscripts fakeroot |
| 140 flex fonts-ipafont fonts-thai-tlwg g++ git-core git-svn gperf | 140 flex fonts-ipafont fonts-thai-tlwg g++ git-core git-svn gperf |
| 141 language-pack-da language-pack-fr language-pack-he | 141 libasound2-dev libbrlapi-dev libav-tools libbz2-dev libcairo2-dev |
| 142 language-pack-zh-hant libasound2-dev libbrlapi-dev libav-tools | 142 libcap-dev libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev |
| 143 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev | 143 libffi-dev libgconf2-dev libglib2.0-dev libglu1-mesa-dev |
| 144 libdrm-dev libelf-dev libffi-dev libgconf2-dev libglib2.0-dev | 144 libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev |
| 145 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev | 145 libnss3-dev libpam0g-dev libpci-dev libpulse-dev libsctp-dev |
| 146 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev | 146 libspeechd-dev libsqlite3-dev libssl-dev libudev-dev libwww-perl |
| 147 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev | 147 libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox patch perl |
| 148 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox | 148 pkg-config python python-cherrypy3 python-crypto python-dev |
| 149 patch perl pkg-config python python-cherrypy3 python-crypto | 149 python-numpy python-opencv python-openssl python-psutil python-yaml |
| 150 python-dev python-numpy python-opencv python-openssl python-psutil | 150 rpm ruby subversion ttf-dejavu-core wdiff xcompmgr zip |
| 151 python-yaml rpm ruby subversion ttf-dejavu-core wdiff xcompmgr zip | |
| 152 $chromeos_dev_list" | 151 $chromeos_dev_list" |
| 153 | 152 |
| 154 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 153 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
| 155 # NaCl binaries. | 154 # NaCl binaries. |
| 156 if file -L /sbin/init | grep -q 'ELF 64-bit'; then | 155 if file -L /sbin/init | grep -q 'ELF 64-bit'; then |
| 157 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 156 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
| 158 fi | 157 fi |
| 159 | 158 |
| 160 # Run-time libraries required by chromeos only | 159 # Run-time libraries required by chromeos only |
| 161 chromeos_lib_list="libpulse0 libbz2-1.0" | 160 chromeos_lib_list="libpulse0 libbz2-1.0" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 # only contains libcrypto.so.1.0.0 and not the symlink needed for | 529 # only contains libcrypto.so.1.0.0 and not the symlink needed for |
| 531 # linking (libcrypto.so). | 530 # linking (libcrypto.so). |
| 532 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ | 531 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ |
| 533 /usr/lib/i386-linux-gnu/libcrypto.so | 532 /usr/lib/i386-linux-gnu/libcrypto.so |
| 534 | 533 |
| 535 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ | 534 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ |
| 536 /usr/lib/i386-linux-gnu/libssl.so | 535 /usr/lib/i386-linux-gnu/libssl.so |
| 537 else | 536 else |
| 538 echo "Skipping symbolic links for NaCl." | 537 echo "Skipping symbolic links for NaCl." |
| 539 fi | 538 fi |
| 539 |
| 540 echo "Installing locales." |
| 541 CHROMIUM_LOCALES="da_DK.UTF-8 fr_FR.UTF-8 he_IL.UTF-8 zh_TW.UTF-8" |
| 542 LOCALE_GEN=/etc/locale.gen |
| 543 if [ -e ${LOCALE_GEN} ]; then |
| 544 OLD_LOCALE_GEN="$(cat /etc/locale.gen)" |
| 545 for CHROMIUM_LOCALE in ${CHROMIUM_LOCALES}; do |
| 546 sudo sed -i "s/^# ${CHROMIUM_LOCALE}/${CHROMIUM_LOCALE}/" ${LOCALE_GEN} |
| 547 done |
| 548 # Regenerating locales can take a while, so only do it if we need to. |
| 549 if (echo "${OLD_LOCALE_GEN}" | cmp -s ${LOCALE_GEN}); then |
| 550 echo "Locales already up-to-date." |
| 551 else |
| 552 sudo locale-gen |
| 553 fi |
| 554 else |
| 555 for CHROMIUM_LOCALE in ${CHROMIUM_LOCALES}; do |
| 556 sudo locale-gen ${CHROMIUM_LOCALE} |
| 557 done |
| 558 fi |
| OLD | NEW |