PHP extensions

This project contains PHP extensions that are not part of the PHP distribution.

Name Changed
Comments 10

Johannes Weberhofer's avatar

Follow up to a discussion in devel:languages:php:php81; Can we provide packages like php81-redis for e.g. 15.5, where the related php packages in the backports-repo with all packages prefixed with php81.


H Brass's avatar

Perhaps it might be enough to just add an additional repo definition here which includes the necessary repository path, e.g. devel:languages:php:php81/openSUSE_Leap_15.5 The result would be packages named like php8-redis (not: php81-redis), but with dependencies to the php 8.1 packages for 15.5 from devel:languages:php:php81 I tried this for the redis package since I also need this for php 8.1 and it seems to work: https://download.opensuse.org/repositories/home:/brassh:/branches:/server:/php:/extensions/devel_languages_php_php81_15.5


Christian Wittmer's avatar

I think that is going to confuse. What about extending Multibuild with php81 or does this not work ?


Arjen de Korte's avatar

This is going to be even more of a mess, since both the existing php8-redis and the new php81-redis package will provide php-redis and this is going to mess up package selection.

In order for this to work, we should also rename php8 to php80 and php81 respectively, so that there is a clean separation between the PHP versions. Other distributions prove that this works, but we never had this in openSUSE as far as I know.


Johannes Weberhofer's avatar

This sounds good. (Automatic) package-selection should work independent of the naming, as our packages includes e.g. "Requires: php(api) = 20210902" and "Requires php(zend-abi) = 20210902" which is bound to specific versions.


Christian Wittmer's avatar

Yes, while introducing php81 on 15.5 we should have better renamed the latest php8 build (8.0.30) to php80, shouldn't we ?


Johannes Weberhofer's avatar

Yes, it would be less confusing (to me)


Arjen de Korte's avatar

This is indeed the cleanest way.


Christian Wittmer's avatar

So how can I now build a redis package for php81 on 15.5 ?


Johannes Weberhofer's avatar

I have configured ṕhp82 and php83 for php15.5. Works here. I have added the repos via zypper and am doing a distribution upgrade to the two repos with vendor change allowed. Then I have to support zypper a little bit manually.

openSUSE Build Service is sponsored by