[pkg-php-pear] Bug#1082457: php-nesbot-carbon: FTBFS with php8.4_8.4.0~beta4-1: .....................................................PHP Fatal error: Declaration of DateTime::createFromTimestamp(int|float $timestamp): PHPUnit\Util\FileLoader must be compatible with Carbon\CarbonInterface::createFromTimestamp($timestamp, $tz = null) in /<<PKGBUILDDIR>>/tests/CarbonPeriod/Fixtures/AbstractCarbon.php on line 0

Athos Ribeiro athoscribeiro at gmail.com
Sat Sep 21 03:16:40 BST 2024


Source: php-nesbot-carbon
Version: 2.69.0-4
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: php8.4

Hi,

During a test rebuild, php-nesbot-carbon was found to fail to build with
php8.4 8.4.0~beta4-1 available in experimental.

There are intentions to transition to php8.4 for trixie, please see #1074180.

To reproduce this locally, you need to install php8.4 and php-defaults from
experimental on an unstable system or build chroot.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpabtpl \
> 	--require-file ../src/Carbon/autoload.php \
> 	--require doctrine/dbal \
> 	> debian/autoload.php.test.tpl
> Proceeding without a composer.json file.phpab \
> 	-o tests/autoload.php \
> 	-t debian/autoload.php.test.tpl \
> 	--blacklist 'carbon\\cli' \
> 	--blacklist 'symfony\\component\\translation\\translatorinterface' \
> 	tests
> phpab %development% - Copyright (C) 2009 - 2024 by Arne Blankerts and Contributors
> 
> Scanning directory tests
> 
> Autoload file tests/autoload.php generated.
> 
> phpunit --bootstrap tests/autoload.php --include-path src
> PHPUnit 9.6.20 by Sebastian Bergmann and contributors.
> 
> Warning:       Your XML configuration validates against a deprecated schema.
> Suggestion:    Migrate your XML configuration using "--migrate-configuration"!
> 
> .............................................................   61 / 5634 (  1%)
> .............................................................  122 / 5634 (  2%)
> .............................................................  183 / 5634 (  3%)
> .............................................................  244 / 5634 (  4%)
> .............................................................  305 / 5634 (  5%)
> .............................................................  366 / 5634 (  6%)
> .............................................................  427 / 5634 (  7%)
> .............................................................  488 / 5634 (  8%)
> .............................................................  549 / 5634 (  9%)
> .............................................................  610 / 5634 ( 10%)
> .............................................................  671 / 5634 ( 11%)
> .............................................................  732 / 5634 ( 12%)
> .............................................................  793 / 5634 ( 14%)
> .............................................................  854 / 5634 ( 15%)
> .............................................................  915 / 5634 ( 16%)
> .............................................................  976 / 5634 ( 17%)
> ............................................................. 1037 / 5634 ( 18%)
> ............................................................. 1098 / 5634 ( 19%)
> ............................................................. 1159 / 5634 ( 20%)
> ............................................................. 1220 / 5634 ( 21%)
> ............................................................. 1281 / 5634 ( 22%)
> ............................................................. 1342 / 5634 ( 23%)
> .................................S........................... 1403 / 5634 ( 24%)
> ............................................................. 1464 / 5634 ( 25%)
> ............................................................. 1525 / 5634 ( 27%)
> ............................................................. 1586 / 5634 ( 28%)
> ............................................................. 1647 / 5634 ( 29%)
> ............................................................. 1708 / 5634 ( 30%)
> ............................................................. 1769 / 5634 ( 31%)
> ............................................................. 1830 / 5634 ( 32%)
> ............................................................. 1891 / 5634 ( 33%)
> ............................................................. 1952 / 5634 ( 34%)
> ...................................................S......... 2013 / 5634 ( 35%)
> ............................................................. 2074 / 5634 ( 36%)
> ............SS..............................F................ 2135 / 5634 ( 37%)
> ............................................................. 2196 / 5634 ( 38%)
> ............................................................. 2257 / 5634 ( 40%)
> ............................................................. 2318 / 5634 ( 41%)
> ............................................................. 2379 / 5634 ( 42%)
> ............................................................. 2440 / 5634 ( 43%)
> ............................................................. 2501 / 5634 ( 44%)
> ............................................................. 2562 / 5634 ( 45%)
> ............................................................. 2623 / 5634 ( 46%)
> ............................................................. 2684 / 5634 ( 47%)
> ............................................................. 2745 / 5634 ( 48%)
> ............................................................. 2806 / 5634 ( 49%)
> ............................................................. 2867 / 5634 ( 50%)
> ............................................................. 2928 / 5634 ( 51%)
> ............................................................. 2989 / 5634 ( 53%)
> ..........................S.................................. 3050 / 5634 ( 54%)
> ............................................................. 3111 / 5634 ( 55%)
> ............................................................. 3172 / 5634 ( 56%)
> ............................................................. 3233 / 5634 ( 57%)
> ............................................................. 3294 / 5634 ( 58%)
> ............................................................. 3355 / 5634 ( 59%)
> ............................................................. 3416 / 5634 ( 60%)
> ............................................................. 3477 / 5634 ( 61%)
> ............................................................. 3538 / 5634 ( 62%)
> ............................................................. 3599 / 5634 ( 63%)
> ...................................S......................... 3660 / 5634 ( 64%)
> ..........................................SS................. 3721 / 5634 ( 66%)
> ............................................................. 3782 / 5634 ( 67%)
> ............................................................. 3843 / 5634 ( 68%)
> ............................................................. 3904 / 5634 ( 69%)
> ............................................................. 3965 / 5634 ( 70%)
> ............................................................. 4026 / 5634 ( 71%)
> ............................................................. 4087 / 5634 ( 72%)
> ............................................................. 4148 / 5634 ( 73%)
> ............................................................. 4209 / 5634 ( 74%)
> ............................................................. 4270 / 5634 ( 75%)
> ............................................................. 4331 / 5634 ( 76%)
> ............................................................. 4392 / 5634 ( 77%)
> ............................................................. 4453 / 5634 ( 79%)
> ............................................................. 4514 / 5634 ( 80%)
> .....................................................PHP Fatal error:  Declaration of DateTime::createFromTimestamp(int|float $timestamp): PHPUnit\Util\FileLoader must be compatible with Carbon\CarbonInterface::createFromTimestamp($timestamp, $tz = null) in /<<PKGBUILDDIR>>/tests/CarbonPeriod/Fixtures/AbstractCarbon.php on line 0
> make[1]: *** [debian/rules:21: override_dh_auto_test] Error 255


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/php8.4-beta/2/php-nesbot-carbon/php-nesbot-carbon_2.69.0-4+rebuild1726680633_amd64-2024-09-18T17:30:35Z.build



More information about the pkg-php-pear mailing list