| OLD | NEW |
| 1 #!/bin/bash -e | 1 #!/bin/bash -e |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 # /usr/local/gold/bin/ld without requiring him to set environment | 73 # /usr/local/gold/bin/ld without requiring him to set environment |
| 74 # variables. | 74 # variables. |
| 75 sudo strip /usr/local/gold/bin/ld.gold | 75 sudo strip /usr/local/gold/bin/ld.gold |
| 76 sudo strip /usr/local/gold/bin/ld.bfd | 76 sudo strip /usr/local/gold/bin/ld.bfd |
| 77 else | 77 else |
| 78 echo "make install failed, not installing gold" | 78 echo "make install failed, not installing gold" |
| 79 fi | 79 fi |
| 80 } | 80 } |
| 81 | 81 |
| 82 if ! egrep -q \ | 82 if ! egrep -q \ |
| 83 'Ubuntu (10\.04|10\.10|11\.04|lucid|maverick|natty)' \ | 83 'Ubuntu (10\.04|10\.10|11\.04|11\.10|lucid|maverick|natty|oneiric)' \ |
| 84 /etc/issue; then | 84 /etc/issue; then |
| 85 echo "Only Ubuntu 10.04 (lucid) through 11.04 (natty) are currently" \ | 85 echo "Only Ubuntu 10.04 (lucid) through 11.10 (oneiric) are currently" \ |
| 86 "supported" >&2 | 86 "supported" >&2 |
| 87 exit 1 | 87 exit 1 |
| 88 fi | 88 fi |
| 89 | 89 |
| 90 if ! uname -m | egrep -q "i686|x86_64"; then | 90 if ! uname -m | egrep -q "i686|x86_64"; then |
| 91 echo "Only x86 architectures are currently supported" >&2 | 91 echo "Only x86 architectures are currently supported" >&2 |
| 92 exit | 92 exit |
| 93 fi | 93 fi |
| 94 | 94 |
| 95 if [ "x$(id -u)" != x0 ]; then | 95 if [ "x$(id -u)" != x0 ]; then |
| 96 echo "Running as non-root user." | 96 echo "Running as non-root user." |
| 97 echo "You might have to enter your password one or more times for 'sudo'." | 97 echo "You might have to enter your password one or more times for 'sudo'." |
| 98 echo | 98 echo |
| 99 fi | 99 fi |
| 100 | 100 |
| 101 # Packages needed for chromeos only | 101 # Packages needed for chromeos only |
| 102 chromeos_dev_list="libpulse-dev" | 102 chromeos_dev_list="libpulse-dev" |
| 103 | 103 |
| 104 # Packages need for development | 104 # Packages need for development |
| 105 dev_list="apache2.2-bin bison curl elfutils | 105 dev_list="apache2.2-bin bison curl elfutils |
| 106 fakeroot flex g++ gperf language-pack-fr | 106 fakeroot flex g++ gperf language-pack-fr |
| 107 libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev | 107 libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev |
| 108 libcups2-dev libdbus-glib-1-dev libelf-dev libgconf2-dev | 108 libcups2-dev libdbus-glib-1-dev libelf-dev libgconf2-dev |
| 109 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev | 109 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev |
| 110 libgtk2.0-dev libjpeg62-dev libkrb5-dev libnspr4-dev libnss3-dev | 110 libgtk2.0-dev libjpeg62-dev libkrb5-dev libnspr4-dev libnss3-dev |
| 111 libpam0g-dev libsctp-dev libsqlite3-dev libssl-dev libxslt1-dev | 111 libpam0g-dev libsctp-dev libsqlite3-dev libssl-dev libxslt1-dev |
| 112 libxss-dev libxtst-dev mesa-common-dev msttcorefonts patch perl | 112 libxss-dev libxt-dev libxtst-dev mesa-common-dev msttcorefonts patch |
| 113 libwww-perl php5-cgi pkg-config python python-dev rpm subversion | 113 perl libwww-perl php5-cgi pkg-config python python-dev rpm subversion |
| 114 ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff ruby | 114 ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff ruby |
| 115 libcurl4-gnutls-dev ttf-indic-fonts ttf-thai-tlwg | 115 libcurl4-gnutls-dev ttf-indic-fonts ttf-thai-tlwg |
| 116 $chromeos_dev_list" | 116 $chromeos_dev_list" |
| 117 | 117 |
| 118 # Run-time libraries required by chromeos only | 118 # Run-time libraries required by chromeos only |
| 119 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 119 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
| 120 | 120 |
| 121 # Full list of required run-time libraries | 121 # Full list of required run-time libraries |
| 122 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libdbus-glib-1-2 | 122 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libdbus-glib-1-2 |
| 123 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 | 123 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 sed -e 's/[.]so[.][0-9].*/.so/' | | 499 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 500 sort -u); do | 500 sort -u); do |
| 501 [ "x${i##*/}" = "xld-linux.so" ] && continue | 501 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 502 [ -r "$i" ] && continue | 502 [ -r "$i" ] && continue |
| 503 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 503 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 504 sort -n | tail -n 1)" | 504 sort -n | tail -n 1)" |
| 505 [ -r "$i.$j" ] || continue | 505 [ -r "$i.$j" ] || continue |
| 506 sudo ln -s "${i##*/}.$j" "$i" | 506 sudo ln -s "${i##*/}.$j" "$i" |
| 507 done | 507 done |
| 508 fi | 508 fi |
| OLD | NEW |