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

Issue 1322002: Change how version_build_patch is computed to allow PATCH > 255 (Closed)

Created:
10 years, 9 months ago by jaysoffian
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Change how version_build_patch is computed to allow PATCH > 255 version_build_patch is built as BUILD.PATCH and then used to set DYLIB_CURRENT_VERSION and DYLIB_COMPATIBILITY_VERSION on Mac OS X. These VERSION strings have the format X.Y.Z, where X cannot exceed 65535 and Y and Z cannot exceed 255 (see the ld man page). In order to allow PATCH to exceed 255, change version_build_patch to BUILD.PATCH/256.PATCH%256. BUG=39244 TEST=Set PATCH > 255 in chrome/VERSION, rebuild, and use otool -L to confirm version Patch by Jay Soffian <jaysoffian@gmail.com>; Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42771

Patch Set 1 #

Patch Set 2 : rebased against trunk and simplified changes to version.py a bit #

Total comments: 2

Patch Set 3 : incorporated Mark's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -17 lines) Patch
M chrome/chrome.gyp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/tools/build/version.py View 1 2 5 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jaysoffian
10 years, 9 months ago (2010-03-24 23:45:42 UTC) #1
Mark Mentovai
http://codereview.chromium.org/1322002/diff/9001/10001 File chrome/chrome.gyp (right): http://codereview.chromium.org/1322002/diff/9001/10001#newcode16 chrome/chrome.gyp:16: 'version_build_patch': This is no longer really build_patch, but a ...
10 years, 9 months ago (2010-03-25 01:46:08 UTC) #2
jaysoffian
Thanks for the feedback. I've addressed it in patch set 3.
10 years, 9 months ago (2010-03-25 02:09:14 UTC) #3
Mark Mentovai
LGTM. I’ll check this in. Thanks for the patch.
10 years, 9 months ago (2010-03-26 16:28:16 UTC) #4
Mark Mentovai
10 years, 9 months ago (2010-03-26 16:32:14 UTC) #5
r42771

Powered by Google App Engine
This is Rietveld 408576698