https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-text/XML-Schema-learner-1.0.1 fails tests. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses a clang/LLVM toolchain. If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Created attachment 651786 [details] build.log build log and emerge --info
The tests are failing for XML-Schema-learner here because phpunit itself is crashing.
*** Bug 737872 has been marked as a duplicate of this bug. ***
*** Bug 737852 has been marked as a duplicate of this bug. ***
*** Bug 737868 has been marked as a duplicate of this bug. ***
*** Bug 737874 has been marked as a duplicate of this bug. ***
*** Bug 737640 has been marked as a duplicate of this bug. ***
@ Michael, are you sure about the reason? Looks like all of these packages just aren't compatible with >=PHPUnit-6 (Note that ago is testing on ~arch!). For example, I fixed dev-php/PEAR-Text_Wiki_Mediawiki by limiting to <phpunit-6. Same for dev-php/awl-0.61...
dev-php/php-redmine-api-1.5.16 also passes with <phpunit-6.
(In reply to Thomas Deutschmann from comment #8) > @ Michael, are you sure about the reason? Looks like all of these packages > just aren't compatible with >=PHPUnit-6 (Note that ago is testing on ~arch!). > > For example, I fixed dev-php/PEAR-Text_Wiki_Mediawiki by limiting to > <phpunit-6. Same for dev-php/awl-0.61... > > ... > > dev-php/php-redmine-api-1.5.16 also passes with <phpunit-6. > I'm sure that they're all failing due to the same error (from the $summary), but I never diagnosed the cause. If restricting them to <phpunit-6 is the fix, then that's nice and easy. Does ~arch phpunit work for other packages? (Why can't it find Yaml's autoload.php?)
That's likely a missing dep. Like ago said in bug 737872 comment #3, dev-php/symfony-yaml wasn't installed on his machine. That's because phpunit-8 ebuild doesn't depend on it but is still installing autoload.php (https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-php/phpunit/phpunit-8.5.5.ebuild?id=326ac01a8f639567e4be04ac852a92dccf545f89#n58) which is referencing that file (https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-php/phpunit/files/autoload-8.5.0.php?id=326ac01a8f639567e4be04ac852a92dccf545f89#n246).
(In reply to Thomas Deutschmann from comment #11) > That's likely a missing dep. Like ago said in bug 737872 comment #3, > dev-php/symfony-yaml wasn't installed on his machine. That's because > phpunit-8 ebuild doesn't depend on it but is still installing autoload.php > (https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-php/phpunit/phpunit-8.5. > 5.ebuild?id=326ac01a8f639567e4be04ac852a92dccf545f89#n58) which is > referencing that file > (https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-php/phpunit/files/ > autoload-8.5.0.php?id=326ac01a8f639567e4be04ac852a92dccf545f89#n246). That's my conclusion as well. The upstream composer.json doesn't mention symfony-yaml, https://github.com/sebastianbergmann/phpunit/blob/8.5/composer.json so maybe the error is that line in autoload.php? In any case, restricting these packages to phpunit-5.x is just avoiding a bug in newer phpunit, not necessarily addressing a fundamental incompatibility.
The complete file is a mess, > PHP Fatal error: Uncaught Error: Class 'PHPUnit\Util\VersionComparisonOperator' not found in /usr/share/php/PHPUnit/Util/Configuration.php:1054 Wondering how that file was generated. Maybe stuff was added after 8.5.0 and is now missing...
Hey, I have tested to fix this issue, '<dev-php/phpunit-6' I got: PHP Fatal error: Uncaught RuntimeException: File not found: '/usr/share/php/phpspec/Prophecy/autoload.php' in /usr/share/php/Fedora/Autoloader/functions.php:58 Seems to me phpspec-prophecy need and autoloader : DEPEND="test? ( ${RDEPEND} dev-php/phpspec-prophecy <dev-php/phpunit-6 ) phpunit tests/suite.php PHP Fatal error: Uncaught RuntimeException: File not found: '/usr/share/php/phpspec/Prophecy/autoload.php' in /usr/share/php/Fedora/Autoloade
*** Bug 742590 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=206cc16d03b8895821eb7b6748ecc2b116341df0 commit 206cc16d03b8895821eb7b6748ecc2b116341df0 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-11-30 00:41:20 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-11-30 00:41:20 +0000 dev-php/phpunit: drop broken version Closes: https://bugs.gentoo.org/734882 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-php/phpunit/Manifest | 1 - dev-php/phpunit/files/autoload-8.5.0.php | 254 ------------------------------- dev-php/phpunit/phpunit-8.5.5.ebuild | 69 --------- 3 files changed, 324 deletions(-)
This should be resolved via https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=916f8fe7fa8c1a7561bf75bb3cc0f925a97c34e4 which is now generating autoload.php using phpab.