On Mon, May 25, 2015 at 03:24:41PM +0200, Dmitrij D. Czarkoff wrote:
> Fabian Raetz said:
> > is anybody willing to commit this port?
> 
> I don't see how this is supposed to work - ${WRKSRC} is not in GOPATH,
> so it is not found at build time.  The patch below (already in
> openbsd-wip) makes it build for me.
> 
> FWIW I would rather add this to lang/go/go.mk instead.

Hi Dmitrij,

GOPATH is set via the lang/go MODULE.

grep GOPATH /usr/ports/lang/go/go.port.mk
GOPATH ?=               "${WRKSRC}:${LOCALBASE}/go"

Do you set GOPATH in your .profile? if so, the lang/go MODULE won't
override it and as a result, WRKSRC is indeed not part of GOPATH.

Thanks for taking a look on this :)

Cheers,
Fabian

> 
> -- 
> Dmitrij D. Czarkoff
> 
> diff -r e090f1d02aa3 devel/hub/Makefile
> --- a/devel/hub/Makefile      Mon May 25 13:24:57 2015 +0200
> +++ b/devel/hub/Makefile      Mon May 25 15:21:49 2015 +0200
> @@ -22,6 +22,7 @@
>  
>  BUILD_DEPENDS =              shells/bash
>  RUN_DEPENDS =                devel/git
> +GOPATH =             ${WRKSRC}
>  
>  post-extract:
>       mkdir -p ${WRKSRC}/src/github.com/github
> 

Reply via email to