Package: src:php-mock-phpunit
Version: 2.6.0-4
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with phpcomposer
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
phpab   --output debian-autoload.php \
        --template debian/autoload.php.tpl \
        classes/ compatibility/ tests/
phpab %development% - Copyright (C) 2009 - 2024 by Arne Blankerts and 
Contributors

Scanning directory classes/
Scanning directory compatibility/
Scanning directory tests/

Autoload file debian-autoload.php generated.

cp debian-autoload.php debian/autoload.php
# Workaround to ensure the local class takes precedence during tests.
mkdir --parents phpmock/phpunit
ln -s ../../debian-autoload.php phpmock/phpunit/autoload.php
# Build classloader for tests
mkdir --parents vendor
phpab   --output vendor/autoload.php \
        --template debian/autoload.test.php.tpl \
        tests/
phpab %development% - Copyright (C) 2009 - 2024 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 --do-not-cache-result \
        --bootstrap vendor/autoload.php \
        tests
PHP Fatal error:  Uncaught Error: Class "phpmock\AbstractMockTest" not found in 
/<<PKGBUILDDIR>>/tests/PHPMockTest.php:16
Stack trace:
#0 /usr/share/php/PHPUnit/Util/FileLoader.php(66): include_once()
#1 /usr/share/php/PHPUnit/Util/FileLoader.php(49): 
PHPUnit\Util\FileLoader::load()
#2 /usr/share/php/PHPUnit/Framework/TestSuite.php(398): 
PHPUnit\Util\FileLoader::checkAndLoad()
#3 /usr/share/php/PHPUnit/Framework/TestSuite.php(537): 
PHPUnit\Framework\TestSuite->addTestFile()
#4 /usr/share/php/PHPUnit/Runner/BaseTestRunner.php(98): 
PHPUnit\Framework\TestSuite->addTestFiles()
#5 /usr/share/php/PHPUnit/TextUI/Command.php(121): 
PHPUnit\Runner\BaseTestRunner->getTest()
#6 /usr/share/php/PHPUnit/TextUI/Command.php(99): PHPUnit\TextUI\Command->run()
#7 /usr/bin/phpunit(107): PHPUnit\TextUI\Command::main()
#8 {main}

Next PHPUnit\TextUI\RuntimeException: Class "phpmock\AbstractMockTest" not 
found in /usr/share/php/PHPUnit/TextUI/Command.php:101
Stack trace:
#0 /usr/bin/phpunit(107): PHPUnit\TextUI\Command::main()
#1 {main}
  thrown in /usr/share/php/PHPUnit/TextUI/Command.php on line 101
make[1]: *** [debian/rules:23: override_dh_auto_test] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:5: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202407/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to