[pkg-php-pear] Bug#978442: Composer: Please, handle x versions as * versions

David Prévot taffit at debian.org
Sun Dec 27 14:57:01 GMT 2020


Package: pkg-php-tools
Version: 1.40
Severity: wishlist

Hi,

I just noticed that dh_phpcomposer choke on versions like “1.4.x” that
seem to be equivalent to “1.4.*”, so it would be nice if it handle both
of those versions the same way.

Regards

David

P.-S.: The output I got while trying to handle phing’s move to its
composer source.

taffit at persil:~/Debian/phing$ dh_phpcomposer 
InvalidArgumentException: Unable to parse version '1.4.x' with dependency pear/archive_tar (1.4.x) in /usr/share/php/pkgtools/phpcomposer/source.php:193
Stack trace:
#0 /usr/share/php/pkgtools/phpcomposer/command.php(73): Pkgtools\Phpcomposer\Source->getDependencies()
#1 [internal function]: Pkgtools\Phpcomposer\Command->runSubstvars()
#2 /usr/share/php/pkgtools/base/command.php(180): call_user_func_array()
#3 /usr/share/php/pkgtools/base/command.php(168): Pkgtools\Base\Command->parseArgs()
#4 /usr/bin/pkgtools(32): Pkgtools\Base\Command->parseArgs()
#5 {main}

Next Exception: Unable to parse version '1.4.x' with dependency pear/archive_tar (1.4.x) with dependency pear/archive_tar (1.4.x) in /usr/share/php/pkgtools/phpcomposer/source.php:259
Stack trace:
#0 /usr/share/php/pkgtools/phpcomposer/command.php(73): Pkgtools\Phpcomposer\Source->getDependencies()
#1 [internal function]: Pkgtools\Phpcomposer\Command->runSubstvars()
#2 /usr/share/php/pkgtools/base/command.php(180): call_user_func_array()
#3 /usr/share/php/pkgtools/base/command.php(168): Pkgtools\Base\Command->parseArgs()
#4 /usr/bin/pkgtools(32): Pkgtools\Base\Command->parseArgs()
#5 {main}
dh_phpcomposer: error: /usr/bin/pkgtools -v --sourcedirectory . phpcomposer substvars returned exit code 1

-------------- 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/20201227/de281aa4/attachment.sig>


More information about the pkg-php-pear mailing list