Solved /usr/ports/www/chromium/Makefile warning

In chromium in the ports, every time I try do do anything with make, I get the warning:

make[1]: "/usr/ports/www/chromium/Makefile" line 210: warning: "/usr/bin/grep mempcpy /usr/include/string.h" returned non-zero status

Line 210 of Makefile being BASE_MEMPCPY!= ${GREP} mempcpy ${CROSS_SYSROOT}/usr/include/string.h

However, if I do
grep memcpy /usr/include/string.h
I get
void *memcpy(void * __restrict, const void * __restrict, size_t);
and definitely a zero status.

Any ideas?
 
This is probably nitpicking - isn't the Makefile saying mempcpy whereas you grepped for memcpy?
Also, I'm wondering whether Makefile's GREP variable might use GNU grep or have any other arguments included?
Strike that. Reading helps. It's right above it... /usr/bin/grep. Duh.
 
It might be worthwile to open a PR about that (and, I noticed it, too). The line in question invokes a shell command every time the Makefile is evaluated, which is frowned upon. There should be a better solution to execute that test only when it needs to be executed, but so far, I was too lazy to try and find a solution.
 
I see it also,
Warning: (www/chromium): make: "/usr/ports/www/chromium/Makefile" line 210: warning: "/usr/bin/grep mempcpy /usr/include/string.h" returned non-zero status
 
Back
Top