Porting a Go implementation: dealing with dependencies
Stefan Bethke
stb at lassitu.de
Fri Nov 18 15:35:45 UTC 2016
I’m trying to create a port for Gitea (https://github.com/go-gitea/gitea). The basics seem easy enough, but I’m not sure how to deal with it’s 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
===> License APACHE20 accepted by the user
===> gitea-0.9.97 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gitea-0.9.97 for building
===> Extracting for gitea-0.9.97
=> SHA256 Checksum OK for go-gitea-gitea-v0.9.97_GH0.tar.gz.
===> Patching for gitea-0.9.97
===> gitea-0.9.97 depends on executable: git - found
===> gitea-0.9.97 depends on file: /usr/local/bin/go - found
===> gitea-0.9.97 depends on executable: gmake - found
===> Configuring for gitea-0.9.97
===> Building for gitea-0.9.97
(cd /var/ports/work/home/vagrant/gitea/work/src/github.com/go-gitea/gitea ; /usr/bin/env GOPATH="/var/ports/work/home/vagrant/gitea/work:/usr/local/share/go" CGO_CFLAGS="-I/usr/local/include" CGO_LDFLAGS="-L/usr/local/lib" GOBIN="" 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
…
Very few, if any, are available as ports. I could use go get to download these, but I think that’s not how it’s supposed to work with a port.
I can build the master branch using the build instructions from the Github project successfully.
Stefan
--
Stefan Bethke <stb at lassitu.de> Fon +49 151 14070811
More information about the freebsd-ports
mailing list