From nobody Thu Feb 2 22:48:24 2023 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 4P7DTy4Vc8z3kgGH for ; Thu, 2 Feb 2023 22:48:38 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 4P7DTw2MYdz3Ly7 for ; Thu, 2 Feb 2023 22:48:35 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp; dmarc=none Received: from kalamity.joker.local (123-1-88-210.area1b.commufa.jp [123.1.88.210]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 312MmPK0018366 for ; Fri, 3 Feb 2023 07:48:25 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Fri, 3 Feb 2023 07:48:24 +0900 From: Tomoaki AOKI To: ports@freebsd.org Subject: Re: Warnings about Mk/Uses/go.mk when building INDEX Message-Id: <20230203074824.a4b8408887ebef28140c3cc1@dec.sakura.ne.jp> In-Reply-To: References: <8e251f66-5ef4-df84-913a-6c762b4d22dd@smo.de> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-1.58 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.98)[-0.979]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_TLS_LAST(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[sakura.ne.jp]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4P7DTw2MYdz3Ly7 X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On Thu, 2 Feb 2023 15:09:59 -0500 Dmitri Goutnik wrote: > On 02/02/2023 14:21, Philipp Ost wrote: > > Hi everyone, > > > > since at least two days, I'm getting these warning when building the INDEX: > > > > ----8<---- > > --- describe.www --- > > make[4]: "/usr/ports/Mk/Uses/go.mk" line 192: warning: duplicate script > > for target "go-post-fetch" ignored > > make[4]: "Makefile" line 35: warning: using previous script for > > "go-post-fetch" defined here > > make[4]: "/usr/ports/Mk/Uses/go.mk" line 193: warning: duplicate script > > for target "go-post-fetch" ignored > > make[4]: "Makefile" line 35: warning: using previous script for > > "go-post-fetch" defined here > > --- describe.x11-clocks --- > > ---->8---- > > > > Is anyone else seeing these warnings? > > > > Best > > Philipp > > > > I was also getting these warnings when bulk building Go ports in Poudriere: > > [00:01:16] Warning: (www/gitlab-pages): make: "/usr/ports/Mk/Uses/go.mk" > line 192: warning: duplicate script for target "go-post-fetch" ignored > [00:01:16] Warning: (www/gitlab-pages): make: "Makefile" line 35: > warning: using previous script for "go-post-fetch" defined here > [00:01:16] Warning: (www/gitlab-pages): make: "/usr/ports/Mk/Uses/go.mk" > line 193: warning: duplicate script for target "go-post-fetch" ignored > [00:01:16] Warning: (www/gitlab-pages): make: "Makefile" line 35: > warning: using previous script for "go-post-fetch" defined here > > www/gitlab-pages/Makefile has a comment on why overriding go-post-fetch > was needed. > > Best regards, > > -- > Dmitri Goutnik > dg@syrec.org | dmgk@FreeBSD.org Just a quick check (having not enough time and health): % ugrep --binary --with-hex --exclude-dir=.git --exclude-dir=distfiles \ --exclude-dir=packages -r -n "USES" /usr/ports/www/ | ugrep " go" | \ cut -f 1 -w | cut -f 1 -d : | xargs fgrep -A 5 -B 5 "go-post-fetch" /usr/ports/www/gitlab-workhorse/Makefile-ca_root_nss>0:security/ca_root_nss /usr/ports/www/gitlab-workhorse/Makefile-MASTER_SITES+= https://gitlab.com/gitlab-org/gitlab-foss/-/raw/v${DISTVERSION}/workhorse/ /usr/ports/www/gitlab-workhorse/Makefile-DISTFILES+= go.mod /usr/ports/www/gitlab-workhorse/Makefile-DIST_SUBDIR= go/$ {PKGORIGIN:S,/,_,g}/${DISTNAME} /usr/ports/www/gitlab-workhorse/Makefile-EXTRACT_ONLY+= $ {DISTFILES:N*.mod\:*:N*.mod:C/:.*//} /usr/ports/www/gitlab-workhorse/Makefile:_USES_fetch+= 800:go-post-fetch /usr/ports/www/gitlab-workhorse/Makefile:go-post-fetch: /usr/ports/www/gitlab-workhorse/Makefile- @${ECHO_MSG} "===> Fetching ${GO_MODNAME} dependencies"; /usr/ports/www/gitlab-workhorse/Makefile- @(cd ${DISTDIR}/$ {DIST_SUBDIR}; \ /usr/ports/www/gitlab-workhorse/Makefile- [ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \ /usr/ports/www/gitlab-workhorse/Makefile- ${SETENV} $ {GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x all) /usr/ports/www/gitlab-workhorse/Makefile-# --------------------------- -- Tomoaki AOKI