Re: Register PECl extensions ?

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

 



Joe Orton a écrit :

> %php_extdir %{_libdir}/php/modules
> 
> added to macros.php, correct?

Yes.
or :
%php_extdir %(%{_bindir}/php  --extension-dir)
> 
>> pecl_(un)install macro (and probably  pear_(un)install too) could be usefull
>> when a new PEAR version changes options :
>> for example php-pear 1.6.1 requires  "-d download_dir=$(mktemp -d)" to
>> work (ok, it's probably a bug)
> 
> Yeah :) I'd rather fix that bug than workaround it I think.

Patch proposed upstream... waiting.
http://pear.php.net/bugs/bug.php?id=11517

> 
>> But this will requires a Guidelines update...
> 
> Since this is new ground let's work out everything that's needed before 
> submitting anything, and get it in and working with your APC package in 
> review.

It's php-pecl-phar ;)
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=247515

It have been approved by tibbs.
Only pushed to "devel" to make it more available for tests.

I will work on the PHP Guidelines Draft ASAP (Waiting for feedback before).

I Think i will propose to use something like :

%post
%if 0%{?pecl_install:1}
%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
%endif

In this way, the same spec could be use with old PEAR version (where
"pear install" doesn't work, especially in EPEL) and with new where it
works (and where macros are defined, Fedora >= 7). Because, i don't find
a simple solution to check PEAR version in scriptlet (without using rpm
command).

Remi.

_______________________________________________
Fedora-php-devel-list mailing list
Fedora-php-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-php-devel-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora KDE]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux