I think I might know what's going on, but I am not familiar enough with the ins and outs of the ports system, make, etc. to say for sure, so I'd appreciate if anyone could please tell me whether or not I'm on the right track here:
I found that the message is coming from within
/usr/ports/Tools/make_index, and it happens based on the "name" having already been handled (or some such thing - it's a Perl script and I am also not familiar with Perl, lol). From there I tried to figure out where this "name" was coming from. Unfortunately I haven't had much sleep and so I've lost track of exactly where I found this information or exactly what it said, but I gathered that it's coming from within the
make stuff for each individual port, and that if there are two or more ports that have the same base name (not sure that "base" is the proper term here), they are supposed to be distinguished from each other by "PKGNAMEPREFIX" and "PKGNAMESUFFIX" (and maybe other things too, I dunno).
So, I looked for
mldonkey ports. I found three:
net-p2p/mldonkey,
net-p2p/mldonkey-core, and
net-p2p/mldonkey-gui. The
Makefiles for the
-core and
-gui ones are pretty short; each just sets a few variables (
PKGNAMEPREFIX and
PKGNAMESUFFIX are
not among them) and then includes the
Makefile for the main
mldonkey port.
I searched
mldonkey/Makefile for
PKGNAME. It doesn't contain any references (at least not obvious, direct ones) to
PKGNAMEPREFIX, but it does contain a couple to
PKGNAMESUFFIX:
Code:
. if !${PORT_OPTIONS:MGUI}
PKGNAMESUFFIX= -core
(...)
. if !${PORT_OPTIONS:MCORE}
PKGNAMESUFFIX= -gui
Given that the message complains about a duplicate of "mldonkey-core", I am guessing that both
mldonkey-core and
mldonkey-gui are hitting that
.if !$(PORT_OPTIONS:MGUI), and therefore setting
PKGNAMESUFFIX to
-core.
Unfortunately, due to my lack of knowledge and/or sleep, I haven't been able to figure out where this
PORT_OPTIONS:MGUI thing (or, more specifically, the lack thereof) is coming from, but I do know this: One of the things I do in my
make.conf is
OPTIONS_UNSET+=GUI.
I'm guessing that that somehow causes
PORT_OPTIONS:MGUI to be false, regardless of whether or not the actual package being analyzed is
mldonkey-core or
mldonkey-gui.
Does this make sense? Should I bring it up to the maintainer(s) of the various
mldonkey ports? Or am I doing something wrong?
GUI has been one of the things that I've intentionally turned off in
make.conf on a whole bunch of FreeBSD machines for literally decades, and as far as I can tell doing so has been fine for all that time, but maybe I shouldn't be doing that? Or should be doing it differently somehow?
Thanks for any help.