[pkg-php-pear] Bug#751422: pkg-php-tools: Please, allow phpcomposer to handle uppercase ALPHA, RC and other WIP releases

Daniel Beyer dabe at deb.ymc.ch
Thu Jun 12 18:26:29 UTC 2014

Package: pkg-php-tools
Version: 1.11~bpo70~dabe1
Severity: normal
Tags: patch

This is kind of a follow-up of bug #729452 that added initial support
for ALPHA and other WIP releases.

As of pkg-php-tools 1.11 dh_phpcomposer is not able to deal with uppercase
ALPHA, RC and other WIP releases. I came across this while trying to use
dh_phpcomposer to generate substvars for symfony/intl (v2.3.16), which has
the following in its composer.json:

"require": {
        "php": ">=5.3.3",
        "symfony/icu": "~1.0-RC"

dh_phpcomposer can not deal with the uppercase 'RC' (but it would support a
lowercase rc). The same is with alpha vs. ALPHA, beta vs. BETA, etc.

The attached patch simply makes the match added in #729452 case insensitive and
lowercases the use of the match in the Debian version later on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkg-php-tools_allow_uppercase_wip_composer_dependecies.patch
Type: text/x-diff
Size: 1061 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20140612/a67bdd7d/attachment.patch>

More information about the pkg-php-pear mailing list