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

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

Issue 9706076: Deprecate installing 32bit build dependencies on a 64bit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 want to try installing 32bit libraries directly, you"
220 echo "can do so by explicitly passing the --lib32 option to"
221 echo "install-build-deps.sh. N.B. this code is no longer maintained"
tony 2012/03/15 20:45:56 Nit: It seems a bit spammy to echo all of this eve
222 echo "and might not work with modern versions of Ubuntu or Debian."
217 echo 223 echo
218 echo "While we only need to install a relatively small number of library"
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 224 fi
231 if test "$do_inst_lib32" != "1" 225 if test "$do_inst_lib32" != "1"
232 then 226 then
233 echo "Exiting without installing any 32bit libraries." 227 echo "Exiting without installing any 32bit libraries."
234 exit 0 228 exit 0
235 fi 229 fi
236 230
237 # Standard 32bit compatibility libraries 231 # Standard 32bit compatibility libraries
238 echo "First, installing the limited existing 32-bit support..." 232 echo "First, installing the limited existing 32-bit support..."
239 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 233 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 sed -e 's/[.]so[.][0-9].*/.so/' | 383 sed -e 's/[.]so[.][0-9].*/.so/' |
390 sort -u); do 384 sort -u); do
391 [ "x${i##*/}" = "xld-linux.so" ] && continue 385 [ "x${i##*/}" = "xld-linux.so" ] && continue
392 [ -r "$i" ] && continue 386 [ -r "$i" ] && continue
393 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 387 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
394 sort -n | tail -n 1)" 388 sort -n | tail -n 1)"
395 [ -r "$i.$j" ] || continue 389 [ -r "$i.$j" ] || continue
396 sudo ln -s "${i##*/}.$j" "$i" 390 sudo ln -s "${i##*/}.$j" "$i"
397 done 391 done
398 fi 392 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