From nobody Mon Jan 17 17:53:32 2022 X-Original-To: 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 0FF95196695E for ; Mon, 17 Jan 2022 17:53:35 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [IPv6:2001:608:a02::33]) (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 4JczzL2lwdz4gJj; Mon, 17 Jan 2022 17:53:34 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (177-136-067-156.ip-addr.inexio.net [156.67.136.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 2C1A89F31B; Mon, 17 Jan 2022 18:53:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1642442013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AaC4d9YKR8PLKBnCGUy5Yn7v0I57YrHoxy2tZwJ+unE=; b=tSbddr33csbNEIAiOAs2t5WM2beGUll0foHD3awINanZ+4/aS6MkcxcgVQWbq3LrJ8pxqp Glhwd/M7U+aCGkVvwRy6miNntWxlTYxNamjwSCZJQFToTz8koZxJ/smxFrqPjUVXL1POdI dhmJIBKbPYIiw7PacBwVN+zx8QaRKUc= Received: from [IPV6:2a02:6d40:36fb:3c01:60d1:bbae:b8f9:b213] (unknown [IPv6:2a02:6d40:36fb:3c01:60d1:bbae:b8f9:b213]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id E0275936807; Mon, 17 Jan 2022 18:53:32 +0100 (CET) Message-ID: Date: Mon, 17 Jan 2022 18:53:32 +0100 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: Larry Rosenman Cc: dmgk@freebsd.org, ports@freebsd.org References: <1ddfac966f2bf7109b11e1689400e9b4@lerctr.org> <3a9bde71cd16d16d55d67fd3adaf4016@lerctr.org> <2b232a6d-4910-dcef-5d25-84b337d4926d@fechner.net> From: Matthias Fechner Subject: Re: Go modules help In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Server: anny.lostinspace.de X-Rspamd-Queue-Id: 4JczzL2lwdz4gJj X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=tSbddr33; dmarc=pass (policy=none) header.from=fechner.net; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 2001:608:a02::33 as permitted sender) smtp.mailfrom=idefix@fechner.net X-Spamd-Result: default: False [-6.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[fechner.net:+]; RCVD_IN_DNSWL_MED(-0.20)[2001:608:a02::33:from]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[ports]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5539, ipnet:2001:608::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[156.67.136.177:received] X-ThisMailContainsUnwantedMimeParts: N Am 17.01.2022 um 18:44 schrieb Larry Rosenman: > On 01/17/2022 11:35 am, Matthias Fechner wrote: >> Am 17.01.2022 um 17:46 schrieb Larry Rosenman: >>> Progress, but I'm now getting: >>> => SHA256 Checksum OK for >>> go-plist-591f970eefbbeb04d7b37f334a0c4c3256e32876_GL0.tar.gz. >>> /bin/rm -f -r >>> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/storage >>> install -l rs >>> /wrkdirs/usr/ports/net-mgmt/thanos/work/google-cloud-go-0.97.0/go/storage >>> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/storage >>> install: >>> /wrkdirs/usr/ports/net-mgmt/thanos/work/google-cloud-go-0.97.0/go/storage: >>> realpath: No such file or directory >>> *** Error code 71 >>> >>> new makefile attached.  I've tried I don't know how many things with >>> the m2t made lines. >>> >> this is a little bit tricky. >> To understand it, you need to use tag storage/v1.10: >> https://github.com/googleapis/google-cloud-go/tree/storage/v1.10.0 >> >> This archive has a directory named storage you would like to link into: >> work/thanos-0.24.0/vendor/cloud.google.com/go/storage/ >> You can find the directory with: >> tar tzvf >> /usr/ports/distfiles/googleapis-google-cloud-go-storage-v1.10.0_GH0.tar.gz >> >> >> So at first you download it with a GH_TUPLE definition: >> + >> googleapis:google-cloud-go:storage/v1.10.0:googleapis_google_cloud_go_storage >> >> \ >> >> The last part here must be unique, I added _storage to it. >> >> The content will be stored in (the path is used from the GH_TUPLE >> definition): >> work/google-cloud-go-storage-v1.10.0/ >> >> The next step is now to remove the already existing directory: >> @${RM} -r ${WRKSRC}/vendor/cloud.google.com/go/storage >> >> and now link the previously download archive into the removed directory: >> @${RLN} ${WRKSRC_googleapis_google_cloud_go_storage}/storage >> ${WRKSRC}/vendor/cloud.google.com/go/storage >> >> I attached you the makefile, which includes this modification. >> Maybe modules2tuple can be fixed to get it working if the version tag >> includes a `/ `. >> I added @dmgk@FreeBSD.org, maybe he has an idea how to fix this in >> modules2tuple. >> >> Gruß >> Matthias > > > Still getting errors: > >  ===>  Building thanos from ./cmd/thanos > vendor/cloud.google.com/go/storage/iam.go:20:2: cannot find package > "." in: >     /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/iam > > vendor/cloud.google.com/go/storage/bucket.go:24:2: cannot find package > "." in: >     /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/internal/optional > > vendor/cloud.google.com/go/storage/acl.go:22:2: cannot find package > "." in: >     /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/internal/trace > > vendor/cloud.google.com/go/storage/storage.go:43:2: cannot find > package "." in: >     /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/internal/version > > pkg/tracing/stackdriver/tracer.go:12:2: cannot find package "." in: >     /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/trace/apiv1 > > *** Error code 1 > if you download the packages manually: cd net-mgmt/thanos make clean extract cd work/thanos-0.24.0 rm -Rf vendor/cloud.google.com go mod vendor ls -las vendor/cloud.google.com/go you will see how the directory must look like. I think that another googleapis:google-cloud-go tuple line needs corrections. Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook