Date: Sun, 23 Jun 2019 12:30:00 +0200 From: Kurt Jaeger <pi@freebsd.org> To: Tobias Kortkamp <tobik@freebsd.org> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: How to handle go dependencies Message-ID: <20190623103000.GM5902@home.opsec.eu> In-Reply-To: <20190623095737.GA89814@urd.tobik.me> References: <5d0e8e03.1c69fb81.5e249.9640@mx.google.com> <CAP7rwchtYTf5XPoTgk6B2drdPjzP%2B5opq-sN=kGsTJei6dT_Dg@mail.gmail.com> <20190622205205.GB40599@xombo.localdomain> <4de2a97c-8c41-74e4-cda1-4fdec9554e8f@fechner.net> <20190623095737.GA89814@urd.tobik.me>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! > Please do not use it. It is broken in many ways. Use Dimtri's > devel/modules2tuple instead. Change to WRKSRC of your port and run > `go mod vendor` then `modules2tuple vendor/modules.txt` and it will > spit out an appropriate GH_TUPLE etc. Thanks, I tested that approach with an updated version of net/gobgp. I got the updated GH_TUPLE, included it in the ports Makefile, ran make makesum, but make aborts, see below. Are there several different ways that go is handling this ? [...] =3D> SHA256 Checksum OK for gobgp/vishvananda-netns-86bef332bfc3_GH0.tar.gz. =3D=3D=3D> Patching for gobgp-2.5.0 =3D=3D=3D> gobgp-2.5.0 depends on file: /usr/local/bin/go - found =3D=3D=3D> Configuring for gobgp-2.5.0 =3D=3D=3D> Building for gobgp-2.5.0 (cd /home/pi/m/net/gobgp/work/src/github.com/osrg/gobgp; /usr/bin/env XDG_= DATA_HOME=3D/home/pi/m/net/gobgp/work XDG_CONFIG_HOME=3D/home/pi/m/net/gob= gp/work HOME=3D/home/pi/m/net/gobgp/work PATH=3D/home/pi/m/net/gobgp/work/= =2Ebin:/home/pi/bin:/client/bin:/client/sbin:/usr/local/bin:/usr/local/sbin= :/bin:/usr/bin:/sbin:/usr/sbin NO_PIE=3Dyes MK_DEBUG_FILES=3Dno MK_KERNEL_S= YMBOLS=3Dno SHELL=3D/bin/sh NO_LINT=3DYES PREFIX=3D/usr/local LOCALBASE=3D= /usr/local CC=3D"cc" CFLAGS=3D"-O2 -pipe -fstack-protector-strong -fno-st= rict-aliasing " CPP=3D"cpp" CPPFLAGS=3D"" LDFLAGS=3D" -fstack-protector-s= trong " LIBS=3D"" CXX=3D"c++" CXXFLAGS=3D"-O2 -pipe -fstack-protector-stro= ng -fno-strict-aliasing " MANPREFIX=3D"/usr/local" BSD_INSTALL_PROGRAM=3D= "install -s -m 555" BSD_INSTALL_LIB=3D"install -s -m 0644" BSD_INSTALL_= SCRIPT=3D"install -m 555" BSD_INSTALL_DATA=3D"install -m 0644" BSD_INST= ALL_MAN=3D"install -m 444" CGO_ENABLED=3D1 CGO_CFLAGS=3D"-I/usr/local/inc= lude" CGO_LDFLAGS=3D"-L/usr/local/lib" GOARM=3D GOPATH=3D"/home/pi/m/net/= gobgp/work" GOBIN=3D"" /usr/local/bin/go install -v -buildmode=3Dexe githu= b.com/osrg/gobgp/gobgp github.com/osrg/gobgp/gobgpd) can't load package: package github.com/osrg/gobgp/gobgp: cannot find packag= e "github.com/osrg/gobgp/gobgp" in any of: /usr/local/go/src/github.com/osrg/gobgp/gobgp (from $GOROOT) /home/pi/m/net/gobgp/work/src/github.com/osrg/gobgp/gobgp (from $GOPATH) can't load package: package github.com/osrg/gobgp/gobgpd: cannot find packa= ge "github.com/osrg/gobgp/gobgpd" in any of: /usr/local/go/src/github.com/osrg/gobgp/gobgpd (from $GOROOT) /home/pi/m/net/gobgp/work/src/github.com/osrg/gobgp/gobgpd (from $GOPATH) *** Error code 1 --=20 pi@opsec.eu +49 171 3101372 One year to go !
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190623103000.GM5902>