Chromium Code Reviews| 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 24 matching lines...) Expand all Loading... | |
| 35 --no-prompt) do_default=1 | 35 --no-prompt) do_default=1 |
| 36 do_quietly="-qq --assume-yes" | 36 do_quietly="-qq --assume-yes" |
| 37 ;; | 37 ;; |
| 38 --unsupported) do_unsupported=1;; | 38 --unsupported) do_unsupported=1;; |
| 39 *) usage;; | 39 *) usage;; |
| 40 esac | 40 esac |
| 41 shift | 41 shift |
| 42 done | 42 done |
| 43 | 43 |
| 44 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10|13\.04" | 44 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10|13\.04" |
| 45 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal" | 45 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal|raring" |
| 46 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)" | 46 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)" |
| 47 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue | 47 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue |
| 48 # doesn't contain a version number so just trust that the user knows what | 48 # doesn't contain a version number so just trust that the user knows what |
| 49 # they're doing. | 49 # they're doing. |
| 50 gcel_issue="^GCEL" | 50 gcel_issue="^GCEL" |
| 51 | 51 |
| 52 if [ 0 -eq "${do_unsupported-0}" ] ; then | 52 if [ 0 -eq "${do_unsupported-0}" ] ; then |
| 53 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then | 53 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then |
| 54 echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.10 (quantal) are"\ | 54 echo "ERROR: Only Ubuntu 10.04 (lucid) through 13.04 (raring) are"\ |
| 55 "currently supported" >&2 | 55 "currently supported" >&2 |
| 56 exit 1 | 56 exit 1 |
| 57 fi | 57 fi |
| 58 | 58 |
| 59 if ! uname -m | egrep -q "i686|x86_64"; then | 59 if ! uname -m | egrep -q "i686|x86_64"; then |
| 60 echo "Only x86 architectures are currently supported" >&2 | 60 echo "Only x86 architectures are currently supported" >&2 |
| 61 exit | 61 exit |
| 62 fi | 62 fi |
| 63 fi | 63 fi |
| 64 | 64 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 89 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 89 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
| 90 # NaCl binaries. These are always needed, regardless of whether or not we want | 90 # NaCl binaries. These are always needed, regardless of whether or not we want |
| 91 # the full 32-bit "cross-compile" support (--lib32). | 91 # the full 32-bit "cross-compile" support (--lib32). |
| 92 if [ "$(uname -m)" = "x86_64" ]; then | 92 if [ "$(uname -m)" = "x86_64" ]; then |
| 93 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 93 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
| 94 fi | 94 fi |
| 95 | 95 |
| 96 # Run-time libraries required by chromeos only | 96 # Run-time libraries required by chromeos only |
| 97 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 97 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
| 98 | 98 |
| 99 if [ "$(lsb_release -s -r)" = "13.04" ]; then | |
| 100 udev_pkg="libudev1" | |
| 101 else | |
| 102 udev_pkg="libudev0" | |
| 103 fi | |
| 104 | |
| 99 # Full list of required run-time libraries | 105 # Full list of required run-time libraries |
| 100 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 | 106 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 |
| 101 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 | 107 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
| 102 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 | 108 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 |
| 103 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libudev0 libx11-6 | 109 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6 |
| 104 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 | 110 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 |
| 105 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 | 111 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 |
| 106 libxtst6 zlib1g $chromeos_lib_list" | 112 libxtst6 zlib1g $udev_pkg $chromeos_lib_list" |
| 107 | 113 |
| 108 # Debugging symbols for all of the run-time libraries | 114 # Debugging symbols for all of the run-time libraries |
| 109 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 115 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
| 110 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg | 116 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg |
| 111 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg | 117 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg |
| 112 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg | 118 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg |
| 113 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg | 119 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg |
| 114 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" | 120 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
| 115 | 121 |
| 116 # arm cross toolchain packages needed to build chrome on arm | 122 # arm cross toolchain packages needed to build chrome on arm |
| 117 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross | 123 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross |
| 118 libgomp1-armel-cross linux-libc-dev-armel-cross | 124 libgomp1-armel-cross linux-libc-dev-armel-cross |
| 119 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross | 125 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross |
| 120 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi | 126 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi |
| 121 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi | 127 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi |
| 122 libmudflap0-dbg-armel-cross" | 128 libmudflap0-dbg-armel-cross" |
| 123 | 129 |
| 124 | 130 |
| 125 # Some package names have changed over time | 131 # Some package names have changed over time |
|
Paweł Hajdan Jr.
2013/05/17 01:17:50
Please add your logic here, to fit better with exi
| |
| 126 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then | 132 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then |
| 127 dev_list="${dev_list} ttf-mscorefonts-installer" | 133 dev_list="${dev_list} ttf-mscorefonts-installer" |
| 128 else | 134 else |
| 129 dev_list="${dev_list} msttcorefonts" | 135 dev_list="${dev_list} msttcorefonts" |
| 130 fi | 136 fi |
| 131 if apt-cache show libnspr4-dbg >/dev/null 2>&1; then | 137 if apt-cache show libnspr4-dbg >/dev/null 2>&1; then |
| 132 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" | 138 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" |
| 133 lib_list="${lib_list} libnspr4 libnss3" | 139 lib_list="${lib_list} libnspr4 libnss3" |
| 134 else | 140 else |
| 135 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" | 141 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 sed -e 's/[.]so[.][0-9].*/.so/' | | 495 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 490 sort -u); do | 496 sort -u); do |
| 491 [ "x${i##*/}" = "xld-linux.so" ] && continue | 497 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 492 [ -r "$i" ] && continue | 498 [ -r "$i" ] && continue |
| 493 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 499 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 494 sort -n | tail -n 1)" | 500 sort -n | tail -n 1)" |
| 495 [ -r "$i.$j" ] || continue | 501 [ -r "$i.$j" ] || continue |
| 496 sudo ln -s "${i##*/}.$j" "$i" | 502 sudo ln -s "${i##*/}.$j" "$i" |
| 497 done | 503 done |
| 498 fi | 504 fi |
| OLD | NEW |