[pkg-php-pear] Bug#765899: Bug#765899: Composer: Please, support OR-ed versions

David Prévot david at tilapin.org
Wed Nov 20 02:42:50 GMT 2019


Hi Thorsen,

Le 19/11/2019 à 15:55, Thorsten Glaser a écrit :

> Please fix this issue some time soon. It causes problems with
> each new upgrade of things like Symfony because the other packages
> have debian/patches/ like this one…

I believe the patch is wrong. Why patch at all?

> $ cat debian/patches/pkg-php-tools-deficiency-workaround.diff
> # DP: or’d dependencies are not supported (#765899)
> # DP: choose the branch currently shipped in Debian
> 
> --- a/composer.json
> +++ b/composer.json
> @@ -22,7 +22,7 @@
>      ],
>      "require": {
>          "php": ">=5.3.9",
> -        "symfony/translation": "~2.6 || ~3.0 || ~4.0"
> +        "symfony/translation": "~3.0"

A proper way to actually express the current dependency wound be :

+        "symfony/translation": "<5"

And, eventually, also

+        "symfony/translation": "> 2.6"

Since Stretch shipped with 2.8, the latter is probably overkill. Since I
expect bullseye to ship with 4.4 [1], even the former is probably
overkill for your needs. So just leaving things as they are will do the
right thing here: no versioned dependency at all.

[1] I don’t believe symfony will be upgraded to 5 in bullseye (according
to the current [roadmap], I believe the next 5.4 LTS release will happen
by the end of 2022, and I expect the freeze to happen sooner.

	roadmap: https://symfony.com/releases

Regards

David

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


More information about the pkg-php-pear mailing list