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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 echo | 204 echo |
205 echo "You will have to install the above packages yourself." | 205 echo "You will have to install the above packages yourself." |
206 echo | 206 echo |
207 exit 100 | 207 exit 100 |
208 fi | 208 fi |
209 | 209 |
210 # Install 32bit backwards compatibility support for 64bit systems | 210 # Install 32bit backwards compatibility support for 64bit systems |
211 if [ "$(uname -m)" = "x86_64" ]; then | 211 if [ "$(uname -m)" = "x86_64" ]; then |
212 if test "$do_inst_lib32" = "" | 212 if test "$do_inst_lib32" = "" |
213 then | 213 then |
214 echo "Installing 32bit libraries not already provided by the system" | 214 echo "We no longer recommend that you use this script to install" |
| 215 echo "32bit libraries on a 64bit system. Instead, consider using" |
| 216 echo "the install-chroot.sh script to help you set up a 32bit" |
| 217 echo "environment for building and testing 32bit versions of Chrome." |
215 echo | 218 echo |
216 echo "This is only needed to build a 32-bit Chrome on your 64-bit system." | 219 echo "If you nonetheless want to try installing 32bit libraries" |
217 echo | 220 echo "directly, you can do so by explicitly passing the --lib32" |
218 echo "While we only need to install a relatively small number of library" | 221 echo "option to install-build-deps.sh. |
219 echo "files, we temporarily need to download a lot of large *.deb packages" | |
220 echo "that contain these files. We will create new *.deb packages that" | |
221 echo "include just the 32bit libraries. These files will then be found on" | |
222 echo "your system in places like /lib32, /usr/lib32, /usr/lib/debug/lib32," | |
223 echo "/usr/lib/debug/usr/lib32. If you ever need to uninstall these files," | |
224 echo "look for packages named *-ia32.deb." | |
225 echo "Do you want me to download all packages needed to build new 32bit" | |
226 echo -n "package files (y/N) " | |
227 if yes_no 1; then | |
228 do_inst_lib32=1 | |
229 fi | |
230 fi | 222 fi |
231 if test "$do_inst_lib32" != "1" | 223 if test "$do_inst_lib32" != "1" |
232 then | 224 then |
233 echo "Exiting without installing any 32bit libraries." | 225 echo "Exiting without installing any 32bit libraries." |
234 exit 0 | 226 exit 0 |
235 fi | 227 fi |
236 | 228 |
| 229 echo "N.B. the code for installing 32bit libraries on a 64bit" |
| 230 echo " system is no longer actively maintained and might" |
| 231 echo " not work with modern versions of Ubuntu or Debian." |
| 232 echo |
| 233 |
237 # Standard 32bit compatibility libraries | 234 # Standard 32bit compatibility libraries |
238 echo "First, installing the limited existing 32-bit support..." | 235 echo "First, installing the limited existing 32-bit support..." |
239 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 | 236 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 |
240 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" | 237 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" |
241 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then | 238 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then |
242 cmp_list="${cmp_list} lib32readline-gplv2-dev" | 239 cmp_list="${cmp_list} lib32readline-gplv2-dev" |
243 else | 240 else |
244 cmp_list="${cmp_list} lib32readline5-dev" | 241 cmp_list="${cmp_list} lib32readline5-dev" |
245 fi | 242 fi |
246 sudo apt-get install $cmp_list | 243 sudo apt-get install $cmp_list |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 sed -e 's/[.]so[.][0-9].*/.so/' | | 386 sed -e 's/[.]so[.][0-9].*/.so/' | |
390 sort -u); do | 387 sort -u); do |
391 [ "x${i##*/}" = "xld-linux.so" ] && continue | 388 [ "x${i##*/}" = "xld-linux.so" ] && continue |
392 [ -r "$i" ] && continue | 389 [ -r "$i" ] && continue |
393 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 390 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
394 sort -n | tail -n 1)" | 391 sort -n | tail -n 1)" |
395 [ -r "$i.$j" ] || continue | 392 [ -r "$i.$j" ] || continue |
396 sudo ln -s "${i##*/}.$j" "$i" | 393 sudo ln -s "${i##*/}.$j" "$i" |
397 done | 394 done |
398 fi | 395 fi |
OLD | NEW |