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

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

Issue 1638313003: Add support for ubuntu 15.10(wily) to install-build-deps.sh (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix for Jamesr's comment Created 4 years, 10 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
« 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 do_inst_lib32=1 66 do_inst_lib32=1
67 fi 67 fi
68 68
69 # Check for lsb_release command in $PATH 69 # Check for lsb_release command in $PATH
70 if ! which lsb_release > /dev/null; then 70 if ! which lsb_release > /dev/null; then
71 echo "ERROR: lsb_release not found in \$PATH" >&2 71 echo "ERROR: lsb_release not found in \$PATH" >&2
72 exit 1; 72 exit 1;
73 fi 73 fi
74 74
75 lsb_release=$(lsb_release --codename --short) 75 lsb_release=$(lsb_release --codename --short)
76 ubuntu_codenames="(precise|trusty|utopic|vivid)" 76 ubuntu_codenames="(precise|trusty|utopic|vivid|wily)"
77 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then 77 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then
78 if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then 78 if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then
79 echo "ERROR: Only Ubuntu 12.04 (precise), 14.04 (trusty), " \ 79 echo "ERROR: Only Ubuntu 12.04 (precise), 14.04 (trusty), " \
80 "14.10 (utopic) and 15.04 (vivid) are currently supported" >&2 80 "14.10 (utopic) and 15.04 (vivid) are currently supported" >&2
81 exit 1 81 exit 1
82 fi 82 fi
83 83
84 if ! uname -m | egrep -q "i686|x86_64"; then 84 if ! uname -m | egrep -q "i686|x86_64"; then
85 echo "Only x86 architectures are currently supported" >&2 85 echo "Only x86 architectures are currently supported" >&2
86 exit 86 exit
87 fi 87 fi
88 fi 88 fi
89 89
90 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then 90 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then
91 echo "Running as non-root user." 91 echo "Running as non-root user."
92 echo "You might have to enter your password one or more times for 'sudo'." 92 echo "You might have to enter your password one or more times for 'sudo'."
93 echo 93 echo
94 fi 94 fi
95 95
96 # Packages needed for chromeos only 96 # Packages needed for chromeos only
97 chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath" 97 chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath"
98 98
99 # Packages needed for development 99 # Packages needed for development
100 dev_list="apache2.2-bin bison cdbs curl dpkg-dev elfutils devscripts fakeroot 100 dev_list="bison cdbs curl dpkg-dev elfutils devscripts fakeroot
101 flex fonts-thai-tlwg g++ git-core git-svn gperf language-pack-da 101 flex fonts-thai-tlwg g++ git-core git-svn gperf language-pack-da
102 language-pack-fr language-pack-he language-pack-zh-hant 102 language-pack-fr language-pack-he language-pack-zh-hant
103 libapache2-mod-php5 libasound2-dev libbrlapi-dev libav-tools 103 libapache2-mod-php5 libasound2-dev libbrlapi-dev libav-tools
104 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev 104 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev
105 libdrm-dev libelf-dev libexif-dev libgconf2-dev libglib2.0-dev 105 libdrm-dev libelf-dev libexif-dev libgconf2-dev libglib2.0-dev
106 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev 106 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev
107 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev 107 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev
108 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev 108 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev
109 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox 109 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox
110 patch perl php5-cgi pkg-config python python-cherrypy3 python-crypto 110 patch perl php5-cgi pkg-config python python-cherrypy3 python-crypto
111 python-dev python-numpy python-opencv python-openssl python-psutil 111 python-dev python-numpy python-opencv python-openssl python-psutil
112 python-yaml rpm ruby subversion ttf-dejavu-core ttf-indic-fonts 112 python-yaml rpm ruby subversion ttf-dejavu-core ttf-indic-fonts
113 ttf-kochi-gothic ttf-kochi-mincho wdiff xfonts-mathml zip 113 ttf-kochi-gothic ttf-kochi-mincho wdiff
114 $chromeos_dev_list" 114 $chromeos_dev_list"
115 115
116 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built 116 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built
117 # NaCl binaries. 117 # NaCl binaries.
118 if file /sbin/init | grep -q 'ELF 64-bit'; then 118 if file /sbin/init | grep -q 'ELF 64-bit'; then
119 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" 119 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6"
120 fi 120 fi
121 121
122 # Run-time libraries required by chromeos only 122 # Run-time libraries required by chromeos only
123 chromeos_lib_list="libpulse0 libbz2-1.0" 123 chromeos_lib_list="libpulse0 libbz2-1.0"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 else 213 else
214 dev_list="${dev_list} libudev0" 214 dev_list="${dev_list} libudev0"
215 nacl_list="${nacl_list} libudev0:i386" 215 nacl_list="${nacl_list} libudev0:i386"
216 fi 216 fi
217 if package_exists libbrlapi0.6; then 217 if package_exists libbrlapi0.6; then
218 dev_list="${dev_list} libbrlapi0.6" 218 dev_list="${dev_list} libbrlapi0.6"
219 else 219 else
220 dev_list="${dev_list} libbrlapi0.5" 220 dev_list="${dev_list} libbrlapi0.5"
221 fi 221 fi
222 222
223
haltonhuo 2016/01/28 02:22:50 Woops, this deletion is not in purpose. But removi
jamesr 2016/01/28 20:21:58 This is fine
224 # Some packages are only needed if the distribution actually supports 223 # Some packages are only needed if the distribution actually supports
225 # installing them. 224 # installing them.
226 if package_exists appmenu-gtk; then 225 if package_exists appmenu-gtk; then
227 lib_list="$lib_list appmenu-gtk" 226 lib_list="$lib_list appmenu-gtk"
228 fi 227 fi
229 228
230 # When cross building for arm/Android on 64-bit systems the host binaries 229 # When cross building for arm/Android on 64-bit systems the host binaries
231 # that are part of v8 need to be compiled with -m32 which means 230 # that are part of v8 need to be compiled with -m32 which means
232 # that basic multilib support is needed. 231 # that basic multilib support is needed.
233 if file /sbin/init | grep -q 'ELF 64-bit'; then 232 if file /sbin/init | grep -q 'ELF 64-bit'; then
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 # only contains libcrypto.so.1.0.0 and not the symlink needed for 452 # only contains libcrypto.so.1.0.0 and not the symlink needed for
454 # linking (libcrypto.so). 453 # linking (libcrypto.so).
455 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ 454 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \
456 /usr/lib/i386-linux-gnu/libcrypto.so 455 /usr/lib/i386-linux-gnu/libcrypto.so
457 456
458 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ 457 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \
459 /usr/lib/i386-linux-gnu/libssl.so 458 /usr/lib/i386-linux-gnu/libssl.so
460 else 459 else
461 echo "Skipping symbolic links for NaCl." 460 echo "Skipping symbolic links for NaCl."
462 fi 461 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