Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2016 16:35:40 +0100
From:      Stefan Bethke <stb@lassitu.de>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Porting a Go implementation: dealing with dependencies
Message-ID:  <18B8321A-1617-4C64-806E-A968333017DB@lassitu.de>

next in thread | raw e-mail | index | archive | help
I=E2=80=99m trying to create a port for Gitea =
(https://github.com/go-gitea/gitea). The basics seem easy enough, but =
I=E2=80=99m not sure how to deal with it=E2=80=99s dependencies.

After downloading tag 0.97, I start building with

do-build:
	(cd ${GO_WRKSRC} ; ${SETENV} ${GO_ENV} go build)

The result is a long list of unfulfilled dependencies:
$ sudo make
=3D=3D=3D>  License APACHE20 accepted by the user
=3D=3D=3D>   gitea-0.9.97 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by gitea-0.9.97 for building
=3D=3D=3D>  Extracting for gitea-0.9.97
=3D> SHA256 Checksum OK for go-gitea-gitea-v0.9.97_GH0.tar.gz.
=3D=3D=3D>  Patching for gitea-0.9.97
=3D=3D=3D>   gitea-0.9.97 depends on executable: git - found
=3D=3D=3D>   gitea-0.9.97 depends on file: /usr/local/bin/go - found
=3D=3D=3D>   gitea-0.9.97 depends on executable: gmake - found
=3D=3D=3D>  Configuring for gitea-0.9.97
=3D=3D=3D>  Building for gitea-0.9.97
(cd =
/var/ports/work/home/vagrant/gitea/work/src/github.com/go-gitea/gitea ; =
/usr/bin/env =
GOPATH=3D"/var/ports/work/home/vagrant/gitea/work:/usr/local/share/go"  =
CGO_CFLAGS=3D"-I/usr/local/include"  CGO_LDFLAGS=3D"-L/usr/local/lib"  =
GOBIN=3D"" go build)
cmd/dump.go:16:2: cannot find package "github.com/Unknwon/cae/zip" in =
any of:
	/usr/local/go/src/github.com/Unknwon/cae/zip (from $GOROOT)
	=
/var/ports/work/home/vagrant/gitea/work/src/github.com/Unknwon/cae/zip =
(from $GOPATH)
	/usr/local/share/go/src/github.com/Unknwon/cae/zip
cmd/serve.go:16:2: cannot find package "github.com/Unknwon/com" in any =
of:
	/usr/local/go/src/github.com/Unknwon/com (from $GOROOT)
	=
/var/ports/work/home/vagrant/gitea/work/src/github.com/Unknwon/com (from =
$GOPATH)
	/usr/local/share/go/src/github.com/Unknwon/com
=E2=80=A6

Very few, if any, are available as ports.  I could use go get to =
download these, but I think that=E2=80=99s not how it=E2=80=99s supposed =
to work with a port.

I can build the master branch using the build instructions from the =
Github project successfully.


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18B8321A-1617-4C64-806E-A968333017DB>