#1129019 php-composer-class-map-generator: 1.7.1-1 FTBFS on Ubuntu resolute-proposed (with PHP 8.5)

#1129019#5
Date:
2026-02-25 20:45:09 UTC
From:
To:
Dear Maintainer,

There is an error trying to build the package with PHP 8.5. Logs can be
seen in:
https://launchpadlibrarian.net/848122790/buildlog_ubuntu-resolute-amd64.php-composer-class-map-generator_1.7.1-1_BUILDING.txt.gz

In the logs:

phpunit
PHPUnit 12.5.8 by Sebastian Bergmann and contributors.

Runtime: PHP 8.5.2
Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist

.........E........ 18 / 18 (100%)

Time: 00:00.133, Memory: 10.00 MB

There was 1 error:

1) Composer\ClassMapGenerator\ClassMapGeneratorTest::testStreamWrapperSupport
RuntimeException: File at "test://BackslashLineEndingString.php" does not exist, check your classmap definitions
The following message may be helpful:
file_exists(): class@anonymous::url_stat is not implemented!

/<<PKGBUILDDIR>>/src/PhpFileParser.php:58
/<<PKGBUILDDIR>>/src/ClassMapGenerator.php:187
/<<PKGBUILDDIR>>/src/ClassMapGenerator.php:89
/<<PKGBUILDDIR>>/tests/ClassMapGeneratorTest.php:230

ERRORS!
Tests: 18, Assertions: 40, Errors: 1, Warnings: 1, Deprecations: 1, PHPUnit Deprecations: 1.
make[1]: *** [debian/rules:23: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2a

Seems the wrapper class in the test is missing url_stat.

#1129019#10
Date:
2026-02-26 15:39:29 UTC
From:
To:
FWIW I have proposed a patch on Ubuntu and upstream:
https://github.com/composer/class-map-generator/pull/31

which fixes this bug

#1129019#13
Date:
2026-03-06 05:21:24 UTC
From:
To:
Hi,

I doubt that the Debian release team considers it to be release critical when
one of our packages fails to build in a downstream distro. Hence adjusting the
severity because the package builds fine in Debian unstable (build log
attached).

Nevertheless thank you for working with us as your upstream and reporting this
bug even with a patch.

cheers, josch

#1129019#20
Date:
2026-03-06 06:30:35 UTC
From:
To:
Hi Ondřej,

Any news on that front? People from Ubuntu already filed bug reports
about PHP 8.5, it would be nice to have a way to reproduce them within
Debian.

Regards,

taffit