com php-src: tweak the zendparse symbol to be exported with newer bison: makedist

From: Date: Sat, 27 Jun 2015 22:10:41 +0000
Subject: com php-src: tweak the zendparse symbol to be exported with newer bison: makedist
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87567@lists.php.net to get a copy of this message
Commit: b81188518bc6018ad784492720558affeec7abf6 Author: Anatol Belski <ab@php.net> Sun, 28 Jun 2015 00:10:41 +0200 Parents: 2eea8c1adb91b92f917dcb89bbf0657b6cbea536 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b81188518bc6018ad784492720558affeec7abf6 Log: tweak the zendparse symbol to be exported with newer bison Changed paths: M makedist Diff: diff --git a/makedist b/makedist index 4139227..1552f9e 100755 --- a/makedist +++ b/makedist @@ -103,6 +103,13 @@ rm -fr autom4te.cache/ # touching everything to be packaged find $MY_OLDPWD/php-$VER -exec touch -c {} \; +# tweak zendparse to be exported through ZEND_API +# NOTE this has to be revisited once bison supports foreign skeletons +# and that bison version is used. Read /usr/share/bison/README for more +sed -i 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.c +sed -i 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.h +sed -i 's,^#ifndef YYTOKENTYPE,#include "zend.h"\n#ifndef YYTOKENTYPE,g' $MY_OLDPWD/php-$VER/Zend/zend_language_parser.h + # download pear $ECHO_N "makedist: Attempting to download PEAR's phar archive" if test ! -x wget; then

« previous php.cvs (#87567) next »