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

Issue 157067: go: makes it build for the case $GOROOT has whitespaces (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by sergio (larces)
Modified:
15 years, 4 months ago
Reviewers:
dsymonds, rsc
Visibility:
Public.

Description

go: makes it build for the case $GOROOT has whitespaces the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115.

Patch Set 1 #

Patch Set 2 : code review 157067: go: makes it build for the case $GOROOT has whitespaces #

Patch Set 3 : code review 157067: go: makes it build for the case $GOROOT has whitespaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -294 lines) Patch
M doc/progs/run View 1 chunk +1 line, -1 line 0 comments Download
M misc/cgo/gmp/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M misc/cgo/stdio/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/Make.cmd View 2 chunks +9 lines, -4 lines 0 comments Download
M src/Make.conf View 1 chunk +3 lines, -3 lines 0 comments Download
M src/Make.pkg View 1 2 4 chunks +12 lines, -6 lines 0 comments Download
M src/clean.bash View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/5a/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/5c/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/5g/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/5l/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/6a/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/6c/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/6g/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/6l/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/8a/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/8c/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/8g/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/8l/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/cgo/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/cov/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/ebnflint/Makefile View 1 chunk +3 lines, -3 lines 0 comments Download
M src/cmd/gc/mkbuiltin View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/godefs/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/godoc/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/gofmt/Makefile View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/cmd/gofmt/test.sh View 1 2 8 chunks +14 lines, -14 lines 0 comments Download
M src/cmd/gopack/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/gotest/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/gotest/gotest View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/goyacc/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/hgpatch/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/make.bash View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/nm/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/prof/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/lib9/Makefile View 2 chunks +4 lines, -4 lines 0 comments Download
M src/libbio/Makefile View 2 chunks +3 lines, -3 lines 0 comments Download
M src/libcgo/Makefile View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M src/libmach/Makefile View 2 chunks +3 lines, -3 lines 0 comments Download
M src/make.bash View 2 chunks +8 lines, -8 lines 0 comments Download
M src/make-arm.bash View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/Makefile View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/archive/tar/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/asn1/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/big/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/bignum/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/bufio/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/bytes/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/compress/flate/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/compress/gzip/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/compress/zlib/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/container/heap/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/container/list/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/container/ring/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/container/vector/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/aes/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/block/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/hmac/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/md5/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/rc4/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/rsa/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/sha1/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/subtle/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/tls/Makefile View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/x509/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/debug/dwarf/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/debug/elf/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/debug/gosym/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/debug/macho/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/debug/proc/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/ebnf/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/ascii85/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/base64/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/binary/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/git85/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/hex/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/pem/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exec/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/datafmt/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/draw/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/eval/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/eval/test.bash View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/exception/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/iterable/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/nacl/av/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/nacl/srpc/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/ogle/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/expvar/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/flag/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/fmt/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/go/ast/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/go/doc/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/go/parser/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/go/printer/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/go/scanner/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/go/token/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/gob/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/hash/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/hash/adler32/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/hash/crc32/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/http/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/image/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/image/png/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/io/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/json/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/log/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/malloc/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/math/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/once/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/os/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/patch/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/path/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/rand/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/reflect/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/regexp/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/rpc/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/sort/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/strconv/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/strings/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/sync/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/syscall/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/tabwriter/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/template/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/testing/Makefile View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/testing/iotest/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/testing/quick/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/testing/script/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/time/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/unicode/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/utf8/Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/xml/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
M src/sudo.bash View 1 chunk +1 line, -1 line 0 comments Download
M test/bench/timing.sh View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
sergio (larces)
Hello rsc, this is a rather large patch, if you are brave enough heh it's ...
15 years, 4 months ago (2009-11-18 18:09:39 UTC) #1
rsc
adding dsymonds so that you can coordinate.
15 years, 4 months ago (2009-11-18 18:16:07 UTC) #2
dsymonds
On 2009/11/18 18:16:07, rsc wrote: > adding dsymonds so that you can coordinate. sergio's CL ...
15 years, 4 months ago (2009-11-18 21:06:09 UTC) #3
sergio (larces)
just remember this needs also http://codereview.appspot.com/157066/show for handling the #pragma dynld with whitespaces in the ...
15 years, 4 months ago (2009-11-18 21:25:37 UTC) #4
sergio (larces)
Updated Make.pkg, removing the debugging "set -x" option.
15 years, 4 months ago (2009-11-18 22:26:53 UTC) #5
rsc
LGTM Thanks. I can't believe how terrible make is about this.
15 years, 4 months ago (2009-11-20 05:13:07 UTC) #6
rsc
I'm having a hard time figuring out which base you started with so that I ...
15 years, 4 months ago (2009-11-23 23:56:17 UTC) #7
sergio (larces)
alright, patchset #3 is on top of current head of the repository. the changes from ...
15 years, 4 months ago (2009-11-24 01:17:40 UTC) #8
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=450c269d3885 *** go: makes it build for the case $GOROOT has whitespaces ...
15 years, 4 months ago (2009-11-24 01:32:57 UTC) #9
rsc
15 years, 4 months ago (2009-11-24 01:33:03 UTC) #10
thank you!

On Mon, Nov 23, 2009 at 17:17,  <sergio@larces.uece.br> wrote:
> alright, patchset #3 is on top of current head of the repository.
>
> the changes from #2 are basically
> i) libcgo, that is also using that ugly QUOTED_GOROOT hack in its target
>
>
> ii) it changes the Makefile of the recently added pgk/exp/exception
> package
>
> http://codereview.appspot.com/157067
>
Sign in to reply to this message.

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