Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Nov 2011 20:31:20 GMT
From:      Grzegorz Blach <magik@roorback.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/162954: lang/go: Fixed install when $GOBIN is set
Message-ID:  <201111292031.pATKVKPn034800@red.freebsd.org>
Resent-Message-ID: <201111292040.pATKe9EE026802@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111292031.pATKVKPn034800>