[Bug 257352] [patch]www/chromium: Fails to build after mempcpy (3) is added into base libc

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Sep 2021 21:24:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257352

--- Comment #16 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
(In reply to Tomoaki AOKI from comment #15)

Yes, I wrote my comment #14 without thinking about the conditions of true and
false :)
To be precise, it would look like following. Or, .if ! ${BASE_MEMPCPY}.
Also, I forgot to write that the error message is:
make: "/usr/ports/www/chromium/Makefile" line 210: warning: "/usr/bin/grep
mempcpy /usr/include/string.h" returned non-zero status


diff --git www/chromium/Makefile www/chromium/Makefile
index d60012118b..fd471f4d78 100644
--- www/chromium/Makefile
+++ www/chromium/Makefile
@@ -207,8 +207,8 @@ 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)
+BASE_MEMPCPY!= ${GREP} -q mempcpy ${CROSS_SYSROOT}/usr/include/string.h &&
echo 0 || echo 1
+.if ${BASE_MEMPCPY}
 EXTRA_PATCHES+=        ${PATCHDIR}/extra-patch-no-mempcpy-nasm
 .endif

-- 
You are receiving this mail because:
You are the assignee for the bug.