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

Issue 153623011: android envsetup: Remove --host-os flag. (Closed)

Created:
6 years, 10 months ago by Nico
Modified:
6 years, 10 months ago
Reviewers:
Torne
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, android-webview-reviews_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

android envsetup: Remove --host-os flag. Clients should set the host_os gyp variable instead. (As far as I can tell, this flag was added for the webview build, and this CL updates gyp_webview to use the gyp define instead. I haven't found other clients.) Since several gyp targets check the value of host_os in a target_conditions block and most of the build/common.gypi variables aren't available during target_conditions processing time, use the same trick that chromium_code uses to make host_os available at target_conditions time. BUG=330631 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251138

Patch Set 1 #

Patch Set 2 : android envsetup: Remove --host-os flag. #

Patch Set 3 : rebase #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : ios! #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -32 lines) Patch
M android_webview/tools/gyp_webview View 1 chunk +12 lines, -12 lines 0 comments Download
M build/android/envsetup_functions.sh View 4 chunks +5 lines, -20 lines 2 comments Download
M build/common.gypi View 1 2 3 4 5 6 4 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Nico
6 years, 10 months ago (2014-02-11 02:31:30 UTC) #1
Torne
lgtm
6 years, 10 months ago (2014-02-11 10:37:09 UTC) #2
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 10 months ago (2014-02-13 06:27:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/153623011/330001
6 years, 10 months ago (2014-02-13 06:28:04 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 07:52:55 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=263322
6 years, 10 months ago (2014-02-13 07:52:56 UTC) #6
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 10 months ago (2014-02-13 18:27:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/153623011/330001
6 years, 10 months ago (2014-02-13 18:28:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/153623011/330001
6 years, 10 months ago (2014-02-13 19:57:18 UTC) #9
commit-bot: I haz the power
Change committed as 251138
6 years, 10 months ago (2014-02-13 21:48:29 UTC) #10
Torne
Sorry about this, I missed an issue with this cl. https://codereview.chromium.org/153623011/diff/330001/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): https://codereview.chromium.org/153623011/diff/330001/build/android/envsetup_functions.sh#newcode172 ...
6 years, 10 months ago (2014-02-21 11:32:49 UTC) #11
Nico
https://codereview.chromium.org/153623011/diff/330001/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): https://codereview.chromium.org/153623011/diff/330001/build/android/envsetup_functions.sh#newcode172 build/android/envsetup_functions.sh:172: '${ANDROID_SDK_ROOT}/../tools/' + sys.platform.rstrip('23'), \ On 2014/02/21 11:32:49, Torne wrote: ...
6 years, 10 months ago (2014-02-21 15:07:43 UTC) #12
Torne
6 years, 10 months ago (2014-02-21 15:10:01 UTC) #13
Message was sent while issue was closed.
On 2014/02/21 15:07:43, Nico wrote:
>
https://codereview.chromium.org/153623011/diff/330001/build/android/envsetup_...
> File build/android/envsetup_functions.sh (right):
> 
>
https://codereview.chromium.org/153623011/diff/330001/build/android/envsetup_...
> build/android/envsetup_functions.sh:172: '${ANDROID_SDK_ROOT}/../tools/' +
> sys.platform.rstrip('23'), \
> On 2014/02/21 11:32:49, Torne wrote:
> > Unfortunately this broke downstream mac builds and I didn't notice.
> > 
> > We generate all the makefiles in one go, on linux, even for mac hosts, so
> > sys.platform here is always "linux[23]", never "darwin". So, mac is now
trying
> > to run the linux version of the sdk tools and failing. We need to respect
> > host_os and not detect anything based on the current platform :/
> 
> D'oh, sorry!
> 
> > To make matters more irritating, this CL made the M34 branch, but a fix on
> trunk
> > will not, so we probably need to fix this separately on M34. I'll see if I
> have
> > time to deal with that later today..
> 
> Can't you do the regular merge process? (File a bug, fix on trunk, set
> merge-requested on bug, drover over to branch)?

Yes, but the same CL probably won't apply on both as I don't think *all* of your
envsetup refactoring made the M34 branch point. If I'm mistaken then a direct
merge may work :)

Powered by Google App Engine
This is Rietveld 408576698