Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2023 07:48:24 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
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: <a937096d-ede1-9b47-24a9-3a2ebe90c5cf@FreeBSD.org>
References:  <8e251f66-5ef4-df84-913a-6c762b4d22dd@smo.de> <a937096d-ede1-9b47-24a9-3a2ebe90c5cf@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2 Feb 2023 15:09:59 -0500
Dmitri Goutnik <dmgk@FreeBSD.org> 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    <junchoon@dec.sakura.ne.jp>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230203074824.a4b8408887ebef28140c3cc1>