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

Issue 740963002: Fix g++-multilib conflict between install-build-deps scripts (Closed)

Created:
6 years, 1 month ago by johnme
Modified:
6 years ago
CC:
chromium-reviews, phajdan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix g++-multilib conflict between install-build-deps scripts Currently install-build-deps-android.sh installs g++-multilib which conflicts with packages installed by install-build-deps.sh (since gcc-multilib contains a /usr/include/asm symlink and the crosscompiler packagers don't want you to accidentally include the wrong architecture's asm headers). The g++-multilib package was wrongly commented as being required for Android SDK; it turns out these requirements have changed, so I updated the libraries required for the Android SDK based on their docs. g++-4.8-multilib is however still (likely) needed, alongside linux-libc-dev:i386, for compiling the V8 snapshot. So I've consolidated those deps, and the logic for selecting them, under the --lib32 flag of install-build-deps (to avoid duplicating the code in both). I updated the `if (trusty) install g++-4.8-multilib` logic so it chooses the right version of the multilib automatically, rather than hardcoding the version needed for trusty (which will break in utopic or beyond). Finally I removed the `sudo apt-get update` in install-build-deps-android which is redundant now that we call install-build-deps which already does that. And I added `sudo dpkg --add-architecture i386` which seems to have been missing from these scripts. BUG=435056 Committed: https://crrev.com/49bb458a54a0e959f91ef612c79fad89e7d65c91 Cr-Commit-Position: refs/heads/master@{#305991}

Patch Set 1 #

Patch Set 2 : A possible approach (passes --arm to install-build-deps.sh) #

Patch Set 3 : Use --lib32 flag of install-build-deps for shared 32-bit libraries #

Patch Set 4 : Avoid unnecessary --add-architecture #

Total comments: 4

Patch Set 5 : Actually use lib32_list! #

Patch Set 6 : Moved g++-X.Y-multilib section up closer to lib32_list definition #

Total comments: 4

Patch Set 7 : Fix missing fi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -27 lines) Patch
M build/install-build-deps.sh View 1 2 3 4 5 6 8 chunks +34 lines, -17 lines 0 comments Download
M build/install-build-deps-android.sh View 1 2 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
johnme
6 years, 1 month ago (2014-11-20 11:40:34 UTC) #2
Sam Clegg
I don't know enough about how the android build works on what it needs to ...
6 years ago (2014-11-25 03:20:48 UTC) #3
johnme
+Torne, any thoughts?
6 years ago (2014-11-25 14:22:19 UTC) #5
Torne
Not quite the right fix as discussed offline with John; he'll prepare another version. The ...
6 years ago (2014-11-25 16:56:20 UTC) #6
Sam Clegg
On 2014/11/25 16:56:20, Torne wrote: > Not quite the right fix as discussed offline with ...
6 years ago (2014-11-25 17:10:47 UTC) #7
Torne
On 2014/11/25 17:10:47, Sam Clegg wrote: > On 2014/11/25 16:56:20, Torne wrote: > > Not ...
6 years ago (2014-11-25 17:13:59 UTC) #8
Primiano Tucci (use gerrit)
The rationale and logic look good but need a fix to actually work :) (see ...
6 years ago (2014-11-26 16:41:43 UTC) #10
johnme
https://codereview.chromium.org/740963002/diff/60001/build/install-build-deps.sh File build/install-build-deps.sh (right): https://codereview.chromium.org/740963002/diff/60001/build/install-build-deps.sh#newcode144 build/install-build-deps.sh:144: lib32_list="linux-libc-dev:i386" On 2014/11/26 16:41:43, Primiano Tucci wrote: > Can ...
6 years ago (2014-11-26 17:14:37 UTC) #11
Sam Clegg
https://codereview.chromium.org/740963002/diff/100001/build/install-build-deps.sh File build/install-build-deps.sh (right): https://codereview.chromium.org/740963002/diff/100001/build/install-build-deps.sh#newcode214 build/install-build-deps.sh:214: # When cross building for arm/Android on 64-bit systems ...
6 years ago (2014-11-26 17:24:22 UTC) #12
Primiano Tucci (use gerrit)
LGTM. If you want before committing I can kick off two VMs (precise and trusty) ...
6 years ago (2014-11-26 17:27:42 UTC) #13
Sam Clegg
On 2014/11/26 17:27:42, Primiano Tucci wrote: > LGTM. If you want before committing I can ...
6 years ago (2014-11-26 17:33:33 UTC) #14
johnme
On 2014/11/26 17:33:33, Sam Clegg wrote: > https://codereview.chromium.org/740963002/diff/100001/build/install-build-deps.sh#newcode349 > > build/install-build-deps.sh:349: sudo dpkg --add-architecture i386 ...
6 years ago (2014-11-26 18:28:44 UTC) #15
Sam Clegg
On 2014/11/26 18:28:44, johnme wrote: > On 2014/11/26 17:33:33, Sam Clegg wrote: > > > ...
6 years ago (2014-11-26 18:30:06 UTC) #16
Torne
lgtm
6 years ago (2014-11-27 14:54:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/740963002/120001
6 years ago (2014-11-27 15:00:41 UTC) #19
johnme
On 2014/11/26 17:27:42, Primiano Tucci wrote: > LGTM. If you want before committing I can ...
6 years ago (2014-11-27 15:03:35 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years ago (2014-11-27 15:45:38 UTC) #21
commit-bot: I haz the power
6 years ago (2014-11-27 15:46:29 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/49bb458a54a0e959f91ef612c79fad89e7d65c91
Cr-Commit-Position: refs/heads/master@{#305991}

Powered by Google App Engine
This is Rietveld 408576698