[pkg-php-pear] Bug#1039838: php-symfony-security-acl: FTBFS with phpunit 10: PHP Fatal error: Trait "PHPUnit\Framework\TestListenerDefaultImplementation" not found in /usr/share/php/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV7.php on line 26

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:26:13 BST 2023


Source: php-symfony-security-acl
Version: 3.3.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit

Hi,

We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-symfony-security-acl was found to FTBFS.

To reproduce this locally, you need to install the phpunit 10 package (and any
other dependency, which should also be available) from experimental on an
unstable system or build chroot.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpabtpl composer.json > debian/autoload.php.tpl
> phpab \
> 	--output autoload.php \
> 	--template debian/autoload.php.tpl \
> 	--blacklist '*\\tests\\*' \
> 	.
> phpab %development% - Copyright (C) 2009 - 2023 by Arne Blankerts and Contributors
> 
> Scanning directory .
> 
> Autoload file autoload.php generated.
> 
> mkdir --parents Symfony/Component/Security vendor
> phpabtpl \
> 	--require doctrine/common \
> 	--require doctrine/dbal \
> 	--require symfony/cache \
> 	--require symfony/phpunit-bridge \
> 	--require symfony/security-acl \
> 	> debian/autoload.tests.php.tpl
> Proceeding without a composer.json file.phpab \
> 	--output vendor/autoload.php \
> 	--template debian/autoload.tests.php.tpl \
> 	Tests
> phpab %development% - Copyright (C) 2009 - 2023 by Arne Blankerts and Contributors
> 
> Scanning directory Tests
> 
> Autoload file vendor/autoload.php generated.
> 
> ln -s ../../.. Symfony/Component/Security/Acl
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> SYMFONY_DEPRECATIONS_HELPER=weak phpunit
> PHP Fatal error:  Trait "PHPUnit\Framework\TestListenerDefaultImplementation" not found in /usr/share/php/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV7.php on line 26
> make[1]: *** [debian/rules:27: override_dh_auto_test] Error 255


The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/php-symfony-security-acl/

A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html

-- 
Athos Ribeiro



More information about the pkg-php-pear mailing list