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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 echo "You might have to enter your password one or more times for 'sudo'." | 51 echo "You might have to enter your password one or more times for 'sudo'." |
52 echo | 52 echo |
53 fi | 53 fi |
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 libdbus-glib-1-dev | 61 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libelf-dev |
62 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev | 62 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev |
63 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev | 63 libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev |
64 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev | 64 libnss3-dev libpam0g-dev libsctp-dev libsqlite3-dev libssl-dev |
65 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev | 65 libudev-dev libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev |
66 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch | 66 mesa-common-dev patch perl php5-cgi pkg-config python python-cherrypy3 |
67 perl php5-cgi pkg-config python python-cherrypy3 python-dev | 67 python-dev python-psutil rpm ruby subversion ttf-dejavu-core |
68 python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts | 68 ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff |
69 ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff git-core | 69 git-core |
70 $chromeos_dev_list" | 70 $chromeos_dev_list" |
71 | 71 |
72 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 72 # 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 | 73 # NaCl binaries. These are always needed, regardless of whether or not we want |
74 # the full 32-bit "cross-compile" support (--lib32). | 74 # the full 32-bit "cross-compile" support (--lib32). |
75 if [ "$(uname -m)" = "x86_64" ]; then | 75 if [ "$(uname -m)" = "x86_64" ]; then |
76 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 76 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
77 fi | 77 fi |
78 | 78 |
79 # Run-time libraries required by chromeos only | 79 # Run-time libraries required by chromeos only |
80 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 80 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
81 | 81 |
82 # Full list of required run-time libraries | 82 # Full list of required run-time libraries |
83 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libdbus-glib-1-2 | 83 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 |
84 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 | 84 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
85 libgtk2.0-0 libpam0g libpango1.0-0 libpcre3 libpixman-1-0 | 85 libgtk2.0-0 libpam0g libpango1.0-0 libpcre3 libpixman-1-0 |
86 libpng12-0 libstdc++6 libsqlite3-0 libudev0 libx11-6 libxau6 libxcb1 | 86 libpng12-0 libstdc++6 libsqlite3-0 libudev0 libx11-6 libxau6 libxcb1 |
87 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 | 87 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 |
88 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g | 88 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g |
89 $chromeos_lib_list" | 89 $chromeos_lib_list" |
90 | 90 |
91 # Debugging symbols for all of the run-time libraries | 91 # Debugging symbols for all of the run-time libraries |
92 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libdbus-glib-1-2-dbg | 92 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
93 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg | 93 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg |
94 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg | 94 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg |
95 libsqlite3-0-dbg | 95 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg |
96 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg | 96 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg |
97 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 97 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
98 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | |
99 libxrender1-dbg libxtst6-dbg zlib1g-dbg" | |
100 | 98 |
101 # Plugin lists needed for tests. | 99 # Plugin lists needed for tests. |
102 plugin_list="flashplugin-installer" | 100 plugin_list="flashplugin-installer" |
103 | 101 |
104 # Some package names have changed over time | 102 # Some package names have changed over time |
105 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then | 103 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then |
106 dev_list="${dev_list} ttf-mscorefonts-installer" | 104 dev_list="${dev_list} ttf-mscorefonts-installer" |
107 else | 105 else |
108 dev_list="${dev_list} msttcorefonts" | 106 dev_list="${dev_list} msttcorefonts" |
109 fi | 107 fi |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 sed -e 's/[.]so[.][0-9].*/.so/' | | 403 sed -e 's/[.]so[.][0-9].*/.so/' | |
406 sort -u); do | 404 sort -u); do |
407 [ "x${i##*/}" = "xld-linux.so" ] && continue | 405 [ "x${i##*/}" = "xld-linux.so" ] && continue |
408 [ -r "$i" ] && continue | 406 [ -r "$i" ] && continue |
409 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 407 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
410 sort -n | tail -n 1)" | 408 sort -n | tail -n 1)" |
411 [ -r "$i.$j" ] || continue | 409 [ -r "$i.$j" ] || continue |
412 sudo ln -s "${i##*/}.$j" "$i" | 410 sudo ln -s "${i##*/}.$j" "$i" |
413 done | 411 done |
414 fi | 412 fi |
OLD | NEW |