| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 # Packages needed for chromeos only | 55 # Packages needed for chromeos only |
| 56 chromeos_dev_list="libbluetooth-dev libpulse-dev" | 56 chromeos_dev_list="libbluetooth-dev libpulse-dev" |
| 57 | 57 |
| 58 # Packages need for development | 58 # Packages need for development |
| 59 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf | 59 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf |
| 60 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev | 60 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev |
| 61 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libelf-dev | 61 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libelf-dev |
| 62 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev | 62 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev |
| 63 libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev | 63 libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev |
| 64 libnss3-dev libpam0g-dev libsctp-dev libsqlite3-dev libssl-dev | 64 libnss3-dev libpam0g-dev libpci-dev libsctp-dev libsqlite3-dev |
| 65 libudev-dev libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev | 65 libssl-dev libudev-dev libwww-perl libxslt1-dev libxss-dev libxt-dev |
| 66 mesa-common-dev patch perl php5-cgi pkg-config python python-cherrypy3 | 66 libxtst-dev mesa-common-dev patch perl php5-cgi pkg-config python |
| 67 python-dev python-psutil rpm ruby subversion ttf-dejavu-core | 67 python-cherrypy3 python-dev python-psutil rpm ruby subversion |
| 68 ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff | 68 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho |
| 69 git-core | 69 ttf-thai-tlwg wdiff git-core $chromeos_dev_list" |
| 70 $chromeos_dev_list" | |
| 71 | 70 |
| 72 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 71 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
| 73 # NaCl binaries. These are always needed, regardless of whether or not we want | 72 # NaCl binaries. These are always needed, regardless of whether or not we want |
| 74 # the full 32-bit "cross-compile" support (--lib32). | 73 # the full 32-bit "cross-compile" support (--lib32). |
| 75 if [ "$(uname -m)" = "x86_64" ]; then | 74 if [ "$(uname -m)" = "x86_64" ]; then |
| 76 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 75 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
| 77 fi | 76 fi |
| 78 | 77 |
| 79 # Run-time libraries required by chromeos only | 78 # Run-time libraries required by chromeos only |
| 80 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 79 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
| 81 | 80 |
| 82 # Full list of required run-time libraries | 81 # Full list of required run-time libraries |
| 83 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 | 82 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 |
| 84 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 | 83 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
| 85 libgtk2.0-0 libpam0g libpango1.0-0 libpcre3 libpixman-1-0 | 84 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 |
| 86 libpng12-0 libstdc++6 libsqlite3-0 libudev0 libx11-6 libxau6 libxcb1 | 85 libpng12-0 libstdc++6 libsqlite3-0 libudev0 libx11-6 libxau6 libxcb1 |
| 87 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 | 86 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 |
| 88 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g | 87 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g |
| 89 $chromeos_lib_list" | 88 $chromeos_lib_list" |
| 90 | 89 |
| 91 # Debugging symbols for all of the run-time libraries | 90 # Debugging symbols for all of the run-time libraries |
| 92 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 91 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
| 93 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg | 92 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg |
| 94 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg | 93 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg |
| 95 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg | 94 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 sed -e 's/[.]so[.][0-9].*/.so/' | | 402 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 404 sort -u); do | 403 sort -u); do |
| 405 [ "x${i##*/}" = "xld-linux.so" ] && continue | 404 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 406 [ -r "$i" ] && continue | 405 [ -r "$i" ] && continue |
| 407 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 406 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 408 sort -n | tail -n 1)" | 407 sort -n | tail -n 1)" |
| 409 [ -r "$i.$j" ] || continue | 408 [ -r "$i.$j" ] || continue |
| 410 sudo ln -s "${i##*/}.$j" "$i" | 409 sudo ln -s "${i##*/}.$j" "$i" |
| 411 done | 410 done |
| 412 fi | 411 fi |
| OLD | NEW |