From nobody Mon Jan 17 17:44:29 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 6B51B1960D75 for ; Mon, 17 Jan 2022 17:44:31 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:7ae3:b5ff:fe1b:23b4]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.lerctr.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jczmt4BDgz4byS; Mon, 17 Jan 2022 17:44:30 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=ler2019; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dH+g6co4QdZG9AUhn4+w4kWoJSb6sPUoWGx1QHiAZQo=; b=p29lEclf1IGXRD2Xi5SJ/Eh6Ji UfgUT1yRLF/7rwA3pi7XfDc+4EWurOGmRRveo6E7dnhH+qlsvy2AiqEHioJpjs8o5wbH1pPG8us3t u36aT/oHQKx48MNaa4KZYn528o7Iq8f3CBmm/SyhzVqfo6cybpscKdB5SWG5n0IY0d1qzxqGOSvC5 U1bg1kaoYMcW8Dj0qvczJw/AfrYRmNbJIbbSoR0JICAuVDuxusReWxVJ3khBL7WMUj9sm3JXtC7XZ L0zNmzACWhDASoIcbu3i+pzfeEqqms4JIorFj7P3iAkFBJFbh/Q9lRipi8iCsRcIhFaKL7LVbvl7i 7r8iW3qg==; Received-SPF: pass (thebighonker.lerctr.org: domain of lerctr.org designates 2001:470:1f0f:3ad:bb:dcff:fe50:d900 as permitted sender) client-ip=2001:470:1f0f:3ad:bb:dcff:fe50:d900; envelope-from=ler@lerctr.org; helo=webmail.lerctr.org; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:bb:dcff:fe50:d900]:21379 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1n9W3R-000NYr-Dj; Mon, 17 Jan 2022 11:44:29 -0600 Received: from 2600:1700:210:b18f:f5c9:d6bf:672f:5aa1 by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Mon, 17 Jan 2022 11:44:29 -0600 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 Date: Mon, 17 Jan 2022 11:44:29 -0600 From: Larry Rosenman To: Matthias Fechner Cc: dmgk@freebsd.org, ports@freebsd.org Subject: Re: Go modules help In-Reply-To: <2b232a6d-4910-dcef-5d25-84b337d4926d@fechner.net> References: <1ddfac966f2bf7109b11e1689400e9b4@lerctr.org> <3a9bde71cd16d16d55d67fd3adaf4016@lerctr.org> <2b232a6d-4910-dcef-5d25-84b337d4926d@fechner.net> Message-ID: X-Sender: ler@lerctr.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Jczmt4BDgz4byS X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lerctr.org header.s=ler2019 header.b=p29lEclf; dmarc=pass (policy=none) header.from=lerctr.org; spf=pass (mx1.freebsd.org: domain of ler@lerctr.org designates 2001:470:1f0f:3ad:7ae3:b5ff:fe1b:23b4 as permitted sender) smtp.mailfrom=ler@lerctr.org X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[lerctr.org:s=ler2019]; FREEFALL_USER(0.00)[ler]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[lerctr.org:+]; DMARC_POLICY_ALLOW(-0.50)[lerctr.org,none]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[ports]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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 -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106