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

Issue 2453043002: [Mac/GN] Fix rebuilds when changing framework_version of a mac_framework_bundle. (Closed)

Created:
4 years, 1 month ago by Robert Sesek
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac/GN] Fix rebuilds when changing framework_version of a mac_framework_bundle. Write the current framework_version to a file at gen-time, and clobber the entire framework bundle if it differs from the current value in the file. This has to be done at gen-time because it is not possible to run a script at the create_bundle stage before any other dependencies in its tree run. Take this sample graph: bundle_data --> shared_library / mac_framework_bundle \ action("clean_framework_version") It is not possible, from a mac_framework_bundle, to force the clean_framework_version action to run before the shared_library. When the action does run, its stamp will have a newer mtime than the shared_library. Because bundle_data are hard linked into place, the link source file will have an older mtime than the action, and the build will never stabilize. BUG=648757 R=dpranke@chromium.org Originally Committed: https://crrev.com/fed4fc1df8bab7159f19e04ed658c1f417e4e499 Reverted: https://crrev.com/d76ba00e6cc2625000d495e79bdc8d747645405e Committed: https://crrev.com/a74b313db5f7444667bcf6530f1b2740884f4bfd Cr-Commit-Position: refs/heads/master@{#428366}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Re-land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -2 lines) Patch
M .gn View 1 chunk +1 line, -0 lines 0 comments Download
A build/config/mac/prepare_framework_version.py View 1 1 chunk +42 lines, -0 lines 0 comments Download
M build/config/mac/rules.gni View 2 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
Robert Sesek
4 years, 1 month ago (2016-10-26 18:39:39 UTC) #3
Dirk Pranke
Why can't you just modify the mac_framework_bundle() template to make the shared_library() depend on the ...
4 years, 1 month ago (2016-10-26 19:15:15 UTC) #4
Robert Sesek
On 2016/10/26 19:15:15, Dirk Pranke (slow) wrote: > Why can't you just modify the mac_framework_bundle() ...
4 years, 1 month ago (2016-10-26 19:18:51 UTC) #5
Dirk Pranke
Right, I was guessing it'd be something like this. Let me think about this a ...
4 years, 1 month ago (2016-10-26 19:21:39 UTC) #6
Robert Sesek
On 2016/10/26 19:21:39, Dirk Pranke wrote: > Right, I was guessing it'd be something like ...
4 years, 1 month ago (2016-10-26 19:25:53 UTC) #7
Dirk Pranke
I'm still thinking about / trying to understand this a bit better. Where do we ...
4 years, 1 month ago (2016-10-26 22:13:49 UTC) #10
Robert Sesek
On 2016/10/26 22:13:49, Dirk Pranke wrote: > I'm still thinking about / trying to understand ...
4 years, 1 month ago (2016-10-26 22:14:47 UTC) #11
Dirk Pranke
lgtm, now that I understand things better. It's not terribly obvious how to do this ...
4 years, 1 month ago (2016-10-26 22:42:04 UTC) #13
brettw
LGTM https://codereview.chromium.org/2453043002/diff/1/build/config/mac/rules.gni File build/config/mac/rules.gni (right): https://codereview.chromium.org/2453043002/diff/1/build/config/mac/rules.gni#newcode317 build/config/mac/rules.gni:317: "'$_version_arg'", Are you sure you need to use ...
4 years, 1 month ago (2016-10-27 19:30:16 UTC) #14
Robert Sesek
Thanks. https://codereview.chromium.org/2453043002/diff/1/build/config/mac/rules.gni File build/config/mac/rules.gni (right): https://codereview.chromium.org/2453043002/diff/1/build/config/mac/rules.gni#newcode317 build/config/mac/rules.gni:317: "'$_version_arg'", On 2016/10/27 19:30:16, brettw (ping on IM ...
4 years, 1 month ago (2016-10-27 20:47:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2453043002/1
4 years, 1 month ago (2016-10-27 21:31:02 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-27 22:58:20 UTC) #18
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/fed4fc1df8bab7159f19e04ed658c1f417e4e499 Cr-Commit-Position: refs/heads/master@{#428183}
4 years, 1 month ago (2016-10-27 23:01:10 UTC) #20
hongchan
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2453933006/ by hongchan@chromium.org. ...
4 years, 1 month ago (2016-10-27 23:31:14 UTC) #21
Robert Sesek
On 2016/10/27 23:31:14, hongchan wrote: > A revert of this CL (patchset #1 id:1) has ...
4 years, 1 month ago (2016-10-28 13:30:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2453043002/20001
4 years, 1 month ago (2016-10-28 14:36:48 UTC) #30
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-28 14:42:46 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 14:45:12 UTC) #34
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a74b313db5f7444667bcf6530f1b2740884f4bfd
Cr-Commit-Position: refs/heads/master@{#428366}

Powered by Google App Engine
This is Rietveld 408576698