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.
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
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.
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.
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.
Comments 10
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.
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
I think that is going to confuse. What about extending Multibuild with php81 or does this not work ?
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.
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.
Yes, while introducing php81 on 15.5 we should have better renamed the latest php8 build (8.0.30) to php80, shouldn't we ?
Yes, it would be less confusing (to me)
This is indeed the cleanest way.
So how can I now build a redis package for php81 on 15.5 ?
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.