File go-install-dont-reinstall-stdlibs.patch of Package go

diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go
index 54d65f9..a6c93f4 100644
--- a/src/cmd/go/pkg.go
+++ b/src/cmd/go/pkg.go
@@ -476,6 +476,13 @@ func isStale(p *Package, topRoot map[string]bool) bool {
 		return true
 	}
 
+	// openSUSE bnc#776058
+	// Only root user can reinstall a std library from a dependancy, all other
+	// users should *never* have to do this.
+	if os.Getuid() != 0  && p.Standard {
+		return false
+	}
+
 	olderThan := func(file string) bool {
 		fi, err := os.Stat(file)
 		return err != nil || fi.ModTime().After(built)
openSUSE Build Service is sponsored by