Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: build/install-build-deps.sh

Issue 11360130: Improve warnings about 32bit libs on 64bit systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 echo "It produces the following output:" 218 echo "It produces the following output:"
219 yes n | $new_list_cmd || true 219 yes n | $new_list_cmd || true
220 echo 220 echo
221 echo "You will have to install the above packages yourself." 221 echo "You will have to install the above packages yourself."
222 echo 222 echo
223 exit 100 223 exit 100
224 fi 224 fi
225 225
226 # Install 32bit backwards compatibility support for 64bit systems 226 # Install 32bit backwards compatibility support for 64bit systems
227 if [ "$(uname -m)" = "x86_64" ]; then 227 if [ "$(uname -m)" = "x86_64" ]; then
228 if test "$do_inst_lib32" = ""
229 then
230 echo "We no longer recommend that you use this script to install"
231 echo "32bit libraries on a 64bit system. Instead, consider using"
232 echo "the install-chroot.sh script to help you set up a 32bit"
233 echo "environment for building and testing 32bit versions of Chrome."
234 echo
235 echo "If you nonetheless want to try installing 32bit libraries"
236 echo "directly, you can do so by explicitly passing the --lib32"
237 echo "option to install-build-deps.sh."
238 fi
239 if test "$do_inst_lib32" != "1" 228 if test "$do_inst_lib32" != "1"
240 then 229 then
241 echo "Exiting without installing any 32bit libraries." 230 echo "NOTE: If you were expecting the option to install 32bit libs,"
231 echo "please run with the --lib32 flag."
232 echo
233 echo "Installation complete."
242 exit 0 234 exit 0
243 fi 235 fi
244 236
245 echo "N.B. the code for installing 32bit libraries on a 64bit" 237 echo "WARNING"
246 echo " system is no longer actively maintained and might"
247 echo " not work with modern versions of Ubuntu or Debian."
248 echo 238 echo
239 echo "We no longer recommend that you use this script to install"
240 echo "32bit libraries on a 64bit system. Instead, consider using the"
241 echo "install-chroot.sh script to help you set up a 32bit environment"
242 echo "for building and testing 32bit versions of Chrome."
243 echo
244 echo "The code for installing 32bit libraries on a 64bit system is"
245 echo "unmaintained and might not work with modern versions of Ubuntu"
246 echo "or Debian."
247 echo
248 echo -n "Are you sure you want to proceed (y/N) "
249 if yes_no 1; then
250 do_inst_lib32=1
251 fi
252 if test "$do_inst_lib32" != "1"
tapted 2012/11/07 22:24:29 missing `; then` ?
Michael Moss 2012/11/07 22:57:10 Ugh, thanks. https://codereview.chromium.org/11360
253 exit 0
254 fi
249 255
250 # Standard 32bit compatibility libraries 256 # Standard 32bit compatibility libraries
251 echo "First, installing the limited existing 32-bit support..." 257 echo "First, installing the limited existing 32-bit support..."
252 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 258 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1
253 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" 259 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib"
254 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then 260 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then
255 cmp_list="${cmp_list} lib32readline-gplv2-dev" 261 cmp_list="${cmp_list} lib32readline-gplv2-dev"
256 else 262 else
257 cmp_list="${cmp_list} lib32readline5-dev" 263 cmp_list="${cmp_list} lib32readline5-dev"
258 fi 264 fi
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 sed -e 's/[.]so[.][0-9].*/.so/' | 408 sed -e 's/[.]so[.][0-9].*/.so/' |
403 sort -u); do 409 sort -u); do
404 [ "x${i##*/}" = "xld-linux.so" ] && continue 410 [ "x${i##*/}" = "xld-linux.so" ] && continue
405 [ -r "$i" ] && continue 411 [ -r "$i" ] && continue
406 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 412 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
407 sort -n | tail -n 1)" 413 sort -n | tail -n 1)"
408 [ -r "$i.$j" ] || continue 414 [ -r "$i.$j" ] || continue
409 sudo ln -s "${i##*/}.$j" "$i" 415 sudo ln -s "${i##*/}.$j" "$i"
410 done 416 done
411 fi 417 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698