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

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

Issue 15741015: Change detection method for checking package name changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 # arm cross toolchain packages needed to build chrome on arm 116 # arm cross toolchain packages needed to build chrome on arm
117 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross 117 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross
118 libgomp1-armel-cross linux-libc-dev-armel-cross 118 libgomp1-armel-cross linux-libc-dev-armel-cross
119 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross 119 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross
120 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi 120 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi
121 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi 121 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
122 libmudflap0-dbg-armel-cross" 122 libmudflap0-dbg-armel-cross"
123 123
124 124
125 # Some package names have changed over time 125 # Some package names have changed over time
126 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then 126 if ! ( apt-cache policy ttf-mscorefonts-installer
127 | grep "Candidate: (none)" >/dev/null 2>&1 ); then
Lambros 2013/05/28 18:26:58 I don't know if this will work for non-English loc
127 dev_list="${dev_list} ttf-mscorefonts-installer" 128 dev_list="${dev_list} ttf-mscorefonts-installer"
128 else 129 else
129 dev_list="${dev_list} msttcorefonts" 130 dev_list="${dev_list} msttcorefonts"
130 fi 131 fi
131 if apt-cache show libnspr4-dbg >/dev/null 2>&1; then 132 if ! ( apt-cache policy libnspr4-dbg
133 | grep "Candidate: (none)" >/dev/null 2>&1 ); then
132 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" 134 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
133 lib_list="${lib_list} libnspr4 libnss3" 135 lib_list="${lib_list} libnspr4 libnss3"
134 else 136 else
135 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" 137 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
136 lib_list="${lib_list} libnspr4-0d libnss3-1d" 138 lib_list="${lib_list} libnspr4-0d libnss3-1d"
137 fi 139 fi
138 if apt-cache show libjpeg-dev >/dev/null 2>&1; then 140 if ! ( apt-cache policy libjpeg-dev
141 | grep "Candidate: (none)" >/dev/null 2>&1 ); then
139 dev_list="${dev_list} libjpeg-dev" 142 dev_list="${dev_list} libjpeg-dev"
140 else 143 else
141 dev_list="${dev_list} libjpeg62-dev" 144 dev_list="${dev_list} libjpeg62-dev"
142 fi 145 fi
143 if apt-cache show libudev1 >/dev/null 2>&1; then 146 if ! ( apt-cache policy libudev1
147 | grep "Candidate: (none)" >/dev/null 2>&1 ); then
144 dev_list="${dev_list} libudev1" 148 dev_list="${dev_list} libudev1"
145 else 149 else
146 dev_list="${dev_list} libudev0" 150 dev_list="${dev_list} libudev0"
147 fi 151 fi
148 152
149 153
150 # Some packages are only needed, if the distribution actually supports 154 # Some packages are only needed, if the distribution actually supports
151 # installing them. 155 # installing them.
152 if apt-cache show appmenu-gtk >/dev/null 2>&1; then 156 if ! ( apt-cache policy appmenu-gtk
157 | grep "Candidate: (none)" >/dev/null 2>&1 ); then
153 lib_list="$lib_list appmenu-gtk" 158 lib_list="$lib_list appmenu-gtk"
154 fi 159 fi
155 160
156 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is 161 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is
157 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has 162 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has
158 # been provided to yes_no(), the function also accepts RETURN as a user input. 163 # been provided to yes_no(), the function also accepts RETURN as a user input.
159 # The parameter specifies the exit code that should be returned in that case. 164 # The parameter specifies the exit code that should be returned in that case.
160 # The function will echo the user's selection followed by a newline character. 165 # The function will echo the user's selection followed by a newline character.
161 # Users can abort the function by pressing CTRL-C. This will call "exit 1". 166 # Users can abort the function by pressing CTRL-C. This will call "exit 1".
162 yes_no() { 167 yes_no() {
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 sed -e 's/[.]so[.][0-9].*/.so/' | 500 sed -e 's/[.]so[.][0-9].*/.so/' |
496 sort -u); do 501 sort -u); do
497 [ "x${i##*/}" = "xld-linux.so" ] && continue 502 [ "x${i##*/}" = "xld-linux.so" ] && continue
498 [ -r "$i" ] && continue 503 [ -r "$i" ] && continue
499 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 504 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
500 sort -n | tail -n 1)" 505 sort -n | tail -n 1)"
501 [ -r "$i.$j" ] || continue 506 [ -r "$i.$j" ] || continue
502 sudo ln -s "${i##*/}.$j" "$i" 507 sudo ln -s "${i##*/}.$j" "$i"
503 done 508 done
504 fi 509 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