| 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 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then | 76 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then |
| 77 echo "Running as non-root user." | 77 echo "Running as non-root user." |
| 78 echo "You might have to enter your password one or more times for 'sudo'." | 78 echo "You might have to enter your password one or more times for 'sudo'." |
| 79 echo | 79 echo |
| 80 fi | 80 fi |
| 81 | 81 |
| 82 # Packages needed for chromeos only | 82 # Packages needed for chromeos only |
| 83 chromeos_dev_list="libbluetooth-dev" | 83 chromeos_dev_list="libbluetooth-dev" |
| 84 | 84 |
| 85 # Packages need for development | 85 # Packages needed for development |
| 86 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf | 86 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ git-core gperf |
| 87 language-pack-fr libapache2-mod-php5 libasound2-dev | 87 language-pack-fr libapache2-mod-php5 libasound2-dev libbrlapi-dev |
| 88 libbrlapi-dev libbz2-dev libcairo2-dev libcap-dev libcups2-dev | 88 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev |
| 89 libcurl4-gnutls-dev libelf-dev libgconf2-dev libgl1-mesa-dev | 89 libdrm-dev libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev |
| 90 libglib2.0-dev libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev | 90 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev |
| 91 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libpci-dev | 91 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev |
| 92 libpulse-dev libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev | 92 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev |
| 93 libudev-dev libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev | 93 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev |
| 94 mesa-common-dev openbox patch perl php5-cgi pkg-config python | 94 mesa-common-dev openbox patch perl php5-cgi pkg-config python |
| 95 python-cherrypy3 python-dev python-psutil rpm ruby subversion | 95 python-cherrypy3 python-dev python-psutil rpm ruby subversion |
| 96 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho | 96 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho |
| 97 ttf-thai-tlwg wdiff git-core libdrm-dev | 97 ttf-thai-tlwg wdiff xfonts-mathml $chromeos_dev_list" |
| 98 $chromeos_dev_list" | |
| 99 | 98 |
| 100 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 99 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
| 101 # NaCl binaries. These are always needed, regardless of whether or not we want | 100 # NaCl binaries. These are always needed, regardless of whether or not we want |
| 102 # the full 32-bit "cross-compile" support (--lib32). | 101 # the full 32-bit "cross-compile" support (--lib32). |
| 103 if file /sbin/init | grep -q 'ELF 64-bit'; then | 102 if file /sbin/init | grep -q 'ELF 64-bit'; then |
| 104 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 103 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
| 105 fi | 104 fi |
| 106 | 105 |
| 107 # Run-time libraries required by chromeos only | 106 # Run-time libraries required by chromeos only |
| 108 chromeos_lib_list="libpulse0 libbz2-1.0" | 107 chromeos_lib_list="libpulse0 libbz2-1.0" |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 sed -e 's/[.]so[.][0-9].*/.so/' | | 566 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 568 sort -u); do | 567 sort -u); do |
| 569 [ "x${i##*/}" = "xld-linux.so" ] && continue | 568 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 570 [ -r "$i" ] && continue | 569 [ -r "$i" ] && continue |
| 571 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 570 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 572 sort -n | tail -n 1)" | 571 sort -n | tail -n 1)" |
| 573 [ -r "$i.$j" ] || continue | 572 [ -r "$i.$j" ] || continue |
| 574 sudo ln -s "${i##*/}.$j" "$i" | 573 sudo ln -s "${i##*/}.$j" "$i" |
| 575 done | 574 done |
| 576 fi | 575 fi |
| OLD | NEW |