From nobody Tue Jul 12 13:45:51 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BEC8C1D00EED for ; Tue, 12 Jul 2022 13:46:08 +0000 (UTC) (envelope-from mw@wipp.bayern) Received: from virgo.wipp.bayern (virgo.wipp.bayern [46.4.150.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lj28V5zkVz44Vt; Tue, 12 Jul 2022 13:46:02 +0000 (UTC) (envelope-from mw@wipp.bayern) Received: from smtpclient.apple (unknown [IPv6:2a02:8106:209:e414:2455:fed4:97be:86c6]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mw@wipp.bayern) by virgo.wipp.bayern (Postfix) with ESMTPSA id B7A04C4A8; Tue, 12 Jul 2022 15:45:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wipp.bayern; s=dkim201411; t=1657633554; bh=ed+8mvlSTf+aGoyReZ6SAJTgz1D6FDizqlJ43TaCb8E=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=GB4yySKoY1P+lNOn5tfu1+djzPzdqHr9pkwXgFW0xFpYoQAoGK7JckvcVSAkOt0eN sl3TIr26FGGuW3r+FSE/O5hGsbljPSK8zJfbEqdmUdF0HASEjjhjqbJlHIoSYRsjGU ugt7+44IaLdhq8jzV6cjA44iKrJ8wPj48QuTQklY= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.105.0 at gemini.wipp.bayern Content-Type: multipart/signed; boundary="Apple-Mail=_21999E27-5635-473B-B36A-85A29EBAD861"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: Issues updating step-certificates From: Markus Wipp In-Reply-To: <5ed6c83d-e0e3-05dc-03af-8c6da5e615f7@FreeBSD.org> Date: Tue, 12 Jul 2022 15:45:51 +0200 Cc: FreeBSD ports Message-Id: <0FC6A95A-82CF-46D4-852C-82CE0D892144@wipp.bayern> References: <9A379F3C-7F15-4241-86DA-4EF4C487581A@wipp.bayern> <5ed6c83d-e0e3-05dc-03af-8c6da5e615f7@FreeBSD.org> To: Stefan Esser X-Mailer: Apple Mail (2.3696.100.31) X-Rspamd-Queue-Id: 4Lj28V5zkVz44Vt X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wipp.bayern header.s=dkim201411 header.b=GB4yySKo; dmarc=pass (policy=none) header.from=wipp.bayern; spf=pass (mx1.freebsd.org: domain of mw@wipp.bayern designates 46.4.150.2 as permitted sender) smtp.mailfrom=mw@wipp.bayern X-Spamd-Result: default: False [-5.60 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[wipp.bayern,none]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[wipp.bayern:s=dkim201411]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; BLOCKLISTDE_FAIL(0.00)[2a02:8106:209:e414:2455:fed4:97be:86c6:query timed out,46.4.150.2:query timed out]; FREEFALL_USER(0.00)[mw]; MLMMJ_DEST(0.00)[freebsd-ports]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:24940, ipnet:46.4.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[wipp.bayern:+]; TO_DN_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --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 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--