Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2022 15:45:51 +0200
From:      Markus Wipp <mw@wipp.bayern>
To:        Stefan Esser <se@FreeBSD.org>
Cc:        FreeBSD ports <freebsd-ports@freebsd.org>
Subject:   Re: Issues updating step-certificates
Message-ID:  <0FC6A95A-82CF-46D4-852C-82CE0D892144@wipp.bayern>
In-Reply-To: <5ed6c83d-e0e3-05dc-03af-8c6da5e615f7@FreeBSD.org>
References:  <9A379F3C-7F15-4241-86DA-4EF4C487581A@wipp.bayern> <5ed6c83d-e0e3-05dc-03af-8c6da5e615f7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_21999E27-5635-473B-B36A-85A29EBAD861
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Thanks that helped!

> On 10. Jul 2022, at 00:31, Stefan Esser <se@FreeBSD.org> wrote:
>=20
> Am 09.07.22 um 13:55 schrieb Markus Wipp:
>> Hi all,
>> I=E2=80=99m the maintainer of step-certificates and currently face =
some issues with this.
>> I updated the ports Makefile for the newest version (see below).
>> When I now try to make this e.g. with =E2=80=9Cmake clean makes =
stage=E2=80=9D it fails with the following error:
>> =3D=3D=3D>  Patching for step-certificates-0.21.0_1
>> =3D=3D=3D>  Applying FreeBSD patches for step-certificates-0.21.0_1 =
from /usr/ports/security/step-certificates/files
>> =3D=3D=3D>   step-certificates-0.21.0_1 depends on package: =
pcsc-lite>0 - found
>> =3D=3D=3D>   step-certificates-0.21.0_1 depends on file: =
/usr/local/bin/go - found
>> =3D=3D=3D>   step-certificates-0.21.0_1 depends on shared library: =
libpcsclite.so - found (/usr/local/lib/libpcsclite.so)
>> =3D=3D=3D>  Configuring for step-certificates-0.21.0_1
>> =3D=3D=3D>  Building for step-certificates-0.21.0_1
>> (cd /usr/ports/security/step-certificates/work/certificates-0.21.0;  =
for t in ./cmd/step-ca:/usr/local/sbin/step-ca   =
./cmd/step-cloudkms-init  ./cmd/step-awskms-init  =
./cmd/step-yubikey-init  ./cmd/step-pkcs11-init; do  =
out=3D$(/usr/bin/basename $(echo ${t} |  /usr/bin/sed -Ee =
's/^[^:]*:([^:]+).*$/\1/' -e 's/^\.$/step-certificates/'));  pkg=3D$(echo =
${t} |  /usr/bin/sed -Ee 's/^([^:]*).*$/\1/' -e =
's/^step-certificates$/./');  echo "=3D=3D=3D>  Building ${out} from =
${pkg}";  /usr/bin/env =
XDG_DATA_HOME=3D/usr/ports/security/step-certificates/work  =
XDG_CONFIG_HOME=3D/usr/ports/security/step-certificates/work  =
XDG_CACHE_HOME=3D/usr/ports/security/step-certificates/work/.cache  =
HOME=3D/usr/ports/security/step-certificates/work =
PATH=3D/usr/ports/security/step-certificates/work/.bin:/sbin:/bin:/usr/sbi=
n:/usr/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"/usr/ports/distfiles/go/security_step-certificates"  =
GOBIN=3D"/usr/ports/security/step-certificates/work/bin"  GO111MODULE=3Don=
  GOFLAGS=3D-modcacherw  GOSUMDB=3Dsum.golang.org GO_NO_VENDOR_CHECKS=3D1 =
GOPROXY=3Doff /usr/local/bin/go build -ldflags "-w -X =
main.Version=3D0.21.0" -v -buildmode=3Dexe -trimpath -mod=3Dvendor  -o =
/usr/ports/security/step-certificates/work/bin/${out}  ${pkg};  done)
>> =3D=3D=3D>  Building step-ca from ./cmd/step-ca
>> cas/vaultcas/auth/approle/approle.go:8:2: import =
"github.com/hashicorp/vault/api/auth/approle" is a program, not an =
importable package
>> cas/vaultcas/auth/kubernetes/kubernetes.go:8:2: import =
"github.com/hashicorp/vault/api/auth/kubernetes" is a program, not an =
importable package
>> vendor/github.com/hashicorp/vault/api/auth/approle/main.go:6:2: =
cannot find package "." in:
>> 	=
/usr/ports/security/step-certificates/work/certificates-0.21.0/vendor/gith=
ub.com/hashicorp/vault/cli
>> *** Error code 1
>> Stop.
>> make: stopped in /usr/ports/security/step-certificates
>> When I then go to WRKSRC and run =E2=80=9Cgo mod vendor=E2=80=9D =
there and go back and run =E2=80=9Cmake stage=E2=80=9D the port builds.
>> I tried to put =E2=80=9Cmodules.txt=E2=80=9D to files and copy it =
over, but unfortunately this seems not to be sufficient.
>> Any hints and help is highly appreciated!
>> Thanks in advance
>> Markus
>> Makefile:
>> =3D=3D=3D=3D=3D=3D=3D
>> PORTNAME=3D	step-certificates
>> DISTVERSIONPREFIX=3D	v
>> DISTVERSION=3D	0.21.0
>> PORTREVISION=3D	1
>> CATEGORIES=3D	security
>> MAINTAINER=3D	mw@wipp.bayern
>> COMMENT=3D	Smallstep step-ca certificates server
>> LICENSE=3D	APACHE20
>> LICENSE_FILE=3D	${WRKSRC}/LICENSE
>> BUILD_DEPENDS=3D	pcsc-lite>0:devel/pcsc-lite
>> LIB_DEPENDS=3D	libpcsclite.so:devel/pcsc-lite
>> RUN_DEPENDS=3D	step:security/step-cli
>> USES=3D		go:modules
>=20
> You have USES=3Dgo:modules. That lets me assume that there is a
> go.mod file that contains a module directive. But there is no
> GO_MODULE defition ...
>=20
> See my recent update of net/cloudquery (commit fd5b852a0e71) for
> an example of GO_MODULE and which parts of the current Makefile
> and distinfo file it obsoletes (e.g. all the GH_TUPLE definitions):
>=20
> GO_MODULE=3D	github.com/cloudquery/cloudquery
>=20
> Gru=C3=9F, STefan


--Apple-Mail=_21999E27-5635-473B-B36A-85A29EBAD861
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE/eTNEeblVga9Tu3f/BfMj2QJNOUFAmLNew8ACgkQ/BfMj2QJ
NOUQiw//eA0KqDj6SYZNJjzfeiBa22iuQq63XO0b1goolGNPayJg1/QNqP449Csp
xWpNjcXePZiis3+zyWMH2mVilNtRMX0hzb0653pPkShy2rVLeIFsjclV5CiTwoyt
qCAq5s3mgTojEQRKjyCAXMN60F3ly1PGaOe6fALDHDbL/1BYgC7mJ+JuBsmhfFs1
NAuiSSmP6iq279ddpu5Pqv8kZviEXKlCZ85j2ncy5tP6ILx8OQcYO6gRCDIG8kB/
vA6H2jh4goZpE7WTmgPaOWt3kQNhS50uopU+UZ3kpIwp59Gk4t+G89cPRy1UcQDJ
7A107JyneXhEOVC1vDFa4r38/XuYeDY+AQZNULAZ5JoQ5xMOwzNaojv4OgN4IJ1C
jDKLHG/RRdm/odRWLISiQevceon+hVo8N9JBafHSj+hdgS2hXIaD0gf5477VTWU+
XVe8xWqqL4M4Qg3vbg5ZljRPxRE4Q+PxkOrdl8LnHGgtGo4Z+JKkr+RrPO7EVTF3
JrAng/3Xq4FAYcfUpqfAYFmp9l5g+qCcrC8HL+OXGI9niCY+3kTG8bUDcfDTNBDq
eRzHkCxVQkjtF8tS7Mg8dsSP3zm57rIHrNh28Q4nhaoZeUIblDNA2gF9vCOitEk+
pGKCOTGs1FsKEp1hr2nh2IT85O4/gC5IvlxKFZF/REovZfb7GWY=
=sD6C
-----END PGP SIGNATURE-----

--Apple-Mail=_21999E27-5635-473B-B36A-85A29EBAD861--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0FC6A95A-82CF-46D4-852C-82CE0D892144>