Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734882 - dev-php/phpunit: File not found: '/usr/share/php/Symfony/Component/Yaml/autoload.php'
Summary: dev-php/phpunit: File not found: '/usr/share/php/Symfony/Component/Yaml/autol...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 742590 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-07-31 06:12 UTC by Agostino Sarubbo
Modified: 2020-11-30 00:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,8.43 KB, text/plain)
2020-07-31 06:12 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-31 06:12:39 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-31 06:12:44 UTC
Created attachment 651786 [details]
build.log

build log and emerge --info
Comment 2 Michael Orlitzky gentoo-dev 2020-07-31 21:58:30 UTC
The tests are failing for XML-Schema-learner here because phpunit itself is crashing.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-18 16:31:03 UTC
*** Bug 737872 has been marked as a duplicate of this bug. ***
Comment 4 Michael Orlitzky gentoo-dev 2020-08-18 17:43:20 UTC
*** Bug 737852 has been marked as a duplicate of this bug. ***
Comment 5 Michael Orlitzky gentoo-dev 2020-08-18 17:43:53 UTC
*** Bug 737868 has been marked as a duplicate of this bug. ***
Comment 6 Michael Orlitzky gentoo-dev 2020-08-18 17:44:18 UTC
*** Bug 737874 has been marked as a duplicate of this bug. ***
Comment 7 Michael Orlitzky gentoo-dev 2020-08-18 17:51:49 UTC
*** Bug 737640 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-18 18:03:28 UTC
@ 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...
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-18 18:05:18 UTC
dev-php/php-redmine-api-1.5.16 also passes with <phpunit-6.
Comment 10 Michael Orlitzky gentoo-dev 2020-08-18 19:50:30 UTC
(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?)
Comment 11 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-18 21:54:22 UTC
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).
Comment 12 Michael Orlitzky gentoo-dev 2020-08-18 22:10:09 UTC
(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.
Comment 13 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-18 23:04:55 UTC
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...
Comment 14 Guillaume Seren 2020-08-19 20:11:26 UTC
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
Comment 15 Thomas Deutschmann (RETIRED) gentoo-dev 2020-09-15 12:49:18 UTC
*** Bug 742590 has been marked as a duplicate of this bug. ***
Comment 16 Larry the Git Cow gentoo-dev 2020-11-30 00:41:26 UTC
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(-)
Comment 17 Thomas Deutschmann (RETIRED) gentoo-dev 2020-11-30 00:42:34 UTC
This should be resolved via https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=916f8fe7fa8c1a7561bf75bb3cc0f925a97c34e4 which is now generating autoload.php using phpab.