Bug 28503 - php-json belongs to Mageia 7 and breaks PHP in Mageia 8
Summary: php-json belongs to Mageia 7 and breaks PHP in Mageia 8
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: High critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: IN_ERRATA8, advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-03-01 23:32 CET by Muhammad Tailounie
Modified: 2021-04-16 09:43 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Muhammad Tailounie 2021-03-01 23:32:37 CET
PHP cannot load json extension because the php-json belongs to Mageia 7 and is incompatible with Mageia 8.


php-json: php-7.3.27-1.mga7.src.rpm

php-fpm: php-8.0.2-1.mga8.src.rpm
Muhammad Tailounie 2021-03-01 23:33:04 CET

Priority: Normal => High

Comment 1 Thomas Backlund 2021-03-01 23:41:06 CET
if you uninstall php-json, does your php setup work then ?
Comment 2 Thomas Backlund 2021-03-01 23:43:13 CET
according to: https://www.php.net/manual/en/json.installation.php

As of PHP 8.0.0, the JSON extension is a core PHP extension, so it is always enabled.
Comment 3 Muhammad Tailounie 2021-03-01 23:44:33 CET
Does that mean that I should remove the package?

Uninstalling works, but I'll have to check functionalities then.
Comment 4 Muhammad Tailounie 2021-03-01 23:53:50 CET
(In reply to Thomas Backlund from comment #2)
> according to: https://www.php.net/manual/en/json.installation.php
> 
> As of PHP 8.0.0, the JSON extension is a core PHP extension, so it is always
> enabled.

:) Thank you. So the upgrade kept the package from PHP 7 just in case.
Comment 5 Marc Krämer 2021-03-02 00:44:27 CET
I assume epoch was missing in obsoletes. An updated package is now builing

CC: (none) => mageia

Comment 6 Morgan Leijström 2021-03-02 01:25:59 CET
Great.

The first message in the thread https://ml.mageia.org/l/arc/dev/2021-03/msg00019.html told it stopped a server.

Added in Errata with fix = remove php-json.

Keywords: (none) => IN_ERRATA8
CC: (none) => fri

Comment 7 Marc Krämer 2021-03-02 08:36:48 CET
Updated php package to fix removal of an deprecated package during installation.


Packages in core/updates_testing:
php-*-8.0.2-1.1

SRPM
php-8.0.2-1.1.mga8.src.rpm

Assignee: bugsquad => qa-bugs

Comment 8 Aurelien Oudelet 2021-03-04 17:37:32 CET
Trying to reproduce the OP behaviour:
Having php-json-7.3.27-1.mga7 AFTER upgrading to Mageia 8 from CLI.

Not reproduced.
php-json-7.3.21-1.mga7 correctly removed from the test system with
 - lib64php_common7-3:7.3:27-1.mga7
 - php-xml-3:7.3.27-1.mga7

So, this update is UNNECESSARY if upgrade was made with "--auto" switch.

CC: (none) => ouaurelien
Assignee: qa-bugs => mageia
Status: NEW => NEEDINFO

Comment 9 Marc Krämer 2021-03-11 18:51:14 CET
next release of php is ready, but it does just contain some bug fixes, nothing severe. We can push it, to solve "both". Or just wait for an update which is "worth" pushing
Comment 10 Morgan Leijström 2021-04-04 12:39:04 CEST
I think it is worth pushing
So we do what can be done
Comment 11 Morgan Leijström 2021-04-04 17:12:31 CEST
I mean push ASAP - we enabled mgaapplet now!
Morgan Leijström 2021-04-04 17:29:10 CEST

Status: NEEDINFO => NEW

Comment 12 Marc Krämer 2021-04-05 11:34:54 CEST
@Morgan: what is needed of me? Is it just an update advisory?
Comment 13 Morgan Leijström 2021-04-05 12:19:31 CEST
Yes
And we can set validated_update

Right, Aurelien?
Comment 14 Marc Krämer 2021-04-05 12:56:30 CEST
Updated php package to latest releas 8.0.3:

- fix packaging error which does not remove php-json on upgrade (no module anymore)
- fix some rare php errors which result in segmentation faults

References:
https://www.php.net/ChangeLog-8.php#8.0.3

Updated packages in core/updates_testing:
php-fpm-8.0.3-1.1.mga8
phpdbg-8.0.3-1.1.mga8
php-cli-8.0.3-1.1.mga8
php-cgi-8.0.3-1.1.mga8
php-opcache-debuginfo-8.0.3-1.1.mga8
apache-mod_php-debuginfo-8.0.3-1.1.mga8
php-cli-debuginfo-8.0.3-1.1.mga8
php-cgi-debuginfo-8.0.3-1.1.mga8
php-fpm-debuginfo-8.0.3-1.1.mga8
phpdbg-debuginfo-8.0.3-1.1.mga8
php-soap-debuginfo-8.0.3-1.1.mga8
php-opcache-8.0.3-1.1.mga8
php-intl-debuginfo-8.0.3-1.1.mga8
php-mbstring-8.0.3-1.1.mga8
php-mbstring-debuginfo-8.0.3-1.1.mga8
php-debuginfo-8.0.3-1.1.mga8
php-mysqlnd-debuginfo-8.0.3-1.1.mga8
php-openssl-debuginfo-8.0.3-1.1.mga8
php-phar-debuginfo-8.0.3-1.1.mga8
php-dom-debuginfo-8.0.3-1.1.mga8
php-intl-8.0.3-1.1.mga8
php-pgsql-debuginfo-8.0.3-1.1.mga8
php-fileinfo-debuginfo-8.0.3-1.1.mga8
php-mysqli-debuginfo-8.0.3-1.1.mga8
php-ini-8.0.3-1.1.mga8
php-pdo-debuginfo-8.0.3-1.1.mga8
php-curl-debuginfo-8.0.3-1.1.mga8
php-sockets-debuginfo-8.0.3-1.1.mga8
apache-mod_php-8.0.3-1.1.mga8
php-phar-8.0.3-1.1.mga8
php-session-debuginfo-8.0.3-1.1.mga8
php-soap-8.0.3-1.1.mga8
php-mysqlnd-8.0.3-1.1.mga8
php-gmp-debuginfo-8.0.3-1.1.mga8
php-gd-debuginfo-8.0.3-1.1.mga8
php-imap-debuginfo-8.0.3-1.1.mga8
php-exif-debuginfo-8.0.3-1.1.mga8
php-ldap-debuginfo-8.0.3-1.1.mga8
php-zip-debuginfo-8.0.3-1.1.mga8
php-ftp-debuginfo-8.0.3-1.1.mga8
php-sodium-debuginfo-8.0.3-1.1.mga8
php-openssl-8.0.3-1.1.mga8
php-snmp-debuginfo-8.0.3-1.1.mga8
php-dba-debuginfo-8.0.3-1.1.mga8
php-tidy-debuginfo-8.0.3-1.1.mga8
php-dom-8.0.3-1.1.mga8
php-filter-debuginfo-8.0.3-1.1.mga8
php-sqlite3-debuginfo-8.0.3-1.1.mga8
php-bcmath-debuginfo-8.0.3-1.1.mga8
php-doc-8.0.3-1.1.mga8.noarch.rpm
php-iconv-debuginfo-8.0.3-1.1.mga8
php-mysqli-8.0.3-1.1.mga8
php-pgsql-8.0.3-1.1.mga8
php-odbc-debuginfo-8.0.3-1.1.mga8
php-zlib-debuginfo-8.0.3-1.1.mga8
php-posix-debuginfo-8.0.3-1.1.mga8
php-pdo_pgsql-debuginfo-8.0.3-1.1.mga8
php-pdo-8.0.3-1.1.mga8
php-gd-8.0.3-1.1.mga8
php-pdo_mysql-debuginfo-8.0.3-1.1.mga8
php-session-8.0.3-1.1.mga8
php-curl-8.0.3-1.1.mga8
php-sockets-8.0.3-1.1.mga8
php-pdo_firebird-debuginfo-8.0.3-1.1.mga8
php-xsl-debuginfo-8.0.3-1.1.mga8
php-pdo_sqlite-debuginfo-8.0.3-1.1.mga8
php-xmlwriter-debuginfo-8.0.3-1.1.mga8
php-xmlreader-debuginfo-8.0.3-1.1.mga8
php-calendar-debuginfo-8.0.3-1.1.mga8
php-tokenizer-debuginfo-8.0.3-1.1.mga8
php-imap-8.0.3-1.1.mga8
php-pdo_dblib-debuginfo-8.0.3-1.1.mga8
php-sodium-8.0.3-1.1.mga8
php-readline-debuginfo-8.0.3-1.1.mga8
php-exif-8.0.3-1.1.mga8
php-ldap-8.0.3-1.1.mga8
php-pcntl-debuginfo-8.0.3-1.1.mga8
php-zip-8.0.3-1.1.mga8
php-gmp-8.0.3-1.1.mga8
php-odbc-8.0.3-1.1.mga8
php-ftp-8.0.3-1.1.mga8
php-pdo_odbc-debuginfo-8.0.3-1.1.mga8
php-snmp-8.0.3-1.1.mga8
php-dba-8.0.3-1.1.mga8
php-bz2-debuginfo-8.0.3-1.1.mga8
php-tidy-8.0.3-1.1.mga8
php-sqlite3-8.0.3-1.1.mga8
php-iconv-8.0.3-1.1.mga8
php-zlib-8.0.3-1.1.mga8
php-filter-8.0.3-1.1.mga8
php-pdo_pgsql-8.0.3-1.1.mga8
php-enchant-debuginfo-8.0.3-1.1.mga8
php-xmlwriter-8.0.3-1.1.mga8
php-sysvmsg-debuginfo-8.0.3-1.1.mga8
php-bcmath-8.0.3-1.1.mga8
php-gettext-debuginfo-8.0.3-1.1.mga8
php-ctype-debuginfo-8.0.3-1.1.mga8
php-pdo_sqlite-8.0.3-1.1.mga8
php-posix-8.0.3-1.1.mga8
php-pcntl-8.0.3-1.1.mga8
php-pdo_firebird-8.0.3-1.1.mga8
php-xmlreader-8.0.3-1.1.mga8
php-xsl-8.0.3-1.1.mga8
php-readline-8.0.3-1.1.mga8
php-pdo_mysql-8.0.3-1.1.mga8
php-calendar-8.0.3-1.1.mga8
php-sysvshm-debuginfo-8.0.3-1.1.mga8
php-bz2-8.0.3-1.1.mga8
php-tokenizer-8.0.3-1.1.mga8
php-pdo_dblib-8.0.3-1.1.mga8
php-shmop-debuginfo-8.0.3-1.1.mga8
php-sysvshm-8.0.3-1.1.mga8
php-pdo_odbc-8.0.3-1.1.mga8
php-enchant-8.0.3-1.1.mga8
php-sysvsem-debuginfo-8.0.3-1.1.mga8
php-sysvmsg-8.0.3-1.1.mga8
php-ctype-8.0.3-1.1.mga8
php-gettext-8.0.3-1.1.mga8
php-sysvsem-8.0.3-1.1.mga8
php-shmop-8.0.3-1.1.mga8
php-fpm-nginx-8.0.3-1.1.mga8
php-fpm-apache-8.0.3-1.1.mga8
php-fileinfo-8.0.3-1.1.mga8
php-debugsource-8.0.3-1.1.mga8
php-devel-8.0.3-1.1.mga8

SPRM:
php-8.0.3-1.1.mga8.src.rpm
Marc Krämer 2021-04-05 12:56:39 CEST

Assignee: mageia => qa-bugs

Comment 15 Muhammad Tailounie 2021-04-13 18:31:25 CEST
My testing for PHP from updates testing today works fine for roundcubemail. Of course other products that need php 7 do not work with php 8.

So my testing just confirms that php 8 is working fine in Mageia 8 and that roundcubemail is back to function under Mageia 8 :)
Comment 16 Thomas Andrews 2021-04-13 19:08:12 CEST
Should be good enough. Giving this an OK, and validating. Advisory in Comment 14.

Keywords: (none) => validated_update
Whiteboard: (none) => MGA8-64-OK
CC: (none) => andrewsfarm, sysadmin-bugs

Aurelien Oudelet 2021-04-14 17:10:18 CEST

Keywords: (none) => advisory

Comment 17 Mageia Robot 2021-04-15 21:05:53 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0077.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 18 Morgan Leijström 2021-04-16 09:43:41 CEST
Updated Errata

Note You need to log in before you can comment on or make changes to this bug.