[PATCH] fpm/bug: posix call is not POSIX compliant

From: Date: Sun, 13 Dec 2009 22:06:47 +0000
Subject: [PATCH] fpm/bug: posix call is not POSIX compliant
Groups: php.internals 
Request: Send a blank email to internals+get-46410@lists.php.net to get a copy of this message
Hi tony, in the FPM config.m4 the command "find" is used to find source file: PHP_FPM_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name *.c -not -name fpm_trace*.c \) -exec printf "{} " \;` But the -not argument is not POSIX compliant and is not recognized on several unix as OpenBSD. This should be replaced by \! which is, of course, recognized by linux also. The attached patch corrects this. ++ Jerome

Index: sapi/fpm/config.m4 =================================================================== --- sapi/fpm/config.m4 (revision 292084) +++ sapi/fpm/config.m4 (working copy) @@ -654,7 +654,7 @@ PHP_SUBST(SAPI_FPM_PATH) mkdir -p sapi/fpm/fpm - PHP_FPM_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name *.c -not -name fpm_trace*.c \) -exec printf "{} " \;` + PHP_FPM_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name *.c \! -name fpm_trace*.c \) -exec printf "{} " \;` if test "$fpm_trace_type" ; then PHP_FPM_TRACE_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name fpm_trace.c -or -name fpm_trace_$fpm_trace_type.c \) -exec printf "{} " \;`
« previous php.internals (#46410) next »