OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 fi | 344 fi |
345 fi | 345 fi |
346 if test "$do_inst_lib32" != "1" | 346 if test "$do_inst_lib32" != "1" |
347 then | 347 then |
348 echo "Exiting without installing any 32bit libraries." | 348 echo "Exiting without installing any 32bit libraries." |
349 exit 0 | 349 exit 0 |
350 fi | 350 fi |
351 | 351 |
352 # Standard 32bit compatibility libraries | 352 # Standard 32bit compatibility libraries |
353 echo "First, installing the limited existing 32-bit support..." | 353 echo "First, installing the limited existing 32-bit support..." |
354 cmp_list="ia32-libs lib32asound2-dev lib32readline5-dev lib32stdc++6 lib32z1 | 354 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 |
355 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" | 355 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" |
| 356 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then |
| 357 cmp_list="${cmp_list} lib32readline-gplv2-dev" |
| 358 else |
| 359 cmp_list="${cmp_list} lib32readline5-dev" |
| 360 fi |
356 sudo apt-get install $cmp_list | 361 sudo apt-get install $cmp_list |
357 | 362 |
358 tmp=/tmp/install-32bit.$$ | 363 tmp=/tmp/install-32bit.$$ |
359 trap 'rm -rf "${tmp}"' EXIT INT TERM QUIT | 364 trap 'rm -rf "${tmp}"' EXIT INT TERM QUIT |
360 mkdir -p "${tmp}/apt/lists/partial" "${tmp}/cache" "${tmp}/partial" | 365 mkdir -p "${tmp}/apt/lists/partial" "${tmp}/cache" "${tmp}/partial" |
361 touch "${tmp}/status" | 366 touch "${tmp}/status" |
362 | 367 |
363 [ -r /etc/apt/apt.conf ] && cp /etc/apt/apt.conf "${tmp}/apt/" | 368 [ -r /etc/apt/apt.conf ] && cp /etc/apt/apt.conf "${tmp}/apt/" |
364 cat >>"${tmp}/apt/apt.conf" <<EOF | 369 cat >>"${tmp}/apt/apt.conf" <<EOF |
365 Apt::Architecture "i386"; | 370 Apt::Architecture "i386"; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 sed -e 's/[.]so[.][0-9].*/.so/' | | 504 sed -e 's/[.]so[.][0-9].*/.so/' | |
500 sort -u); do | 505 sort -u); do |
501 [ "x${i##*/}" = "xld-linux.so" ] && continue | 506 [ "x${i##*/}" = "xld-linux.so" ] && continue |
502 [ -r "$i" ] && continue | 507 [ -r "$i" ] && continue |
503 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 508 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
504 sort -n | tail -n 1)" | 509 sort -n | tail -n 1)" |
505 [ -r "$i.$j" ] || continue | 510 [ -r "$i.$j" ] || continue |
506 sudo ln -s "${i##*/}.$j" "$i" | 511 sudo ln -s "${i##*/}.$j" "$i" |
507 done | 512 done |
508 fi | 513 fi |
OLD | NEW |