[Bug 267215] Mk/bsd.gcc.mk: Stop checking if specific version requested is already installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Nov 2022 09:37:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267215

Gerald Pfeifer <gerald@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|maintainer-feedback?(gerald |maintainer-feedback-
                   |@FreeBSD.org)               |

--- Comment #2 from Gerald Pfeifer <gerald@FreeBSD.org> ---
Update: Essentially with the proposed patch, if a user has GCC 10
installed as the only version and one installs a port that has USE_GCC=10+,
the installed GCC port is going to be ignored and GCC_DEFAULT is installed
and used in any case.

In other words, with your patch USE_GCC=XX+ becomes equivalent to
USE_GCC=yes when XX <= GCC_DEFAULT.

Is this correct?


If so, this is a fundamental change, whereas the usecase of playing with
GCC_DEFAULT is a very special one that hardly anyone should ever entertain.

Admittedly what Mk/bsd.gcc.mk does these days, and the variety of
environments it needs to handle, are vastly reduced from, say, five,
seven, let alone more years ago and it is not unthinkable to reduce
that further. If so, I'd probably go about it a bit differently, though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.