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

Unified Diff: build/install-build-deps.sh

Issue 344623002: Fix installation of libgbm-dev package in install-build-deps.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (after thakis@ birthday attacked me :P) 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps.sh
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index 3b4dcf4e98a95e151e7bc3fb9572e28fcc687860..5cb252298357baa4a05885f4736dbdd38fb6d07d 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -99,15 +99,15 @@ dev_list="apache2.2-bin bison curl dpkg-dev elfutils devscripts fakeroot flex
language-pack-he language-pack-zh-hant libapache2-mod-php5
libasound2-dev libbrlapi-dev libbz2-dev libcairo2-dev libcap-dev
libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexif-dev
- libgbm-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev
- libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev
- libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev
- libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev
- libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev
- mesa-common-dev openbox patch perl php5-cgi pkg-config python
- python-cherrypy3 python-dev python-psutil rpm ruby subversion
- ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho
- wdiff xfonts-mathml zip $chromeos_dev_list"
+ libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev
+ libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev
+ libnss3-dev libpam0g-dev libpci-dev libpulse-dev libsctp-dev
+ libspeechd-dev libsqlite3-dev libssl-dev libudev-dev libwww-perl
+ libxslt1-dev libxss-dev libxt-dev libxtst-dev mesa-common-dev openbox
+ patch perl php5-cgi pkg-config python python-cherrypy3 python-dev
+ python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts
+ ttf-kochi-gothic ttf-kochi-mincho wdiff xfonts-mathml zip
+ $chromeos_dev_list"
# 64-bit systems need a minimum set of 32-bit compat packages for the pre-built
# NaCl binaries. These are always needed, regardless of whether or not we want
@@ -145,12 +145,24 @@ arm_list="libc6-dev-armhf-cross
# Packages to build NaCl, its toolchains, and its ports.
nacl_list="autoconf bison cmake g++-mingw-w64-i686 gawk lib32z1-dev
libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386
- libfontconfig1:i386 libgconf-2-4:i386 libgl1-mesa-glx:i386
- libglib2.0-0:i386 libgpm2:i386 libgtk2.0-0:i386 libncurses5:i386
- libnss3:i386 libpango1.0-0:i386 libssl0.9.8:i386 libtinfo-dev
- libtinfo-dev:i386 libtool libxcomposite1:i386 libxcursor1:i386
- libxdamage1:i386 libxi6:i386 libxrandr2:i386 libxss1:i386
- libxtst6:i386 texinfo xvfb"
+ libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386
+ libgtk2.0-0:i386 libncurses5:i386 libnss3:i386 libpango1.0-0:i386
+ libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool
+ libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386
+ libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb"
+
+# Find the proper version of libgbm-dev. We can't just install libgbm-dev as
+# it depends on mesa, and only one version of mesa can exists on the system.
+# Hence we must match the same version or this entire script will fail.
+mesa_variant=""
+for variant in "-lts-quantal" "-lts-raring" "-lts-saucy"; do
+ if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \
+ grep -q " ok installed"); then
+ mesa_variant="${variant}"
+ fi
+done
+dev_list="${dev_list} libgbm-dev${mesa_variant}"
+nacl_list="${nacl_list} libgl1-mesa-glx${mesa_variant}:i386"
# Some package names have changed over time
if package_exists ttf-mscorefonts-installer; then
« 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