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

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

Issue 14718016: install-build-deps: Install libudev1 for Ubuntu 13.04 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use apt-cache instead of lsb_release 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 24 matching lines...) Expand all
35 --no-prompt) do_default=1 35 --no-prompt) do_default=1
36 do_quietly="-qq --assume-yes" 36 do_quietly="-qq --assume-yes"
37 ;; 37 ;;
38 --unsupported) do_unsupported=1;; 38 --unsupported) do_unsupported=1;;
39 *) usage;; 39 *) usage;;
40 esac 40 esac
41 shift 41 shift
42 done 42 done
43 43
44 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10|13\.04" 44 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10|13\.04"
45 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal" 45 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal|raring"
46 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)" 46 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)"
47 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue 47 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue
48 # doesn't contain a version number so just trust that the user knows what 48 # doesn't contain a version number so just trust that the user knows what
49 # they're doing. 49 # they're doing.
50 gcel_issue="^GCEL" 50 gcel_issue="^GCEL"
51 51
52 if [ 0 -eq "${do_unsupported-0}" ] ; then 52 if [ 0 -eq "${do_unsupported-0}" ] ; then
53 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then 53 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then
54 echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.10 (quantal) are"\ 54 echo "ERROR: Only Ubuntu 10.04 (lucid) through 13.04 (raring) are"\
55 "currently supported" >&2 55 "currently supported" >&2
56 exit 1 56 exit 1
57 fi 57 fi
58 58
59 if ! uname -m | egrep -q "i686|x86_64"; then 59 if ! uname -m | egrep -q "i686|x86_64"; then
60 echo "Only x86 architectures are currently supported" >&2 60 echo "Only x86 architectures are currently supported" >&2
61 exit 61 exit
62 fi 62 fi
63 fi 63 fi
64 64
(...skipping 28 matching lines...) Expand all
93 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" 93 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6"
94 fi 94 fi
95 95
96 # Run-time libraries required by chromeos only 96 # Run-time libraries required by chromeos only
97 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" 97 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev"
98 98
99 # Full list of required run-time libraries 99 # Full list of required run-time libraries
100 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 100 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1
101 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 101 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0
102 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 102 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0
103 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libudev0 libx11-6 103 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6
104 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 104 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
105 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 105 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1
106 libxtst6 zlib1g $chromeos_lib_list" 106 libxtst6 zlib1g $chromeos_lib_list"
107 107
108 # Debugging symbols for all of the run-time libraries 108 # Debugging symbols for all of the run-time libraries
109 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg 109 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg
110 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg 110 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg
111 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg 111 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg
112 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg 112 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg
113 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg 113 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg
(...skipping 15 matching lines...) Expand all
129 dev_list="${dev_list} msttcorefonts" 129 dev_list="${dev_list} msttcorefonts"
130 fi 130 fi
131 if apt-cache show libnspr4-dbg >/dev/null 2>&1; then 131 if apt-cache show libnspr4-dbg >/dev/null 2>&1; then
132 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" 132 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
133 lib_list="${lib_list} libnspr4 libnss3" 133 lib_list="${lib_list} libnspr4 libnss3"
134 else 134 else
135 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" 135 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
136 lib_list="${lib_list} libnspr4-0d libnss3-1d" 136 lib_list="${lib_list} libnspr4-0d libnss3-1d"
137 fi 137 fi
138 if apt-cache show libjpeg-dev >/dev/null 2>&1; then 138 if apt-cache show libjpeg-dev >/dev/null 2>&1; then
139 dev_list="${dev_list} libjpeg-dev" 139 dev_list="${dev_list} libjpeg-dev"
140 else 140 else
141 dev_list="${dev_list} libjpeg62-dev" 141 dev_list="${dev_list} libjpeg62-dev"
142 fi 142 fi
143 if apt-cache show libudev1 >/dev/null 2>&1; then
144 dev_list="${dev_list} libudev1"
145 else
146 dev_list="${dev_list} libudev0"
147 fi
148
143 149
144 # Some packages are only needed, if the distribution actually supports 150 # Some packages are only needed, if the distribution actually supports
145 # installing them. 151 # installing them.
146 if apt-cache show appmenu-gtk >/dev/null 2>&1; then 152 if apt-cache show appmenu-gtk >/dev/null 2>&1; then
147 lib_list="$lib_list appmenu-gtk" 153 lib_list="$lib_list appmenu-gtk"
148 fi 154 fi
149 155
150 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is 156 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is
151 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has 157 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has
152 # been provided to yes_no(), the function also accepts RETURN as a user input. 158 # been provided to yes_no(), the function also accepts RETURN as a user input.
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 sed -e 's/[.]so[.][0-9].*/.so/' | 495 sed -e 's/[.]so[.][0-9].*/.so/' |
490 sort -u); do 496 sort -u); do
491 [ "x${i##*/}" = "xld-linux.so" ] && continue 497 [ "x${i##*/}" = "xld-linux.so" ] && continue
492 [ -r "$i" ] && continue 498 [ -r "$i" ] && continue
493 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 499 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
494 sort -n | tail -n 1)" 500 sort -n | tail -n 1)"
495 [ -r "$i.$j" ] || continue 501 [ -r "$i.$j" ] || continue
496 sudo ln -s "${i##*/}.$j" "$i" 502 sudo ln -s "${i##*/}.$j" "$i"
497 done 503 done
498 fi 504 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