From owner-freebsd-ports@freebsd.org Fri Nov 18 15:35:45 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18183C48092 for ; Fri, 18 Nov 2016 15:35:45 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5919B9A for ; Fri, 18 Nov 2016 15:35:44 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id C1B3C2AFB76 for ; Fri, 18 Nov 2016 15:35:41 +0000 (UTC) From: Stefan Bethke Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Porting a Go implementation: dealing with dependencies Message-Id: <18B8321A-1617-4C64-806E-A968333017DB@lassitu.de> Date: Fri, 18 Nov 2016 16:35:40 +0100 To: FreeBSD Ports X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2016 15:35:45 -0000 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 Fon +49 151 14070811