Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(718)

Issue 10893044: code review 10893044: dist: fix postinstall script for Darwin

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by Alexandre Normand
Modified:
11 years, 11 months ago
Reviewers:
minux1, adg
CC:
golang-dev, minux1, adg
Visibility:
Public.

Description

dist: fix postinstall script for Darwin The postinstall script causes the installation to fail because the last step that copies files for Xcode is broken. Two details can cause the command to fail: 1. The XCODE_MISC_DIR value has a space. Without quotes in the cp command, cp will just complain that this is an invalid syntax. 2. The source of the cp is a directory with two subdirectories. We actually want the files for either Xcode 3 or Xcode 4 to be copied. Using xcodebuild -version, we check for the Xcode version and select which of xcode/3/* or xcode/4/* should be the source of the copy. Fixes issue 5874.

Patch Set 1 #

Patch Set 2 : diff -r 7fe684ce48ef https://code.google.com/p/go/ #

Patch Set 3 : diff -r 7fe684ce48ef https://code.google.com/p/go/ #

Patch Set 4 : diff -r 7fe684ce48ef https://code.google.com/p/go/ #

Patch Set 5 : diff -r 7fe684ce48ef https://code.google.com/p/go/ #

Patch Set 6 : diff -r 7fe684ce48ef https://code.google.com/p/go/ #

Patch Set 7 : diff -r 7fe684ce48ef https://code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M misc/dist/darwin/scripts/postinstall View 1 2 3 4 5 1 chunk +17 lines, -4 lines 1 comment Download

Messages

Total messages: 14
Alexandre Normand
Hello golang-dev@googlegroups.com (cc: shenghou ma <minux.ma@gmail.com>), I'd like you to review this change to https://code.google.com/p/go/
11 years, 11 months ago (2013-07-12 04:57:51 UTC) #1
minux1
the change looks good, just one question. we also have specification files for Xcode 3, ...
11 years, 11 months ago (2013-07-12 05:57:26 UTC) #2
Alexandre Normand
On 2013/07/12 05:57:26, minux wrote: > the change looks good, just one question. > > ...
11 years, 11 months ago (2013-07-12 14:47:37 UTC) #3
Alexandre Normand
Hello golang-dev@googlegroups.com, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 11 months ago (2013-07-13 03:41:05 UTC) #4
minux1
LGTM. thank you. btw, /Library/Application Support/Developer/Shared/Xcode/ doesn't exist on my OS X 10.6 machine, should ...
11 years, 11 months ago (2013-07-14 16:58:59 UTC) #5
Alexandre Normand
On 2013/07/14 16:58:59, minux wrote: > LGTM. thank you. > > btw, /Library/Application Support/Developer/Shared/Xcode/ doesn't ...
11 years, 11 months ago (2013-07-14 17:16:55 UTC) #6
minux1
On Mon, Jul 15, 2013 at 1:16 AM, <alexandre.normand@gmail.com> wrote: > We check the existence ...
11 years, 11 months ago (2013-07-14 17:24:39 UTC) #7
Alexandre Normand
Hello golang-dev@googlegroups.com, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 11 months ago (2013-07-14 18:02:03 UTC) #8
Alexandre Normand
On 2013/07/14 17:24:39, minux wrote: > On Mon, Jul 15, 2013 at 1:16 AM, <mailto:alexandre.normand@gmail.com> ...
11 years, 11 months ago (2013-07-14 18:02:33 UTC) #9
minux1
LGTM. Thank you very much, i'm completely satisfied. Will wait some time before submitting in ...
11 years, 11 months ago (2013-07-14 18:10:11 UTC) #10
minux1
and, please update the description, it's no longer accurate.
11 years, 11 months ago (2013-07-14 18:10:33 UTC) #11
Alexandre Normand
On 2013/07/14 18:10:33, minux wrote: > and, please update the description, it's no longer accurate. ...
11 years, 11 months ago (2013-07-14 18:14:09 UTC) #12
adg
LGTM https://codereview.appspot.com/10893044/diff/22001/misc/dist/darwin/scripts/postinstall File misc/dist/darwin/scripts/postinstall (right): https://codereview.appspot.com/10893044/diff/22001/misc/dist/darwin/scripts/postinstall#newcode25 misc/dist/darwin/scripts/postinstall:25: version=4 trailing tab
11 years, 11 months ago (2013-07-15 00:45:51 UTC) #13
adg
11 years, 11 months ago (2013-07-15 00:52:42 UTC) #14
*** Submitted as https://code.google.com/p/go/source/detail?r=dcc14ba7a1e5 ***

dist: fix postinstall script for Darwin

The postinstall script causes the installation to fail because the last
step that copies files for Xcode is broken. Two details can cause the
command to fail:
  1. The XCODE_MISC_DIR value has a space. Without quotes in the cp
     command, cp will just complain that this is an invalid syntax.
  2. The source of the cp is a directory with two subdirectories.
     We actually want the files for either Xcode 3 or Xcode 4 to be copied.
     Using xcodebuild -version, we check for the Xcode version and
     select which of xcode/3/* or xcode/4/* should be the source
     of the copy.

Fixes issue 5874.

R=golang-dev, minux.ma, adg
CC=golang-dev
https://codereview.appspot.com/10893044

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b