From owner-dev-commits-ports-main@freebsd.org Sat May 29 08:45:19 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F3A5663C4BD; Sat, 29 May 2021 08:45:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FsZrG6Kphz4XrQ; Sat, 29 May 2021 08:45:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BD7522732E; Sat, 29 May 2021 08:45:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14T8jIp2065162; Sat, 29 May 2021 08:45:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14T8jIBo065161; Sat, 29 May 2021 08:45:18 GMT (envelope-from git) Date: Sat, 29 May 2021 08:45:18 GMT Message-Id: <202105290845.14T8jIBo065161@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gerald Pfeifer Subject: git: 96c17633d903 - main - Mk/bsd.gcc.mk: Never use /usr/bin/gcc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gerald X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 96c17633d90386b5bcf8637bcba99a677184db85 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 May 2021 08:45:19 -0000 The branch main has been updated by gerald: URL: https://cgit.FreeBSD.org/ports/commit/?id=96c17633d90386b5bcf8637bcba99a677184db85 commit 96c17633d90386b5bcf8637bcba99a677184db85 Author: Gerald Pfeifer AuthorDate: 2021-05-29 06:55:08 +0000 Commit: Gerald Pfeifer CommitDate: 2021-05-29 08:45:12 +0000 Mk/bsd.gcc.mk: Never use /usr/bin/gcc USE_GCC=any was introduced to leverage the old version of GCC 4.2 installed as /usr/bin/gcc on some systems. That has increasingly not been present any longer (not on i386 and amd64 since 12.x and optionally 11.x, not even on the ppcdevref system according to linimon@) and hardly anyone actually has been testing ports in this scenario. So, finally stop using /usr/bin/gcc (and /usr/bin/gc++ and /usr/bin/gcpp) even if present. This makes USE_GCC=any just another way of spelling USE_GCC=yes before we finally de-orbit it. Discussed with: mat, linimon, pkubaj --- Mk/bsd.gcc.mk | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk index aed64671d194..0fc7c2c94877 100644 --- a/Mk/bsd.gcc.mk +++ b/Mk/bsd.gcc.mk @@ -68,16 +68,6 @@ IGNORE= bad target specification in USE_GCC; only "build" is supported .if defined(USE_GCC) && !defined(FORCE_BASE_CC_FOR_TESTING) -.if ${USE_GCC} == any && exists(/usr/bin/gcc) -CC:= gcc -CXX:= g++ -. if exists(/usr/bin/gcpp) -CPP:= gcpp -. else -CPP:= cpp -. endif -.else # The regular approach, not using the age-old base compiler. - # Handle USE_GCC=yes and USE_GCC=any. .if ${USE_GCC} == yes || ${USE_GCC} == any USE_GCC= ${GCC_DEFAULT}+ @@ -151,8 +141,6 @@ RUN_DEPENDS+= ${CC}:lang/${_GCC_PORT} USE_BINUTILS= yes .endif -.endif # USE_GCC=any - .endif # defined(_USE_GCC) && !defined(FORCE_BASE_CC_FOR_TESTING)