<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 15 May 2021 at 15:54, Bryce Harrington <<a href="mailto:bryce.harrington@canonical.com" target="_blank">bryce.harrington@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi mwhudson,<br>
<br>
The other day you mentioned you'd be on +1 duty next week and expressed<br>
interest in how the php transition is going.<br>
<br>
Here's a wiki page with the current state of things:<br>
<br>
    <a href="https://wiki.ubuntu.com/ServerTeam/Transition/Php8.0" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/ServerTeam/Transition/Php8.0</a><br>
<br>
I've put in rebuilds for most of the stack by now, and a healthy chunk<br>
has at least built and entered -proposed, and some has fully migrated.<br>
A bunch of stuff is blocked by php-apcu and if that can migrate, a lot<br>
more of the stack should migrate too.  The task here is getting symfony<br>
and php-doctrine-cache to migrate, but they have some non-obvious test<br>
failures that need investigation.<br></blockquote><div><br></div><div>So what seems to be going on here is that php-apcu-bc is not going to be updated for PHP 8.0 (<a href="https://github.com/krakjoe/apcu-bc/issues/34" target="_blank">https://github.com/krakjoe/apcu-bc/issues/34</a>) and so should be removed from the archive (the package currently in impish-proposed has a patch to only build for php 7 and so is almost empty).</div><div><br></div><div>Its only reverse-build-depends are ... symfony and php-doctrine-cache (and it has no reverse-depends at all, only a reverse recommends from php-apcu which presumably should also be removed).</div><div><br>Dropping the build-dependency from symfony leaves this failure:</div><div><br></div><div>Running src/Symfony/Component/HttpFoundation tests<br>PHPUnit 9.5.2 by Sebastian Bergmann and contributors.<br><br>Runtime:       PHP 8.0.5<br>Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist<br>Warning:       Your XML configuration validates against a deprecated schema.<br>Suggestion:    Migrate your XML configuration using "--migrate-configuration"!<br><br>Testing /<<PKGBUILDDIR>>/src/Symfony/Component/HttpFoundation<br>.............................................................   61 / 1233 (  4%)<br>.............................................................  122 / 1233 (  9%)<br>.............................................................  183 / 1233 ( 14%)<br>.............................................................  244 / 1233 ( 19%)<br>..........................................S..................  305 / 1233 ( 24%)<br>.............................................................  366 / 1233 ( 29%)<br>.............................................................  427 / 1233 ( 34%)<br>.............................................................  488 / 1233 ( 39%)<br>.............................................................  549 / 1233 ( 44%)<br>.............................................................  610 / 1233 ( 49%)<br>.............................................................  671 / 1233 ( 54%)<br>.............................................................  732 / 1233 ( 59%)<br>.............................................................  793 / 1233 ( 64%)<br>.............................................................  854 / 1233 ( 69%)<br>.............................................................  915 / 1233 ( 74%)<br>......................................<br>Legacy deprecation notices (4)<br>KO src/Symfony/Component/HttpFoundation<br>PHP Fatal error:  Cannot use int as default value for parameter $with_cas of type bool in /usr/share/php/PHPUnit/Framework/MockObject/MockClass.php(51) : eval()'d code on line 141<br></div><div><br></div><div>php-doctrine-cache still ftbfs without the build-dep, like this:</div><div><br></div>There were 2 failures:<br><br>1) Doctrine\Tests\Common\Cache\MemcacheCacheTest::testSetContainsFetchDelete with data set "null" (null)<br>Scalar and array data retrieved from the cache must be the same as the original, e.g. same type<br>Failed asserting that false is identical to null.<br><br>/<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheTest.php:35<br><br>2) Doctrine\Tests\Common\Cache\MemcacheCacheTest::testUpdateExistingEntry with data set "null" (null)<br>Scalar and array data retrieved from the cache must be the same as the original, e.g. same type<br>Failed asserting that false is identical to null.<br><br>/<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheTest.php:59<br><div><br></div><div>but it also seems the package is deprecated now? </div><div><br></div><div>Cheers,</div><div>mwh</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
For items in that list that are FTBFS I've done some preliminary<br>
investigation and noted possible solutions.  Some of these will be<br>
pretty easy to fix.<br>
<br>
The stuff under To Review probably just need nochange rebuilds but I<br>
haven't had a chance yet to look through them.<br>
<br>
I'll be out first half of Monday but will continue on this transition<br>
through the rest of the week.<br>
<br>
Bryce<br>
<br>
On Wed, May 12, 2021 at 09:12:03AM -0700, Bryce Harrington wrote:<br>
> Hi devs,<br>
> <br>
> For impish the server team will be transitioning PHP to 8.0 over the<br>
> coming weeks. (LP: #1927264) [0]<br>
> <br>
> Since version 7.0, upstream PHP has adopted a regular release cadence[1],<br>
> with one release per year. Each release is supported for 2 years, plus a<br>
> third year of security critical fixes. PHP 8.0 was available last cycle<br>
> but since changes from 7.4 to 8.0 were significant[2], we opted to postpone<br>
> it to the 21.10 cycle and focused instead on resolving some phpunit<br>
> 8.5->9.5 transition troubles. Landing PHP 8.0 this cycle will enable it<br>
> to receive testing in a release prior to 22.04 LTS.<br>
> <br>
> php8.0 has now been sync'd into impish from Debian experimental and set<br>
> as the default PHP.  This breaks the PHP stack[3] and starts the actual<br>
> transition.<br>
> <br>
> Most or all of the PHP stack will need rebuilt at this point. This is<br>
> phased due to package dependencies - for the php7.4 transition we<br>
> started with php-propro, php-apcu, and php-msgpack; followed by<br>
> php-apcu-bc, php-imagick, and php-igbinary; and then the rest of the<br>
> stack. I anticipate php8.0's transition will proceed similarly.<br>
> <br>
> Typically during PHP transitions, packages will fail to build or fail<br>
> autopkgtests. Deprecated functionality[4] has been a common case and<br>
> likely will be so for php8.0 as well[5]. There may also be<br>
> phpunit-related issues in packages that didn't get re-built or re-tested<br>
> since phpunit 9.5 transitioned.<br>
> <br>
> Thanks,<br>
> Bryce<br>
> <br>
> 0: <a href="https://wiki.ubuntu.com/ServerTeam/Transition/Php8.0" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/ServerTeam/Transition/Php8.0</a><br>
> 1: <a href="https://www.php.net/supported-versions.php" rel="noreferrer" target="_blank">https://www.php.net/supported-versions.php</a><br>
> 2: <a href="https://stitcher.io/blog/new-in-php-8" rel="noreferrer" target="_blank">https://stitcher.io/blog/new-in-php-8</a><br>
> 3: <a href="https://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html#php-defaults" rel="noreferrer" target="_blank">https://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html#php-defaults</a><br>
> 4: <a href="https://wiki.php.net/rfc/deprecations_php_7_4" rel="noreferrer" target="_blank">https://wiki.php.net/rfc/deprecations_php_7_4</a><br>
> 5: <a href="https://stitcher.io/blog/new-in-php-8" rel="noreferrer" target="_blank">https://stitcher.io/blog/new-in-php-8</a><br>
> <br>
> -- <br>
> ubuntu-devel mailing list<br>
> <a href="mailto:ubuntu-devel@lists.ubuntu.com" target="_blank">ubuntu-devel@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel</a><br>
</blockquote></div></div>