svn commit: r511727 - head/sysutils/uefi-edk2-qemu
Gerald Pfeifer
gerald at pfeifer.com
Sat Feb 13 22:47:22 UTC 2021
On Wed, 11 Sep 2019, Jan Beich wrote:
> Rebecca Cran <bcran at 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
More information about the svn-ports-head
mailing list