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

Issue 1434453002: Improve install-build-deps mesa handling. (Closed)

Created:
5 years, 1 month ago by Torne
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve install-build-deps mesa handling. Instead of hardcoding a list of which LTS variants of mesa might be installed, just query for any package that matches the expected pattern and if exactly one is installed, use that. If zero are installed, use the base package. There shouldn't be more than one as these packages conflict with each other, so just abort if that happens. This avoids needing to extend the loop in this script every time a new Ubuntu backport package is added. BUG= Committed: https://crrev.com/8a6eb6958e85d742f70a8cc4c85a24c5efa93cee Cr-Commit-Position: refs/heads/master@{#358039}

Patch Set 1 #

Patch Set 2 : Replace list with a better approach #

Total comments: 2

Patch Set 3 : fix array length count #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -10 lines) Patch
M build/install-build-deps.sh View 1 2 1 chunk +19 lines, -10 lines 0 comments Download

Messages

Total messages: 31 (6 generated)
Torne
Seems like some people have -lts-vivid installed now. Rather than update this list, I came ...
5 years, 1 month ago (2015-11-04 11:39:11 UTC) #3
Torne
also +thestig who also has messed with this if i recall.
5 years, 1 month ago (2015-11-04 11:46:10 UTC) #5
henrika (OOO until Aug 14)
Tried it on my machine (Thinkpad X1 Carbon Ubuntu 14.04 LTS) but see this: ERROR: ...
5 years, 1 month ago (2015-11-04 11:57:28 UTC) #6
Torne
On 2015/11/04 11:57:28, henrika wrote: > Tried it on my machine (Thinkpad X1 Carbon Ubuntu ...
5 years, 1 month ago (2015-11-04 12:03:35 UTC) #7
misch
https://codereview.chromium.org/1434453002/diff/20001/build/install-build-deps.sh File build/install-build-deps.sh (right): https://codereview.chromium.org/1434453002/diff/20001/build/install-build-deps.sh#newcode185 build/install-build-deps.sh:185: libgl1-mesa-glx-lts-\* | \ You have to filter out packages ...
5 years, 1 month ago (2015-11-04 12:22:07 UTC) #9
Torne
On 2015/11/04 12:22:07, misch wrote: > https://codereview.chromium.org/1434453002/diff/20001/build/install-build-deps.sh > File build/install-build-deps.sh (right): > > https://codereview.chromium.org/1434453002/diff/20001/build/install-build-deps.sh#newcode185 > ...
5 years, 1 month ago (2015-11-04 12:27:15 UTC) #10
chromium-reviews
You want to identify the mesa_variant as you call it. For this you only need ...
5 years, 1 month ago (2015-11-04 12:34:18 UTC) #11
Torne
On 2015/11/04 12:34:18, chromium-reviews wrote: > You want to identify the mesa_variant as you call ...
5 years, 1 month ago (2015-11-04 12:36:25 UTC) #12
henrika (OOO until Aug 14)
I print out ${mesa_packages[@] and see: libgl1-mesa-glx-lts-vivid
5 years, 1 month ago (2015-11-04 12:42:40 UTC) #13
misch
On 2015/11/04 12:36:25, Torne wrote: > On 2015/11/04 12:34:18, chromium-reviews wrote: > > You want ...
5 years, 1 month ago (2015-11-04 12:45:00 UTC) #14
Torne
On 2015/11/04 12:42:40, henrika wrote: > I print out ${mesa_packages[@] and see: > > libgl1-mesa-glx-lts-vivid ...
5 years, 1 month ago (2015-11-04 12:47:31 UTC) #15
Torne
On 2015/11/04 12:45:00, misch wrote: > On 2015/11/04 12:36:25, Torne wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 12:48:14 UTC) #16
misch
On 2015/11/04 12:48:14, Torne wrote: > On 2015/11/04 12:45:00, misch wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 13:42:36 UTC) #17
misch
5 years, 1 month ago (2015-11-04 13:42:57 UTC) #18
misch
https://codereview.chromium.org/1434453002/diff/20001/build/install-build-deps.sh File build/install-build-deps.sh (right): https://codereview.chromium.org/1434453002/diff/20001/build/install-build-deps.sh#newcode185 build/install-build-deps.sh:185: libgl1-mesa-glx-lts-\* | \ On 2015/11/04 12:22:06, misch wrote: > ...
5 years, 1 month ago (2015-11-04 13:43:18 UTC) #19
Torne
On 2015/11/04 13:42:36, misch wrote: > On 2015/11/04 12:48:14, Torne wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 13:45:45 UTC) #20
misch
On 2015/11/04 13:45:45, Torne wrote: > On 2015/11/04 13:42:36, misch wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 13:48:51 UTC) #21
Torne
OK, fixed that now. misch@, can you confirm the script now works for you?
5 years, 1 month ago (2015-11-04 16:17:47 UTC) #22
henrika (OOO until Aug 14)
Works for me now. Many thanks. Great job ;-)
5 years, 1 month ago (2015-11-04 16:48:53 UTC) #23
henrika (OOO until Aug 14)
Not sure if is related but after running the new script (works), I can't do ...
5 years, 1 month ago (2015-11-04 16:54:53 UTC) #24
Torne
Oh, just realised that build actually has OWNERS now. So, er, +dpranke I guess. ;)
5 years, 1 month ago (2015-11-04 16:55:41 UTC) #26
Dirk Pranke
lgtm
5 years, 1 month ago (2015-11-04 22:45:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1434453002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1434453002/40001
5 years, 1 month ago (2015-11-05 12:36:10 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-05 12:43:21 UTC) #30
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 12:44:13 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8a6eb6958e85d742f70a8cc4c85a24c5efa93cee
Cr-Commit-Position: refs/heads/master@{#358039}

Powered by Google App Engine
This is Rietveld 408576698