ports/162954: lang/go: Fixed install when $GOBIN is set

Grzegorz Blach magik at roorback.net
Tue Nov 29 20:40:10 UTC 2011


>Number:         162954
>Category:       ports
>Synopsis:       lang/go: Fixed install when $GOBIN is set
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 29 20:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Grzegorz Blach
>Release:        9.0-RC2
>Organization:
>Environment:
FreeBSD silver.nine 9.0-RC2 FreeBSD 9.0-RC2 #2: Wed Nov  9 21:17:39 CET 2011     root at silver.nine:/usr/obj/usr/src/sys/SILVER  amd64

>Description:
When $GOBIN env variable is set lang/go port can't install binaries properly.

--- Begin Output ---
gmake: Leaving directory `/usr/ports/lang/go/work/go-20111017/src/pkg'

---
Installed Go for freebsd/386 in /usr/ports/lang/go/work/go-20111017.
Installed commands in /usr/local/bin.
The compiler is 8g.
===>  Installing for go-20111017
===>   Generating temporary packing list
===>  Checking if lang/go already installed
install -d -m 0755 /usr/local/share/doc/go
/bin/cp -R /usr/ports/lang/go/work/go-20111017/doc/ /usr/local/share/doc/go
install  -o root -g wheel -m 555 /usr/ports/lang/go/work/go-20111017/bin/* /usr/local/bin/
install: /usr/ports/lang/go/work/go-20111017/bin/*: No such file or directory
*** Error code 71

Stop in /usr/ports/lang/go.
--- End Output ---

>How-To-Repeat:
1. Set GOBIN to some directory
> setenv GOBIN /usr/loca/bin

2. Try to install lang/go
> cd /usr/ports/lang/go && make install clean

>Fix:
Unset GOBIN in Makefile


Patch attached with submission follows:

diff -ruN lang/go/Makefile lang/go/Makefile
--- lang/go/Makefile	2011-11-26 23:56:45.000000000 +0100
+++ lang/go/Makefile	2011-11-28 17:09:00.734587599 +0100
@@ -41,6 +41,7 @@
 do-build:
 	(cd ${WRKSRC}/src &&		\
 		GOROOT=${WRKSRC}	\
+		GOBIN=			\
 		GOARCH=${GOARCH}	\
 		GOOS=freebsd		\
 		bash make.bash)


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list