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

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

Issue 302083016: Adding additional packages for nacl and naclports to install-build-deps.sh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg 135 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg
136 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg 136 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg
137 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg 137 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg
138 libstdc++6-4.6-dbg" 138 libstdc++6-4.6-dbg"
139 139
140 # arm cross toolchain packages needed to build chrome on armhf 140 # arm cross toolchain packages needed to build chrome on armhf
141 arm_list="libc6-dev-armhf-cross 141 arm_list="libc6-dev-armhf-cross
142 linux-libc-dev-armhf-cross 142 linux-libc-dev-armhf-cross
143 g++-arm-linux-gnueabihf" 143 g++-arm-linux-gnueabihf"
144 144
145 # Packages to build standalone NaCl and all its toolchains. 145 # Packages to build NaCl, its toolchains, and its ports.
146 nacl_list="g++-mingw-w64-i686 libtinfo-dev:i386" 146 nacl_list="bison cmake xvfb gawk texinfo autoconf libtool
147 libssl0.9.8:i386 lib32z1-dev
148 libgpm2:i386 libncurses5:i386
149 g++-mingw-w64-i686 libtinfo-dev:i386 libglib2.0-0:i386 libnss3:i386
150 libgconf-2-4:i386 libfontconfig:i386
151 libpango1.0-0:i386 libxi6:i386 libxcursor1:i386 libxcomposite1:i386
152 libasound2:i386 libxdamage1:i386 libxtst6:i386 libxrandr2:i386
153 libcap2:i386 libudev0:i386 libgtk2.0-0:i386 libxss1:i386
154 libexif12:i386 libgl1-mesa-glx:i386"
Sam Clegg 2014/06/02 19:26:01 What happens when this runs on a 32-bit machine?
bradn 2014/06/02 19:38:42 As the i386 package is then the primary one, it wi
147 155
148 # Some package names have changed over time 156 # Some package names have changed over time
149 if package_exists ttf-mscorefonts-installer; then 157 if package_exists ttf-mscorefonts-installer; then
150 dev_list="${dev_list} ttf-mscorefonts-installer" 158 dev_list="${dev_list} ttf-mscorefonts-installer"
151 else 159 else
152 dev_list="${dev_list} msttcorefonts" 160 dev_list="${dev_list} msttcorefonts"
153 fi 161 fi
154 if package_exists libnspr4-dbg; then 162 if package_exists libnspr4-dbg; then
155 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" 163 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
156 lib_list="${lib_list} libnspr4 libnss3" 164 lib_list="${lib_list} libnspr4 libnss3"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 fi 261 fi
254 262
255 if test "$do_inst_arm" = "1" ; then 263 if test "$do_inst_arm" = "1" ; then
256 echo "Including ARM cross toolchain." 264 echo "Including ARM cross toolchain."
257 else 265 else
258 echo "Skipping ARM cross toolchain." 266 echo "Skipping ARM cross toolchain."
259 arm_list= 267 arm_list=
260 fi 268 fi
261 269
262 if test "$do_inst_nacl" = "1"; then 270 if test "$do_inst_nacl" = "1"; then
263 echo "Including standalone NaCl dependencies." 271 echo "Including NaCl, NaCl toolchain, NaCl ports dependencies."
264 else 272 else
265 echo "Skipping standalone NaCl dependencies." 273 echo "Skipping NaCl, NaCl toolchain, NaCl ports dependencies."
266 nacl_list= 274 nacl_list=
267 fi 275 fi
268 276
269 packages="$( 277 packages="$(
270 echo "${dev_list} ${lib_list} ${dbg_list} ${arm_list} ${nacl_list}" | 278 echo "${dev_list} ${lib_list} ${dbg_list} ${arm_list} ${nacl_list}" |
271 tr " " "\n" | sort -u | tr "\n" " " 279 tr " " "\n" | sort -u | tr "\n" " "
272 )" 280 )"
273 281
274 if [ 1 -eq "${do_quick_check-0}" ] ; then 282 if [ 1 -eq "${do_quick_check-0}" ] ; then
275 failed_check="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' \ 283 failed_check="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' \
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 fi 372 fi
365 echo "It is recommended to install your repo on a local file system." 373 echo "It is recommended to install your repo on a local file system."
366 echo "You can skip the installation of the Chrome OS default founts with" 374 echo "You can skip the installation of the Chrome OS default founts with"
367 echo "the command line option: --no-chromeos-fonts." 375 echo "the command line option: --no-chromeos-fonts."
368 exit 1 376 exit 1
369 fi 377 fi
370 else 378 else
371 echo "Skipping installation of Chrome OS fonts." 379 echo "Skipping installation of Chrome OS fonts."
372 fi 380 fi
373 381
382 if test "$do_inst_nacl" = "1"; then
383 echo "Installing symbolic links for NaCl."
384 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then
385 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so
386 fi
387 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then
388 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so
389 fi
390 else
391 echo "Skipping symbolic links for NaCl."
392 fi
393
374 # Install 32bit backwards compatibility support for 64bit systems 394 # Install 32bit backwards compatibility support for 64bit systems
375 if file /sbin/init | grep -q 'ELF 64-bit'; then 395 if file /sbin/init | grep -q 'ELF 64-bit'; then
376 if test "$do_inst_lib32" != "1" 396 if test "$do_inst_lib32" != "1"
377 then 397 then
378 echo "NOTE: If you were expecting the option to install 32bit libs," 398 echo "NOTE: If you were expecting the option to install 32bit libs,"
379 echo "please run with the --lib32 flag." 399 echo "please run with the --lib32 flag."
380 echo 400 echo
381 echo "Installation complete." 401 echo "Installation complete."
382 exit 0 402 exit 0
383 else 403 else
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 sed -e 's/[.]so[.][0-9].*/.so/' | 596 sed -e 's/[.]so[.][0-9].*/.so/' |
577 sort -u); do 597 sort -u); do
578 [ "x${i##*/}" = "xld-linux.so" ] && continue 598 [ "x${i##*/}" = "xld-linux.so" ] && continue
579 [ -r "$i" ] && continue 599 [ -r "$i" ] && continue
580 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 600 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
581 sort -n | tail -n 1)" 601 sort -n | tail -n 1)"
582 [ -r "$i.$j" ] || continue 602 [ -r "$i.$j" ] || continue
583 sudo ln -s "${i##*/}.$j" "$i" 603 sudo ln -s "${i##*/}.$j" "$i"
584 done 604 done
585 fi 605 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