Hi, While prodding at wireguard-go, I hit the following error:
/usr/bin/env -i GOCACHE=off
GOPATH="/usr/ports/pobj/wireguard-go-0.0.20180613/go:/usr/local/go-pkg:/usr/ports/pobj/wireguard-go-0.0.20180613/devel/go-tools/tools-*/"
PATH="/usr/ports/pobj/wireguard-go-0.0.20180613/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin"
go install -x all
/usr/local/go-pkg/src/golang.org/x/text/cmd/gotext/main.go:31:2: cannot find
package "golang.org/x/tools/go/buildutil" in any of:
/usr/local/go/src/golang.org/x/tools/go/buildutil (from $GOROOT)
/usr/ports/pobj/wireguard-go-0.0.20180613/go/src/golang.org/x/tools/go/buildutil
(from $GOPATH)
/usr/local/go-pkg/src/golang.org/x/tools/go/buildutil
/usr/ports/pobj/wireguard-go-0.0.20180613/devel/go-tools/tools-*/src/golang.org/x/tools/go/buildutil
/usr/local/go-pkg/src/golang.org/x/text/message/pipeline/extract.go:22:2:
cannot find package "golang.org/x/tools/go/loader" in any of:
/usr/local/go/src/golang.org/x/tools/go/loader (from $GOROOT)
/usr/ports/pobj/wireguard-go-0.0.20180613/go/src/golang.org/x/tools/go/loader
(from $GOPATH)
/usr/local/go-pkg/src/golang.org/x/tools/go/loader
/usr/ports/pobj/wireguard-go-0.0.20180613/devel/go-tools/tools-*/src/golang.org/x/tools/go/loader
I don't know anything about Go, but it seems that our textproc/go-text
package relies on some modules that should be in devel/go-tools, yet
aren't. My weak attempt to add them didn't seem to result in any PLIST
change:
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/go-tools/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 14 Apr 2018 22:53:54 -0000 1.17
+++ Makefile 15 Jun 2018 10:35:10 -0000
@@ -7,7 +7,7 @@ GH_COMMIT = ce871d178848e3eea1e8795e5c
DISTNAME = go-tools-1.10.20180216
CATEGORIES = devel
HOMEPAGE = https://godoc.org/golang.org/x/tools
-REVISION = 0
+REVISION = 1
MAINTAINER = Dmitrij D. Czarkoff <[email protected]>
@@ -48,7 +48,8 @@ _SUBPKGS = benchcmp \
stringer \
toolstash
-ALL_TARGET = ${_SUBPKGS:%=${_MAIN}/cmd/%}
+ALL_TARGET = ${_SUBPKGS:%=${_MAIN}/cmd/%} \
+ ${_MAIN}/go/loader ${_MAIN}/go/buildutil
WRKSRC = ${MODGO_WORKSPACE}/src/${_MAIN}
# godoc needs special handling - prior to Go 1.2, godoc was part of the base
I don't know what I'm missing here--any insights? The WIP wireguard port
is attached.
--
Anthony J. Bentley
wireguard-go.tar.gz
Description: wireguard-go.tar.gz
