| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 echo "Running as non-root user." | 145 echo "Running as non-root user." |
| 146 echo "You might have to enter your password one or more times for 'sudo'." | 146 echo "You might have to enter your password one or more times for 'sudo'." |
| 147 echo | 147 echo |
| 148 fi | 148 fi |
| 149 | 149 |
| 150 # Packages needed for chromeos only | 150 # Packages needed for chromeos only |
| 151 chromeos_dev_list="libpulse-dev" | 151 chromeos_dev_list="libpulse-dev" |
| 152 | 152 |
| 153 # Packages need for development | 153 # Packages need for development |
| 154 dev_list="apache2.2-bin bison fakeroot flex g++ gperf libapache2-mod-php5 | 154 dev_list="apache2.2-bin bison fakeroot flex g++ gperf libapache2-mod-php5 |
| 155 libasound2-dev libbz2-dev libcairo2-dev | 155 libasound2-dev libbz2-dev libcairo2-dev libcups2-dev |
| 156 libdbus-glib-1-dev libgconf2-dev | 156 libdbus-glib-1-dev libgconf2-dev |
| 157 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev | 157 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev |
| 158 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev | 158 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev |
| 159 libsctp-dev libsqlite3-dev libxslt1-dev libxss-dev libxtst-dev | 159 libsctp-dev libsqlite3-dev libxslt1-dev libxss-dev libxtst-dev |
| 160 mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config python | 160 mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config python |
| 161 python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic | 161 python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic |
| 162 ttf-kochi-mincho wdiff libcurl4-gnutls-dev ttf-indic-fonts | 162 ttf-kochi-mincho wdiff libcurl4-gnutls-dev ttf-indic-fonts |
| 163 ttf-thai-tlwg | 163 ttf-thai-tlwg |
| 164 $chromeos_dev_list" | 164 $chromeos_dev_list" |
| 165 | 165 |
| 166 # Run-time libraries required by chromeos only | 166 # Run-time libraries required by chromeos only |
| 167 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 167 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
| 168 | 168 |
| 169 # Full list of required run-time libraries | 169 # Full list of required run-time libraries |
| 170 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 | 170 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libdbus-glib-1-2 |
| 171 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 | 171 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
| 172 libpam0g libpango1.0-0 libpcre3 libpixman-1-0 | 172 libgtk2.0-0 libpam0g libpango1.0-0 libpcre3 libpixman-1-0 |
| 173 libpng12-0 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 | 173 libpng12-0 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 |
| 174 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 | 174 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 |
| 175 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g | 175 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g |
| 176 $chromeos_lib_list" | 176 $chromeos_lib_list" |
| 177 | 177 |
| 178 # Debugging symbols for all of the run-time libraries | 178 # Debugging symbols for all of the run-time libraries |
| 179 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg | 179 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg |
| 180 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg | 180 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg |
| 181 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg | 181 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg |
| 182 libsqlite3-0-dbg | 182 libsqlite3-0-dbg |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 sed -e 's/[.]so[.][0-9].*/.so/' | | 503 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 504 sort -u); do | 504 sort -u); do |
| 505 [ "x${i##*/}" = "xld-linux.so" ] && continue | 505 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 506 [ -r "$i" ] && continue | 506 [ -r "$i" ] && continue |
| 507 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 507 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 508 sort -n | tail -n 1)" | 508 sort -n | tail -n 1)" |
| 509 [ -r "$i.$j" ] || continue | 509 [ -r "$i.$j" ] || continue |
| 510 sudo ln -s "${i##*/}.$j" "$i" | 510 sudo ln -s "${i##*/}.$j" "$i" |
| 511 done | 511 done |
| 512 fi | 512 fi |
| OLD | NEW |