File go-install-dont-reinstall-stdlibs.patch of Package go1.4
Index: go/src/cmd/go/pkg.go
===================================================================
--- go.orig/src/cmd/go/pkg.go
+++ go/src/cmd/go/pkg.go
@@ -748,6 +748,13 @@ func isStale(p *Package, topRoot map[str
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)