[SCM] Packaging for Google Go branch, debian-sid, updated. debian/2011.02.01.1-1-13-g5e92cf4

Ondřej Surý ondrej at sury.org
Fri Feb 18 15:38:07 UTC 2011


The following commit has been merged in the debian-sid branch:
commit 5e92cf425fb3edab8f418e6fe8d5faee1d8d3373
Author: Ondřej Surý <ondrej at sury.org>
Date:   Fri Feb 18 16:37:09 2011 +0100

    Add warning also directly to goinstall command

diff --git a/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch b/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch
index a4690f8..ee395b0 100644
--- a/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch
+++ b/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch
@@ -1,6 +1,14 @@
 --- a/src/cmd/goinstall/main.go
 +++ b/src/cmd/goinstall/main.go
-@@ -43,6 +43,7 @@ var (
+@@ -21,6 +21,7 @@ import (
+ )
+ 
+ func usage() {
++	fmt.Fprintf(os.Stderr, "WARNING: Usage of goinstall is highly discouraged on Debian system. goinstall is not FHS friendly and it will possibly overwrite files from the package creating a highly unstable mess in /usr/lib/golang. You have been warned!\n"
+ 	fmt.Fprint(os.Stderr, "usage: goinstall importpath...\n")
+ 	fmt.Fprintf(os.Stderr, "\tgoinstall -a\n")
+ 	flag.PrintDefaults()
+@@ -43,6 +44,7 @@ var (
  	update            = flag.Bool("u", false, "update already-downloaded packages")
  	clean             = flag.Bool("clean", false, "clean the package directory before installing")
  	verbose           = flag.Bool("v", false, "verbose")
@@ -8,7 +16,7 @@
  )
  
  type status int // status for visited map
-@@ -189,7 +190,11 @@ func install(pkg, parent string) {
+@@ -189,7 +191,11 @@ func install(pkg, parent string) {
  	}
  	for _, p := range dirInfo.imports {
  		if p != "C" {

-- 
Packaging for Google Go



More information about the Pkg-google-commits mailing list