Re: php-pear package build problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux