Re: dealing with (lib)sodium migration EPEL/Fedora

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

 



Hi,

Sorry, being late..

Le 18/09/2017 à 14:29, François Kooman a écrit :
> in spec files:
> 
> %if 0%{?fedora} >= 28
> Requires:       php-sodium
> %else
> Requires:       php-libsodium
> %endif

I think this only make sense if you accept both versions
as sodium (v2 or PHP 7.2) and libsodium (v1) have different API.

If you need v2
	Requires: php-sodium
	Requires: php-pecl(libsodium) >= 2

If you need v1
	Requires: php-libsodium
or
	Requires: php-pecl(libsodium) < 2

Notice: I've just fix a small issue in old v1 extension, which allow to
load both extensions simuiltenaously, so I will keep the
php-pecl-libsodium package for a few more Fedora versions.


Remi.


P.S. IMHO, "Requires: php-foo" should always be preferred, rather than
the php-pecl(xxx) virtual provides.
_______________________________________________
php-devel mailing list -- php-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to php-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




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

  Powered by Linux