[pkg-php-pear] Bug#904773: phpunit: Missing dependency on PHP 7.1 or 7.2

David Prévot taffit at debian.org
Fri Aug 24 03:42:56 BST 2018


Thank you for your interest in the packaged PHPUnit version.

On Fri, Jul 27, 2018 at 06:36:35PM +0200, Pierre Thierry wrote:
> Package: phpunit
> Version: 7.2.7-1
> Severity: important
> The package could be installed but when running it halts with the following
> error:
> This version of PHPUnit is supported on PHP 7.1 and PHP 7.2.
> You are using PHP 7.0.22-3 (/usr/bin/php7.0).

The error message seems explicit enough to point the user to a relevant

From the title of this bug report:

> phpunit: Missing dependency on PHP 7.1 or 7.2

phpunit already depends on php-cli, that already depends on php7.2-cli
in buster.

> -- System Information:
> Debian Release: buster/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
> Versions of packages phpunit depends on:
> ii  php-cli                         1:7.0+52

Seems like you chose to stick with an old version released over a year
ago. Anyway, even if phpunit depended on php7.2-cli or
php-cli (>= 1:7.2), it wouldn’t prevent you to install the php7.0-cli
package (still available in testing/unstable) nor, as a system
administrator, to set up /usr/bin/php7.0 as the /usr/bin/php

There is little that can be enforced on the package side IMHO. It’s
working as expected when using the default value, and less so if the
system administrator chose to set up their system differently (yet
providing a meaningful error message).

FYI, even if you stick to php7.0 as default php interpreter, you can
still run phpunit via “php7.2 /usr/bin/phpunit” (assuming the relevant
php7.2 dependencies are installed.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20180823/31841126/attachment.sig>

More information about the pkg-php-pear mailing list