Bug 29706 - Backport php 8.1
Summary: Backport php 8.1
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Backports (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8TOO MGA8-64-OK
Keywords: validated_backport
Depends on:
Blocks:
 
Reported: 2021-11-27 11:48 CET by Marc Krämer
Modified: 2021-12-03 20:12 CET (History)
2 users (show)

See Also:
Source RPM: php
CVE:
Status comment:


Attachments

Description Marc Krämer 2021-11-27 11:48:11 CET
In order to allow smooth transition between releases I'm backporting php 8.1 to mga8.

https://www.php.net/ChangeLog-8.php#8.1.0

dependend php-pecl extensions will be backported too
Comment 1 Marc Krämer 2021-11-27 12:14:17 CET
Files in backports_testing:
php-fpm-8.1.0-1.mga8
phpdbg-8.1.0-1.mga8
php-cli-8.1.0-1.mga8
php-cgi-8.1.0-1.mga8
php-cgi-debuginfo-8.1.0-1.mga8
apache-mod_php-debuginfo-8.1.0-1.mga8
php-cli-debuginfo-8.1.0-1.mga8
php-fpm-debuginfo-8.1.0-1.mga8
phpdbg-debuginfo-8.1.0-1.mga8
php-mbstring-debuginfo-8.1.0-1.mga8
php-intl-debuginfo-8.1.0-1.mga8
php-soap-debuginfo-8.1.0-1.mga8
php-debuginfo-8.1.0-1.mga8
php-fileinfo-8.1.0-1.mga8
php-opcache-8.1.0-1.mga8
php-mbstring-8.1.0-1.mga8
php-phar-debuginfo-8.1.0-1.mga8
apache-mod_php-8.1.0-1.mga8
php-mysqlnd-debuginfo-8.1.0-1.mga8
php-dom-debuginfo-8.1.0-1.mga8
php-opcache-debuginfo-8.1.0-1.mga8
php-openssl-debuginfo-8.1.0-1.mga8
php-mysqli-debuginfo-8.1.0-1.mga8
php-fileinfo-debuginfo-8.1.0-1.mga8
php-pgsql-debuginfo-8.1.0-1.mga8
php-intl-8.1.0-1.mga8
php-pdo-debuginfo-8.1.0-1.mga8
php-curl-debuginfo-8.1.0-1.mga8
php-session-debuginfo-8.1.0-1.mga8
php-ini-8.1.0-1.mga8
php-soap-8.1.0-1.mga8
php-sockets-debuginfo-8.1.0-1.mga8
php-phar-8.1.0-1.mga8
php-imap-debuginfo-8.1.0-1.mga8
php-gd-debuginfo-8.1.0-1.mga8
php-mysqlnd-8.1.0-1.mga8
php-gmp-debuginfo-8.1.0-1.mga8
php-ldap-debuginfo-8.1.0-1.mga8
php-snmp-debuginfo-8.1.0-1.mga8
php-zip-debuginfo-8.1.0-1.mga8
php-sodium-debuginfo-8.1.0-1.mga8
php-dba-debuginfo-8.1.0-1.mga8
php-exif-debuginfo-8.1.0-1.mga8
php-tidy-debuginfo-8.1.0-1.mga8
php-ftp-debuginfo-8.1.0-1.mga8
php-dom-8.1.0-1.mga8
php-openssl-8.1.0-1.mga8
php-filter-debuginfo-8.1.0-1.mga8
php-sqlite3-debuginfo-8.1.0-1.mga8
php-bcmath-debuginfo-8.1.0-1.mga8
php-mysqli-8.1.0-1.mga8
php-doc-8.1.0-1.mga8
php-iconv-debuginfo-8.1.0-1.mga8
php-pgsql-8.1.0-1.mga8
php-odbc-debuginfo-8.1.0-1.mga8
php-posix-debuginfo-8.1.0-1.mga8
php-zlib-debuginfo-8.1.0-1.mga8
php-pdo-8.1.0-1.mga8
php-pdo_pgsql-debuginfo-8.1.0-1.mga8
php-xmlreader-debuginfo-8.1.0-1.mga8
php-pdo_mysql-debuginfo-8.1.0-1.mga8
php-curl-8.1.0-1.mga8
php-session-8.1.0-1.mga8
php-pdo_sqlite-debuginfo-8.1.0-1.mga8
php-pdo_firebird-debuginfo-8.1.0-1.mga8
php-tokenizer-debuginfo-8.1.0-1.mga8
php-gd-8.1.0-1.mga8
php-xsl-debuginfo-8.1.0-1.mga8
php-sodium-8.1.0-1.mga8
php-sockets-8.1.0-1.mga8
php-imap-8.1.0-1.mga8
php-calendar-debuginfo-8.1.0-1.mga8
php-readline-debuginfo-8.1.0-1.mga8
php-xmlwriter-debuginfo-8.1.0-1.mga8
php-pdo_dblib-debuginfo-8.1.0-1.mga8
php-pcntl-debuginfo-8.1.0-1.mga8
php-exif-8.1.0-1.mga8
php-ldap-8.1.0-1.mga8
php-pdo_odbc-debuginfo-8.1.0-1.mga8
php-gmp-8.1.0-1.mga8
php-zip-8.1.0-1.mga8
php-dba-8.1.0-1.mga8
php-sqlite3-8.1.0-1.mga8
php-odbc-8.1.0-1.mga8
php-bz2-debuginfo-8.1.0-1.mga8
php-snmp-8.1.0-1.mga8
php-ftp-8.1.0-1.mga8
php-iconv-8.1.0-1.mga8
php-tidy-8.1.0-1.mga8
php-enchant-debuginfo-8.1.0-1.mga8
php-zlib-8.1.0-1.mga8
php-filter-8.1.0-1.mga8
php-xmlwriter-8.1.0-1.mga8
php-xmlreader-8.1.0-1.mga8
php-pdo_pgsql-8.1.0-1.mga8
php-posix-8.1.0-1.mga8
php-gettext-debuginfo-8.1.0-1.mga8
php-sysvmsg-debuginfo-8.1.0-1.mga8
php-pcntl-8.1.0-1.mga8
php-pdo_firebird-8.1.0-1.mga8
php-readline-8.1.0-1.mga8
php-sysvshm-debuginfo-8.1.0-1.mga8
php-bcmath-8.1.0-1.mga8
php-pdo_sqlite-8.1.0-1.mga8
php-calendar-8.1.0-1.mga8
php-xsl-8.1.0-1.mga8
php-pdo_mysql-8.1.0-1.mga8
php-pdo_odbc-8.1.0-1.mga8
php-pdo_dblib-8.1.0-1.mga8
php-tokenizer-8.1.0-1.mga8
php-shmop-debuginfo-8.1.0-1.mga8
php-bz2-8.1.0-1.mga8
php-sysvsem-debuginfo-8.1.0-1.mga8
php-sysvshm-8.1.0-1.mga8
php-enchant-8.1.0-1.mga8
php-ctype-debuginfo-8.1.0-1.mga8
php-sysvmsg-8.1.0-1.mga8
php-fpm-nginx-8.1.0-1.mga8
php-shmop-8.1.0-1.mga8
php-ctype-8.1.0-1.mga8
php-gettext-8.1.0-1.mga8
php-sysvsem-8.1.0-1.mga8
php-fpm-apache-8.1.0-1.mga8
php-debugsource-8.1.0-1.mga8
php-devel-8.1.0-1.mga8
php-amqp-1.10.3-0.git20201230.2.mga8
php-amqp-debugsource-1.10.3-0.git20201230.2.mga8
php-amqp-debuginfo-1.10.3-0.git20201230.2.mga8
php-apcu-admin-5.1.21-4.mga8
php-apcu-5.1.21-4.mga8
php-apcu-debugsource-5.1.21-4.mga8
php-apcu-debuginfo-5.1.21-4.mga8
php-imagick-3.6.0-0.3.mga8
php-imagick-debuginfo-3.6.0-0.3.mga8
php-imagick-debugsource-3.6.0-0.3.mga8
php-ast-debugsource-1.0.14-2.mga8
php-ast-1.0.14-2.mga8
php-ast-debuginfo-1.0.14-2.mga8
php-bitset-3.0.1-11.mga8
php-bitset-debugsource-3.0.1-11.mga8
php-bitset-debuginfo-3.0.1-11.mga8
php-dbase-7.0.1-6.mga8
php-dbase-debugsource-7.0.1-6.mga8
php-dbase-debuginfo-7.0.1-6.mga8
php-dio-0.2.0-4.mga8
php-dio-debuginfo-0.2.0-4.mga8
php-dio-debugsource-0.2.0-4.mga8
php-event-3.0.2-3.mga8
php-event-debugsource-3.0.2-3.mga8
php-event-debuginfo-3.0.2-3.mga8
php-expect-debugsource-0.4.0-3.mga8
php-expect-debuginfo-0.4.0-3.mga8
php-expect-0.4.0-3.mga8
php-gender-debuginfo-1.1.0-14.mga8
php-gender-1.1.0-14.mga8
php-gender-debugsource-1.1.0-14.mga8
php-gmagick-2.0.6-0.RC1.2.mga8
php-gmagick-debugsource-2.0.6-0.RC1.2.mga8
php-gmagick-debuginfo-2.0.6-0.RC1.2.mga8
php-gnupg-debuginfo-1.5.0-2.mga8
php-gnupg-1.5.0-2.mga8
php-gnupg-debugsource-1.5.0-2.mga8
php-igbinary-debugsource-3.2.6-2.mga8
php-igbinary-3.2.6-2.mga8
php-igbinary-debuginfo-3.2.6-2.mga8
php-inotify-debugsource-3.0.0-2.mga8
php-inotify-3.0.0-2.mga8
php-inotify-debuginfo-3.0.0-2.mga8
php-jsmin-debugsource-3.0.0-12.mga8
php-jsmin-3.0.0-12.mga8
php-jsmin-debuginfo-3.0.0-12.mga8
php-libvirt-0.5.5-6.mga8
php-libvirt-debuginfo-0.5.5-6.mga8
php-libvirt-debugsource-0.5.5-6.mga8
php-mailparse-debugsource-3.1.2-2.mga8
php-mailparse-debuginfo-3.1.2-2.mga8
php-mailparse-3.1.2-2.mga8
php-mcrypt-1.0.4-2.mga8
php-mcrypt-debugsource-1.0.4-2.mga8
php-mcrypt-debuginfo-1.0.4-2.mga8
php-mongodb-1.11.1-2.mga8
php-mongodb-debuginfo-1.11.1-2.mga8
php-mongodb-debugsource-1.11.1-2.mga8
php-msgpack-2.1.2-2.mga8
php-msgpack-debugsource-2.1.2-2.mga8
php-msgpack-debuginfo-2.1.2-2.mga8
php-pear-1.10.13-2.mga8
php-radius-1.4.0b1-14.mga8
php-radius-debugsource-1.4.0b1-14.mga8
php-radius-debuginfo-1.4.0b1-14.mga8
php-raphf-debugsource-2.0.1-2.mga8
php-raphf-debuginfo-2.0.1-2.mga8
php-raphf-2.0.1-2.mga8
php-redis-5.3.4-2.mga8
php-redis-debugsource-5.3.4-2.mga8
php-redis-debuginfo-5.3.4-2.mga8
php-rrd-debugsource-2.0.3-2.mga8
php-rrd-2.0.3-2.mga8
php-rrd-debuginfo-2.0.3-2.mga8
php-ssh2-1.2-2.mga8
php-ssh2-debugsource-1.2-2.mga8
php-ssh2-debuginfo-1.2-2.mga8
php-svn-2.0.3-6.mga8
php-svn-debuginfo-2.0.3-6.mga8
php-svn-debugsource-2.0.3-6.mga8
php-translit-debuginfo-0.7.1-3.mga8
php-translit-0.7.1-3.mga8
php-translit-debugsource-0.7.1-3.mga8
php-xattr-debuginfo-1.4.0-4.mga8
php-xattr-debugsource-1.4.0-4.mga8
php-xattr-1.4.0-4.mga8
php-uuid-1.2.0-3.mga8
php-uuid-debugsource-1.2.0-3.mga8
php-uuid-debuginfo-1.2.0-3.mga8
php-xdebug-3.1.1-2.mga8
php-xdebug-debuginfo-3.1.1-2.mga8
php-xdebug-debugsource-3.1.1-2.mga8
php-yaml-debugsource-2.2.2-1.mga8
php-yaml-debuginfo-2.2.2-1.mga8
php-yaml-2.2.2-1.mga8
php-zstd-0.11.0-2.mga8
php-zstd-debuginfo-0.11.0-2.mga8
php-zstd-debugsource-0.11.0-2.mga8
php-memcached-3.1.5-7.mga8
php-memcached-debugsource-3.1.5-7.mga8
php-memcached-debuginfo-3.1.5-7.mga8


SRPM:
php-8.1.0-1.mga8.src.rpm
php-amqp-1.10.3-0.git20201230.2.mga8.src.rpm
php-apcu-5.1.21-4.mga8.src.rpm
php-imagick-3.6.0-0.3.mga8.src.rpm
php-ast-1.0.14-2.mga8.src.rpm
php-bitset-3.0.1-11.mga8.src.rpm
php-dbase-7.0.1-6.mga8.src.rpm
php-dio-0.2.0-4.mga8.src.rpm
php-event-3.0.2-3.mga8.src.rpm
php-expect-0.4.0-3.mga8.src.rpm
php-gender-1.1.0-14.mga8.src.rpm
php-gmagick-2.0.6-0.RC1.2.mga8.src.rpm
php-gnupg-1.5.0-2.mga8.src.rpm
php-igbinary-3.2.6-2.mga8.src.rpm
php-inotify-3.0.0-2.mga8.src.rpm
php-jsmin-3.0.0-12.mga8.src.rpm
php-libvirt-0.5.5-6.mga8.src.rpm
php-mailparse-3.1.2-2.mga8.src.rpm
php-mcrypt-1.0.4-2.mga8.src.rpm
php-mongodb-1.11.1-2.mga8.src.rpm
php-msgpack-2.1.2-2.mga8.src.rpm
php-pear-1.10.13-2.mga8.src.rpm
php-radius-1.4.0b1-14.mga8.src.rpm
php-raphf-2.0.1-2.mga8.src.rpm
php-redis-5.3.4-2.mga8.src.rpm
php-rrd-2.0.3-2.mga8.src.rpm
php-ssh2-1.2-2.mga8.src.rpm
php-svn-2.0.3-6.mga8.src.rpm
php-translit-0.7.1-3.mga8.src.rpm
php-xattr-1.4.0-4.mga8.src.rpm
php-uuid-1.2.0-3.mga8.src.rpm
php-xdebug-3.1.1-2.mga8.src.rpm
php-yaml-2.2.2-1.mga8.src.rpm
php-zstd-0.11.0-2.mga8.src.rpm
php-memcached-3.1.5-7.mga8.src.rpm

Assignee: mageia => qa-bugs

Comment 2 Len Lawrence 2021-11-28 21:44:24 CET
mga8, x64

Most of the stack needed to be installed before the update.  Excluded debuginfo and debugsource packages.  Enabled backports testing and ran `urpmi.update -a`.

Used MageiaUpdate to install the updates.  That ran smoothly.
Restarted httpd and checked localhost in a broswer -> "It Works!".
Coming back to this later.

CC: (none) => tarazed25

Comment 3 Len Lawrence 2021-11-28 21:56:06 CET
Checked the 8.1.0 packages in the list against the rpms installed:
$ grep 8.1.0 php-stack | grep php | wc -l
64
$ rpm -qa | grep php | grep 8.1.0 | wc -l
63

Need to find if something went missing.
Comment 4 Marc Krämer 2021-11-29 11:33:17 CET
I assume that is php-ds - I'm not sure if this one is already deprecated. It does not have a release since 2019. So assume this to be dead...
Comment 5 Len Lawrence 2021-11-29 12:40:55 CET
True, php-ds does not appear in the updates list or the list of installed rpms.  `rpm -qa` may be too crude a method for these sorts of comparisons but it might have something to do with nginx having been installed.

$ rpm -qa | grep php-fpm
php-fpm-nginx-8.1.0-1.mga8
php-fpm-8.1.0-1.mga8

$ grep fpm php-stack
php-fpm-8.1.0-1.mga8
php-fpm-nginx-8.1.0-1.mga8
php-fpm-apache-8.1.0-1.mga8

apache cannot be forced:
$ sudo urpmi php-fpm-apache
The following package has to be removed for others to be upgraded:
apache-mod_php-8.1.0-1.mga8.x86_64
 (due to conflicts with php-fpm-apache) (y/N)
Comment 6 Marc Krämer 2021-11-29 14:05:53 CET
that is correct! Technically you can have php-fpm in parallel with mod_php. But we only support one of them with configs.
Comment 7 Len Lawrence 2021-11-29 17:17:36 CET
Testing php-cli is about all I can do here.  QA really does need a proper test suite for this that can be invoked by newbies.  To discuss at the QA meeting maybe.

Starting a development server raised a stream of warnings not seen before.
$ php -S localhost:8000 -t php
[Mon Nov 29 12:10:58 2021] PHP Warning:  Missing arginfo for radius_auth_open() in Unknown on line 0
[...]
[Mon Nov 29 12:10:58 2021] PHP 8.1.0 Development Server (http://localhost:8000) s
Started

Executed a few basic scripts in a browser at http://localhost:8000/ such as
blue.php to display a blue square in PNG format.  They worked fine.

$ php -r 'phpinfo();'
This returned a huge list of information relating to the php installation and credits for its contributors.

This only scratches the surface but everything tried before still works the same apart from the warning messages from the development server.

Leaving this for others to test in depth.
Comment 8 Marc Krämer 2021-11-29 19:55:01 CET
@Len: Thanks for your feedback and your tests. 
For your question: We don't want to test every function, which is impossible, or have a "full blown test". The basic test are run before release of the software, we can still run some more compile tests. But the general test of installation and it "works" are sufficient.
I'm pretty sure, we'll have a .1 release which fixes some regressions and bugs. But that is not what we are testing for. This is just an "integration test".
Comment 9 Len Lawrence 2021-11-29 20:45:50 CET
Thanks Marc.  Passing this on then.

Whiteboard: (none) => MGA8TOO MGA8-64-OK

Comment 10 Thomas Andrews 2021-12-01 00:51:08 CET
Validating.

Keywords: (none) => validated_backport
CC: (none) => andrewsfarm

Comment 11 Thomas Backlund 2021-12-03 20:12:53 CET
moved

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


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