On Tue, Mar 03, 2020 at 12:38:08PM +0100, Christian Ehrhardt wrote: > Class I: > - php-cache-lite - FAIL stderr: PHP Warning: > file_put_contents(/usr/bin/.phpunit.result.cache): failed to open stream > (no idea yet) > - php-db - same I/O error > - php-imagick - same I/O error > - php-text-password - same I/O error > - phpmd - there are two versions, the newer 2.8.1-2 failed on the same I/O > error > => Rbasak offered to take a look at these, he'll reply to this mail later
Debdiff for phpunit attached. Please review!
diff -Nru phpunit-8.5.2/debian/changelog phpunit-8.5.2/debian/changelog --- phpunit-8.5.2/debian/changelog 2020-01-09 12:09:16.000000000 +0000 +++ phpunit-8.5.2/debian/changelog 2020-03-03 12:20:47.000000000 +0000 @@ -1,3 +1,13 @@ +phpunit (8.5.2-1ubuntu1~ppa1) UNRELEASED; urgency=medium + + * d/p/0003-Default-cache-location-to-current-directory.patch: cherry-pick + from Debian VCS 4e3d1bb to change default cache location to the current + directory. This stops phpunit failing by default when it tries to write to + /usr/bin to fix autopkgtests of reverse dependencies. Closes: #951258. + Thanks to Andrius Merkys. + + -- Robie Basak <[email protected]> Tue, 03 Mar 2020 12:20:47 +0000 + phpunit (8.5.2-1) unstable; urgency=medium [ Sebastian Bergmann ] diff -Nru phpunit-8.5.2/debian/control phpunit-8.5.2/debian/control --- phpunit-8.5.2/debian/control 2020-01-09 12:07:53.000000000 +0000 +++ phpunit-8.5.2/debian/control 2020-03-03 12:20:47.000000000 +0000 @@ -1,7 +1,8 @@ Source: phpunit Section: php Priority: optional -Maintainer: Debian PHP PEAR Maintainers <[email protected]> +Maintainer: Ubuntu Developers <[email protected]> +XSBC-Original-Maintainer: Debian PHP PEAR Maintainers <[email protected]> Uploaders: Prach Pongpanich <[email protected]>, David Prévot <[email protected]> Build-Depends: debhelper-compat (= 12), diff -Nru phpunit-8.5.2/debian/patches/0003-Default-cache-location-to-current-directory.patch phpunit-8.5.2/debian/patches/0003-Default-cache-location-to-current-directory.patch --- phpunit-8.5.2/debian/patches/0003-Default-cache-location-to-current-directory.patch 1970-01-01 00:00:00.000000000 +0000 +++ phpunit-8.5.2/debian/patches/0003-Default-cache-location-to-current-directory.patch 2020-03-03 12:20:16.000000000 +0000 @@ -0,0 +1,20 @@ +From: Andrius Merkys <[email protected]> +Date: Sun, 16 Feb 2020 10:37:31 +0200 +Subject: Default cache location to current directory + +Bug-Debian: https://bugs.debian.org/951258 +--- + src/TextUI/TestRunner.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/src/TextUI/TestRunner.php ++++ b/src/TextUI/TestRunner.php +@@ -157,7 +157,7 @@ + if (isset($arguments['configuration']) && $arguments['configuration'] instanceof Configuration) { + $cacheLocation = $arguments['configuration']->getFilename(); + } else { +- $cacheLocation = $_SERVER['PHP_SELF']; ++ $cacheLocation = \getcwd() . \DIRECTORY_SEPARATOR . 'cache'; /* get around \dirname(...) */ + } + + $arguments['cacheResultFile'] = null; diff -Nru phpunit-8.5.2/debian/patches/series phpunit-8.5.2/debian/patches/series --- phpunit-8.5.2/debian/patches/series 2020-01-09 12:07:44.000000000 +0000 +++ phpunit-8.5.2/debian/patches/series 2020-03-03 12:20:07.000000000 +0000 @@ -1,2 +1,3 @@ 0001-Remove-Composer-autoload.patch 0002-phpunit.xsd-is-installed-in-usr-share-php-PHPUnit.patch +0003-Default-cache-location-to-current-directory.patch
signature.asc
Description: PGP signature
-- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
