diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-1.18/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch')
| -rw-r--r-- | meta/recipes-devtools/go/go-1.18/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/meta/recipes-devtools/go/go-1.18/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch b/meta/recipes-devtools/go/go-1.18/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch index 2a86bdccf3..c3ccffc3e9 100644 --- a/meta/recipes-devtools/go/go-1.18/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch +++ b/meta/recipes-devtools/go/go-1.18/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch | |||
| @@ -18,11 +18,9 @@ Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com> | |||
| 18 | src/cmd/go/internal/cfg/cfg.go | 6 +++++- | 18 | src/cmd/go/internal/cfg/cfg.go | 6 +++++- |
| 19 | 2 files changed, 8 insertions(+), 2 deletions(-) | 19 | 2 files changed, 8 insertions(+), 2 deletions(-) |
| 20 | 20 | ||
| 21 | diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go | ||
| 22 | index bec1769..d82f612 100644 | ||
| 23 | --- a/src/cmd/dist/build.go | 21 | --- a/src/cmd/dist/build.go |
| 24 | +++ b/src/cmd/dist/build.go | 22 | +++ b/src/cmd/dist/build.go |
| 25 | @@ -248,7 +248,9 @@ func xinit() { | 23 | @@ -251,7 +251,9 @@ func xinit() { |
| 26 | } | 24 | } |
| 27 | xatexit(rmworkdir) | 25 | xatexit(rmworkdir) |
| 28 | 26 | ||
| @@ -33,11 +31,9 @@ index bec1769..d82f612 100644 | |||
| 33 | } | 31 | } |
| 34 | 32 | ||
| 35 | // compilerEnv returns a map from "goos/goarch" to the | 33 | // compilerEnv returns a map from "goos/goarch" to the |
| 36 | diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go | ||
| 37 | index 57a3c1f..825d8c7 100644 | ||
| 38 | --- a/src/cmd/go/internal/cfg/cfg.go | 34 | --- a/src/cmd/go/internal/cfg/cfg.go |
| 39 | +++ b/src/cmd/go/internal/cfg/cfg.go | 35 | +++ b/src/cmd/go/internal/cfg/cfg.go |
| 40 | @@ -67,7 +67,11 @@ func defaultContext() build.Context { | 36 | @@ -76,7 +76,11 @@ func defaultContext() build.Context { |
| 41 | // variables. This matches the initialization of ToolDir in | 37 | // variables. This matches the initialization of ToolDir in |
| 42 | // go/build, except for using ctxt.GOROOT rather than | 38 | // go/build, except for using ctxt.GOROOT rather than |
| 43 | // runtime.GOROOT. | 39 | // runtime.GOROOT. |
| @@ -49,4 +45,4 @@ index 57a3c1f..825d8c7 100644 | |||
| 49 | + } | 45 | + } |
| 50 | } | 46 | } |
| 51 | 47 | ||
| 52 | ctxt.GOPATH = envOr("GOPATH", ctxt.GOPATH) | 48 | ctxt.GOPATH = envOr("GOPATH", gopath(ctxt)) |
