OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 # Packages needed for chromeos only | 100 # Packages needed for chromeos only |
101 chromeos_dev_list="libpulse-dev" | 101 chromeos_dev_list="libpulse-dev" |
102 | 102 |
103 # Packages need for development | 103 # Packages need for development |
104 dev_list="apache2 bison fakeroot flex g++ gperf libapache2-mod-php5 | 104 dev_list="apache2 bison fakeroot flex g++ gperf libapache2-mod-php5 |
105 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev | 105 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev |
106 libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev | 106 libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev |
107 libgnome-keyring-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev | 107 libgnome-keyring-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev |
108 libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev | 108 libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev |
109 lighttpd mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config | 109 libxtst-dev lighttpd mesa-common-dev msttcorefonts patch perl |
110 python python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic | 110 php5-cgi pkg-config python python-dev rpm subversion ttf-dejavu-core |
111 ttf-kochi-mincho wdiff libcurl4-gnutls-dev $chromeos_dev_list" | 111 ttf-kochi-gothic ttf-kochi-mincho wdiff libcurl4-gnutls-dev |
| 112 $chromeos_dev_list" |
112 | 113 |
113 # Run-time libraries required by chromeos only | 114 # Run-time libraries required by chromeos only |
114 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 115 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
115 | 116 |
116 # Full list of required run-time libraries | 117 # Full list of required run-time libraries |
117 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 | 118 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 |
118 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 | 119 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 |
119 libnspr4-0d libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 | 120 libnspr4-0d libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 |
120 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 | 121 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 |
121 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 | 122 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 |
122 libxinerama1 libxrandr2 libxrender1 zlib1g $chromeos_lib_list" | 123 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g |
| 124 $chromeos_lib_list" |
123 | 125 |
124 # Debugging symbols for all of the run-time libraries | 126 # Debugging symbols for all of the run-time libraries |
125 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg | 127 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg |
126 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg | 128 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg |
127 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg | 129 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg |
128 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg | 130 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg |
129 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 131 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
130 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 132 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
131 libxrender1-dbg zlib1g-dbg" | 133 libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
132 | 134 |
133 # CUPS package changed its name from hardy to the next version. Include | 135 # CUPS package changed its name from hardy to the next version. Include |
134 # proper package here depending on the system. | 136 # proper package here depending on the system. |
135 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then | 137 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then |
136 dev_list="${dev_list} libcupsys2-dev" | 138 dev_list="${dev_list} libcupsys2-dev" |
137 else | 139 else |
138 dev_list="${dev_list} libcups2-dev" | 140 dev_list="${dev_list} libcups2-dev" |
139 fi | 141 fi |
140 | 142 |
141 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 143 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 sed -e 's/[.]so[.][0-9].*/.so/' | | 449 sed -e 's/[.]so[.][0-9].*/.so/' | |
448 sort -u); do | 450 sort -u); do |
449 [ "x${i##*/}" = "xld-linux.so" ] && continue | 451 [ "x${i##*/}" = "xld-linux.so" ] && continue |
450 [ -r "$i" ] && continue | 452 [ -r "$i" ] && continue |
451 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 453 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
452 sort -n | tail -n 1)" | 454 sort -n | tail -n 1)" |
453 [ -r "$i.$j" ] || continue | 455 [ -r "$i.$j" ] || continue |
454 sudo ln -s "${i##*/}.$j" "$i" | 456 sudo ln -s "${i##*/}.$j" "$i" |
455 done | 457 done |
456 fi | 458 fi |
OLD | NEW |