php-pear package build problem

TASAKA Mamoru mtasaka at fedoraproject.org
Wed Sep 7 14:59:57 UTC 2011


Pavel Alexeev (aka Pahan-Hubbitus) wrote, at 09/07/2011 04:14 PM +9:00:
> 06.09.2011 18:47, TASAKA Mamoru wrote:
>> Pavel Alexeev (aka Pahan-Hubbitus) wrote, at 09/06/2011 07:00 PM +9:00:
>>> 05.09.2011 19:17, TASAKA Mamoru wrote:
>> 2. The line 28
>>>>
>>>> %if %{?php_zend_api}0
>>>>
>>>> cannot be parsed when %php_zend_api is not integer (and this is
>>>> actually happening
>>>> currently). The correct line would be something like
>>>>
>>>> %if 0%{?php_zend_api?1:0}
>>>>
>>>> however it seems this line is no longer needed on Fedora:
>>>> http://fedoraproject.org/wiki/Packaging:PHP#C_extensions_.28PECL_and_others.29
>>>>
>>> It stil needed for EPEL
>>> http://fedoraproject.org/wiki/Packaging:EPEL#PHP_ABI_Check_Handling
>>> and exactly in this form
>>
>> Then you have to write this only for EPEL build. Again on F-17 parsing
>> "%if %{?php_zend_api}0" actually failed, because php_zend_api is not
>> integer
>> (actually %php_zend_api is now 20090626-x86-32 on F-17 i686)
>> This EPEL form is no longer valid on Fedora (at least on F-17).
>>
>> However "%if 0%{?php_zend_api?1:0}" is also wrong and this should be
>> "%if 0%{?php_zend_api:1}" if you want to use (guessing php_zend_api
>> is not defined as "0" even on EPEL)
>>
> It wasn't sole issue, but I understand your idea. Thank you again.
> It also was in php command below what I also make silent fail if command
> not found.

If you still see some issue, please write in detail what you see (and post
the spec file you are currently using).

> Just for interest - is there change of minimal buildroot happened since
> F15? Why it was worked before? Was it announced and I miss something?

F-15+ is using rpm 4.9.x. F-14 uses 4.8.1. At least this changed (note
that your initial spec file does not work even on F-15). Perhaps this
is related, although I have not examined further.

Regards,
Mamoru





More information about the devel mailing list