Date: Fri, 10 Apr 2020 10:30:48 +0200 From: Markus Wipp <mw@wipp.bayern> To: FreeBSD Ports <freebsd-ports@freebsd.org> Cc: =?utf-8?Q?Bernhard_Fr=C3=B6hlich?= <decke@bluelife.at> Subject: Re: Porting of Smallstep CA Message-ID: <9ABE1657-1F6B-4FC9-BE6F-FBDA30B82253@wipp.bayern> In-Reply-To: <CAE-m3X1_QxobwAjhR42_n0t9kP8rtCYPp-Qeft6KhDH2cMS=KA@mail.gmail.com> References: <6F55C342-1ABB-4386-B674-F432EDE96D62@wipp.bayern> <CAP7rwcjuNDyeeQcuow7inxd4wW_gd8E49pybAk45B9q4NUmS=A@mail.gmail.com> <E899F650-88A2-4684-B185-6E8D7E1595C8@wipp.bayern> <CAE-m3X1_QxobwAjhR42_n0t9kP8rtCYPp-Qeft6KhDH2cMS=KA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 8. Apr 2020, at 23:05, Bernhard Fr=C3=B6hlich <decke@bluelife.at> = wrote >=20 >=20 > There is more work to do (pkg-descr, pkg-plist probably, don't know if = it needs some other files etc.) but it builds the binary at least and = passes portlint: >=20 > = https://github.com/decke/ports/blob/master/security/smallstep-cli/Makefile= = <https://github.com/decke/ports/blob/master/security/smallstep-cli/Makefil= e> Hi Bernhard,=20 Thanks for your input here. I tried it and it worked. Unfortunately in = the meantime there is a new version of this tool and I tried to do it = the same way, but I=E2=80=99m getting the following Error now: =3D=3D=3D> Building for smallstep-cli-0.14.2 (cd /usr/ports/security/smallstep-cli/work/cli-0.14.2; for t in = ./cmd/step; do out=3D$(/usr/bin/basename $(echo ${t} | /usr/bin/sed = -Ee 's/^[^:]*:([^:]+).*$/\1/' -e 's/^\.$/smallstep-cli/')); pkg=3D$(echo = ${t} | /usr/bin/sed -Ee 's/^([^:]*).*$/\1/' -e 's/^smallstep-cli$/./'); = echo "=3D=3D=3D> Building ${out} from ${pkg}"; /usr/bin/env = XDG_DATA_HOME=3D/usr/ports/security/smallstep-cli/work = XDG_CONFIG_HOME=3D/usr/ports/security/smallstep-cli/work = HOME=3D/usr/ports/security/smallstep-cli/work = PATH=3D/usr/ports/security/smallstep-cli/work/.bin:/sbin:/bin:/usr/sbin:/u= sr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=3Dyes = MK_DEBUG_FILES=3Dno MK_KERNEL_SYMBOLS=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-strict-aliasing " CPP=3D"cpp" = CPPFLAGS=3D"" LDFLAGS=3D" -fstack-protector-strong " LIBS=3D"" = CXX=3D"c++" CXXFLAGS=3D"-O2 -pipe -fstack-protector-strong = -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_INSTALL_MAN=3D"install -m = 444" CGO_ENABLED=3D1 CGO_CFLAGS=3D"-I/usr/local/include" = CGO_LDFLAGS=3D"-L/usr/local/lib" GOARM=3D GOPATH=3D"" = GOBIN=3D"/usr/ports/security/smallstep-cli/work/bin" = GO_NO_VENDOR_CHECKS=3D1 /usr/local/bin/go build -v -buildmode=3Dexe = -ldflags=3D-s -mod=3Dvendor -o = /usr/ports/security/smallstep-cli/work/bin/${out} ${pkg}; done) =3D=3D=3D> Building step from ./cmd/step import cycle not allowed package github.com/smallstep/cli/cmd/step imports github.com/smallstep/certificates/ca imports github.com/smallstep/certificates/acme/api imports github.com/smallstep/certificates/api imports github.com/smallstep/certificates/authority imports github.com/smallstep/certificates/kms imports github.com/smallstep/certificates/kms/cloudkms imports cloud.google.com/go/kms/apiv1 imports cloud.google.com/go/iam imports github.com/googleapis/gax-go/v2 imports github.com/googleapis/gax-go/v2 *** Error code 1 Stop. make: stopped in /usr/ports/security/smallstep-cli As I=E2=80=99m not a go programmer, I=E2=80=99ve no clue of why this is = happening and what to do about it. I already have regenerated the go mod vender / modules2tuples part in = the Makefile and did a make clean makesum stage When using the Makefile that comes with the tool it builds with no = issues. When I try to use this and put in USES=3D gmake go:modules,no_targets ALL_TARGET=3D build Instead of USES=3D go:modules I get this error: Build Complete! gmake[1]: Leaving directory = '/usr/ports/security/smallstep-cli/work/cli-0.14.2' =3D=3D=3D> Staging for smallstep-cli-0.14.2 =3D=3D=3D> Generating temporary packing list gmake[1]: Entering directory = '/usr/ports/security/smallstep-cli/work/cli-0.14.2' usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 file2 install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 ... fileN directory install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] directory ... gmake[1]: *** [make/common.mk:92: install] Error 64 gmake[1]: Leaving directory = '/usr/ports/security/smallstep-cli/work/cli-0.14.2' *** Error code 2 Stop. make: stopped in /usr/ports/security/smallstep-cli Additionally I=E2=80=99m not able to find the bin directory which is = created when I do this manually. Any help Is highly appreciated! Thanks=20 Markus >=20 > --=20 > Bernhard Fr=C3=B6hlich > http://www.bluelife.at/ <http://www.bluelife.at/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ABE1657-1F6B-4FC9-BE6F-FBDA30B82253>