[pkg-php-pear] Bug#1039832: phpseclib: FTBFS with phpunit 10: PHP Fatal error: Cannot override final method PHPUnit\Framework\Assert::assertIsArray() in /<<PKGBUILDDIR>>/tests/PhpseclibTestCase.php on line 106

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:24:33 BST 2023


Source: phpseclib
Version: 1.0.20-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, phpseclib 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 --basedir phpseclib composer.json > debian/autoload.php.tpl
> phpab \
> 	--output phpseclib/phpseclib.autoloader.php \
> 	--template debian/autoload.php.tpl \
> 	phpseclib
> phpab %development% - Copyright (C) 2009 - 2023 by Arne Blankerts and Contributors
> 
> Scanning directory phpseclib
> 
> Autoload file phpseclib/phpseclib.autoloader.php generated.
> 
> cp phpseclib/bootstrap.php phpseclib/phpseclib.bootstrap.php
> mkdir --parents vendor
> phpabtpl \
> 	--require phpseclib/phpseclib \
> 	> debian/autoload.test.php.tpl
> Proceeding without a composer.json file.phpab \
> 	--output vendor/autoload.php \
> 	--template debian/autoload.test.php.tpl \
> tests
> phpab %development% - Copyright (C) 2009 - 2023 by Arne Blankerts and Contributors
> 
> Scanning directory tests
> 
> Autoload file vendor/autoload.php generated.
> 
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --include-path phpseclib --bootstrap vendor/autoload.php
> PHP Fatal error:  Cannot override final method PHPUnit\Framework\Assert::assertIsArray() in /<<PKGBUILDDIR>>/tests/PhpseclibTestCase.php on line 106
> make[1]: *** [debian/rules:22: 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/phpseclib/

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