git: 289869de6aa5 - main - www/chromium: Tweak mempcpy check to silence a warning
Joseph Mingrone
jrm at FreeBSD.org
Fri Sep 24 02:46:16 UTC 2021
The branch main has been updated by jrm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=289869de6aa59a3089a60054f10ed97d4f6b491b
commit 289869de6aa59a3089a60054f10ed97d4f6b491b
Author: Felix Palmen <felix at palmen-it.de>
AuthorDate: 2021-09-23 19:32:24 +0000
Commit: Joseph Mingrone <jrm at FreeBSD.org>
CommitDate: 2021-09-24 02:46:13 +0000
www/chromium: Tweak mempcpy check to silence a warning
PR: 258271
---
www/chromium/Makefile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index 3feeee1497ea..d4e64b662c0e 100644
--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -207,10 +207,11 @@ TEST_ALL_TARGET= ${TEST_TARGETS}
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
-BASE_MEMPCPY!= ${GREP} mempcpy ${CROSS_SYSROOT}/usr/include/string.h
-.if empty(BASE_MEMPCPY)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-no-mempcpy-nasm
-.endif
+# Add extra-patch-no-mempcpy-nasm only when there's no mempcpy() in base.
+# Nested variable expansion avoids executing the test when not needed for
+# expanding EXTRA_PATCHES.
+EXTRA_PATCHES+= ${"${:!${GREP} mempcpy ${CROSS_SYSROOT}/usr/include/string.h \
+ || ${TRUE}!}" == "":?${PATCHDIR}/extra-patch-no-mempcpy-nasm:}
.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
More information about the dev-commits-ports-all
mailing list