From e7eacdaf111948e2ea1a1e89888e9b99265cb968 Mon Sep 17 00:00:00 2001 From: rakuco Date: Mon, 28 Nov 2016 17:22:29 +0000 Subject: Uses/php.mk: Use EGREP instead of GREP when parsing config.h Using ${GREP} was failing when grep was built with the WITHOUT_GNU_GREP_COMPAT knob in src.conf. According to POSIX, | only works for alternation in extended regular expressions (grep -E), although GNU grep disregards the difference. The new syntax with ${EGREP} and no escaping of special characters works with both BSD grep (without WITHOUT_GNU_GREP_COMPAT) as well as GNU grep. Approved by: mat Differential Revision: https://reviews.freebsd.org/D8663 --- Mk/Uses/php.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mk') diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index 6613bd2e57c1..240f235bde5a 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -244,7 +244,7 @@ do-install: ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header} . endfor @${RM} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h - @${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \ + @${EGREP} "#define (COMPILE|HAVE|USE)_" ${WRKSRC}/config.h \ > ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php . if ${php_ARGS:Mzend} -- cgit