Bug 279812 - Mk/bsd.sites.mk: warnings issued for textproc when running make index
Summary: Mk/bsd.sites.mk: warnings issued for textproc when running make index
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 12:10 UTC by Trond Endrestøl
Modified: 2024-06-23 18:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2024-06-17 12:10:15 UTC
For the last few weeks, these warnings are displayed towards the end of "make index":

--- describe.textproc ---
make[4]: "/usr/ports/Mk/bsd.sites.mk" line 528: warning: duplicate script for target "git-clone-DEFAULT" ignored
make[4]: "/usr/ports/Mk/bsd.sites.mk" line 366: warning: using previous script for "git-clone-DEFAULT" defined here
make[4]: "/usr/ports/Mk/bsd.sites.mk" line 529: warning: duplicate script for target "git-clone-DEFAULT" ignored
make[4]: "/usr/ports/Mk/bsd.sites.mk" line 366: warning: using previous script for "git-clone-DEFAULT" defined here
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2024-06-17 17:37:28 UTC
I can't reproduce this on a freshly copy of the ports tree:

...
...
--- describe.news ---
--- describe.polish ---
--- describe.ports-mgmt ---
--- describe.portuguese ---
--- describe.print ---
--- describe.russian ---
--- describe.science ---
--- describe.security ---
--- describe.shells ---
--- describe.sysutils ---
--- describe.textproc ---
--- describe.ukrainian ---
--- describe.vietnamese ---
--- describe.www ---
--- describe.x11 ---
...
...
Comment 2 Trond Endrestøl 2024-06-17 20:27:49 UTC
(In reply to Fernando Apesteguía from comment #1)

I've tracked it down to textproc/sttr which uses both GitHub and GitLab. I'm not sure how I managed to make these warnings visible. It might be something in my /etc/make.conf. I'll continue my hunt.
Comment 3 Trond Endrestøl 2024-06-18 06:35:13 UTC
(In reply to Trond Endrestøl from comment #2)

I have a vanilla 14.1-RELEASE system in my office, and I got the same results from running "make index". I'm on the main branch of the ports tree. Are you on the same branch and did you let "make index" run to completion?
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2024-06-21 07:44:10 UTC
(In reply to Trond Endrestøl from comment #3)
--- describe.x11-servers ---
--- describe.x11-themes ---
--- describe.x11-toolkits ---
--- describe.x11-wm ---
--- describe.textproc ---
make[4]: "/data/fernape_data/FreeBSD-repos/ports/Mk/bsd.sites.mk" line 528: warning: duplicate script for target "git-clone-DEFAULT" ignored
make[4]: "/data/fernape_data/FreeBSD-repos/ports/Mk/bsd.sites.mk" line 366: warning: using previous script for "git-clone-DEFAULT" defined here
make[4]: "/data/fernape_data/FreeBSD-repos/ports/Mk/bsd.sites.mk" line 529: warning: duplicate script for target "git-clone-DEFAULT" ignored
make[4]: "/data/fernape_data/FreeBSD-repos/ports/Mk/bsd.sites.mk" line 366: warning: using previous script for "git-clone-DEFAULT" defined here

I don't understand why it happens this time and not before...
Comment 5 Trond Endrestøl 2024-06-23 18:31:50 UTC
(In reply to Fernando Apesteguía from comment #4)

textproc/sttr pulls in both GitHub and GitLab stuff, and bsd.sites.mk doesn't handle such a situation.

See https://cgit.freebsd.org/ports/commit/textproc/sttr?id=aceb6548dd206012b330e47676d97bf3333a6af7 it's the initial commit for textproc/sttr.