Bug 1226390

Summary: Distribution upgrade to 15.6 removes php81 and installs php7
Product: [openSUSE] openSUSE Distribution Reporter: Joerg Rohrer <joergi>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: Andreas.Stieger, joergi, Sauerlandlinux
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joerg Rohrer 2024-06-15 16:25:26 UTC
As the summary says. A "zypper --releasever=15.6 dup" removes php81 and installs php7.
Please update or add PHP 8 and later to repos.
Comment 1 Joerg Rohrer 2024-06-15 16:34:33 UTC
my current repos, maybe there is something wrong in my repos too.


zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                             | Name                                                | Enabled | GPG Check | Refresh | URI
---+-----------------------------------+-----------------------------------------------------+---------+-----------+---------+----------------------------------------------------------------------------
 1 | repo-${releasever}-non-oss        | openSUSE-15.5 Non-OSS                               | Yes     | (r ) Yes  | No      | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/
 2 | repo-${releasever}-oss            | openSUSE-15.5 OSS                                   | Yes     | (r ) Yes  | No      | http://download.opensuse.org/distribution/leap/15.5/repo/oss/
 3 | repo-${releasever}-update-non-oss | openSUSE-15.5 Updates Non-OSS                       | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.5/non-oss/
 4 | repo-${releasever}-update-oss     | openSUSE-15.5 Updates OSS                           | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.5/oss/
 5 | repo-backports-debug-update       | Update repository with updates for openSUSE Leap -> | No      | ----      | ----    | http://download.opensuse.org/update/leap/15.5/backports_debug/
 6 | repo-backports-update             | Update repository of openSUSE Backports             | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.5/backports/
 7 | repo-sle-debug-update             | Update repository with debuginfo for updates from-> | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.5/sle/
 8 | repo-sle-update                   | Update repository with updates from SUSE Linux En-> | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.5/sle/
 9 | server_mail                       | Email services (15.5)                               | Yes     | (r ) Yes  | No      | https://download.opensuse.org/repositories/server:/mail/15.5/
10 | server_mail_15_6                  | server_mail_15_6                                    | No      | ----      | ----    | https://download.opensuse.org/repositories/server:/mail/openSUSE_Leap_15.6/
Comment 2 Stephan Hemeier 2024-06-15 16:40:22 UTC
Enable the refresh for the OSS and Non-OSS Repo?
Comment 3 Andreas Stieger 2024-06-15 17:22:50 UTC
(In reply to Joerg Rohrer from comment #0)
> As the summary says. A "zypper --releasever=15.6 dup" removes php81 and
> installs php7.

openSUSE Leap 15.6 ships only one version for PHP 7 and 8 each. Replace php81 with php8.

> Please update or add PHP 8 and later to repos.

Not needed see below.

$ zypper search -t package --match-exact -s php7 php8
Loading repository data...
Reading installed packages...

S | Name | Type    | Version              | Arch   | Repository
--+------+---------+----------------------+--------+----------------
  | php7 | package | 7.4.33-150400.4.34.1 | x86_64 | Main Repository
  | php8 | package | 8.2.10-150600.1.9    | x86_64 | Main Repository

(In reply to Joerg Rohrer from comment #1)
> my current repos, maybe there is something wrong in my repos too.

There is. You are running a mix of 15.5 and 15.6 (server_mail)

That is also probably what is pulling in an unexpected packages.

Please make sure your server_mail repository is using the ${releasever} placeholder, and that you have enabled either automatic refresh on the repositories or performed a manual forced refresh. In any case please add reproduction steps after your verification.
Comment 4 Joerg Rohrer 2024-06-15 18:26:15 UTC
> Please make sure your server_mail repository is using the ${releasever}
> placeholder, and that you have enabled either automatic refresh on the
> repositories or performed a manual forced refresh. In any case please add
> reproduction steps after your verification.

yep, not sure why this has not been changed.
Comment 5 Joerg Rohrer 2024-06-15 21:50:38 UTC
Problem solved. zypper in php8 installs the latest version.
Thank you and sorry for the noise.