Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 2021 23:47:12 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Jan Beich <jbeich@FreeBSD.org>, Rebecca Cran <bcran@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org,  svn-ports-head@freebsd.org
Subject:   Re: svn commit: r511727 - head/sysutils/uefi-edk2-qemu
Message-ID:  <704b6093-69e0-57aa-c56b-33b558dd32ad@pfeifer.com>
In-Reply-To: <k1af-wvcl-wny@FreeBSD.org>
References:  <201909100151.x8A1pqC5086268@repo.freebsd.org> <sgp4-x2ho-wny@FreeBSD.org> <1746825a-d196-9390-6c71-45918862e985@freebsd.org> <k1af-wvcl-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Sep 2019, Jan Beich wrote:
> Rebecca Cran <bcran@freebsd.org> writes:
>>> Only lang/gcc (meta port) installs "gcc" symlink. Why not keep USE_GCC
>>> while using the same hack as sysutils/uefi-edk2-bhyve or misc/seabios?
>> Oh, I see the problem. It should be
>> gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}.
>>
>> I'm not sure what hack you're referring to: how do those ports avoid
>> pulling in gcc as a dependency while still using USE_GCC?
> USE_GCC=	yes
> ...
> .include <bsd.port.mk>
> RUN_DEPENDS:=	${RUN_DEPENDS:Ngcc*}

Even better -- and I am sorry it took me so long to get this into the
ports infrastructure (Mk/bsd.gcc.mk) -- should be a simple

  USE_GCC=yes:build

This essentially is a variation of what Jan proposed, just with the
new ":build" parameter instead of manipulating RUN_DEPENDS directly.

Okay to commit?

Gerald


Index: Makefile
===================================================================
--- Makefile	(revision 565069)
+++ Makefile	(working copy)
@@ -13,7 +13,6 @@
 
 BUILD_DEPENDS=	bash:shells/bash \
 		nasm:devel/nasm \
-		gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT} \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7:databases/py-sqlite3@${PY_FLAVOR}
 
 FLAVORS=	x86_64 i386
@@ -20,6 +19,7 @@
 
 USES=		gmake \
 		python:3.4+,build
+USE_GCC=	yes:build
 
 x86_64_PKGNAMESUFFIX=	-x86_64
 i386_PKGNAMESUFFIX=	-i386



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?704b6093-69e0-57aa-c56b-33b558dd32ad>