diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-1.8/make-goroot-precious.patch')
-rw-r--r-- | meta/recipes-devtools/go/go-1.8/make-goroot-precious.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/recipes-devtools/go/go-1.8/make-goroot-precious.patch b/meta/recipes-devtools/go/go-1.8/make-goroot-precious.patch deleted file mode 100644 index 28a7a34773..0000000000 --- a/meta/recipes-devtools/go/go-1.8/make-goroot-precious.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | Prevent GOROOT-resident packages from being rebuilt | ||
2 | |||
3 | Signed-off-by: Matt Madison <matt@madison.systems> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | --- go.orig/src/cmd/go/pkg.go | ||
7 | +++ go/src/cmd/go/pkg.go | ||
8 | @@ -1496,6 +1496,13 @@ func isStale(p *Package) (bool, string) | ||
9 | return true, "build ID mismatch" | ||
10 | } | ||
11 | |||
12 | + // For OE builds, make anything in GOROOT non-stale, | ||
13 | + // to prevent a package build from overwriting the | ||
14 | + // build root. | ||
15 | + if p.Goroot && os.Getenv("GOROOT_OVERRIDE") != "1" { | ||
16 | + return false, "GOROOT-resident packages do not get rebuilt" | ||
17 | + } | ||
18 | + | ||
19 | // Package is stale if a dependency is. | ||
20 | for _, p1 := range p.deps { | ||
21 | if p1.Stale { | ||