php-pear package build problem

Pavel Alexeev (aka Pahan-Hubbitus) forum at hubbitus.com.ru
Mon Sep 12 18:25:49 UTC 2011


12.09.2011 19:57, TASAKA Mamoru wrote:
> Pavel Alexeev (aka Pahan-Hubbitus) wrote, at 09/11/2011 01:01 AM +9:00:
>
>> Now I change it on:
>> %if %( php -r "echo (version_compare(PHP_VERSION, '5.3.0', '>=') ? 1 
>> : 0);" &>/dev/null || echo 0 )
>> but on make srpm got error:
>> error: 
>> /home/pasha/SOFT/git/php-pecl-runkit/master/php-pecl-runkit.spec:74: 
>> parseExpressionBoolean returns -1
>> error: query of specfile 
>> /home/pasha/SOFT/git/php-pecl-runkit/master/php-pecl-runkit.spec 
>> failed, can't parse
>> Could not make an srpm: Could not parse the spec, exited 1
> Because this php command succeeds (perhaps) and return status (of php) 
> is 0. Then php -r prints
> the result "1" to stdout but this is redirected to /dev/null. The 
> latter || echo 0 is not
> evaluated because php -r succeeds. So (with php installed) this is %if 
> (empty) , and
> rpmbuild cannot parse it.
Oh, indeed it just my inattention. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/devel/attachments/20110912/e1eba5a7/attachment.html 


More information about the devel mailing list