[pkg-php-pear] Bug#768481: Bug#768481: Composer: Choke on packages name with a dot

Mathieu Parent math.parent at gmail.com
Fri Nov 7 19:59:58 UTC 2014


2014-11-07 18:22 GMT+01:00 David Prévot <taffit at debian.org>:
> Package: pkg-php-tools
> Version: 1.25
> Severity: normal
>
> Hi,

Hi David,

> While trying to build the latest beta of aws-sdk-for-php package (3.0
> branch), that depends on mtdowling/jmespath.php, an exception happens:
>
> exception 'InvalidArgumentException' with message 'Malformed dependency package: 'jmespath.php'' in /usr/share/php/pkgtools/base/dependency.php:203
> Stack trace:
> #0 /usr/share/php/pkgtools/base/dependency.php(120): Pkgtools\Base\Dependency->__set('package', 'jmespath.php')
> #1 /usr/share/php/pkgtools/phpcomposer/source.php(160): Pkgtools\Base\Dependency->__construct('require', 'mtdowling', 'jmespath.php')
> #2 /usr/share/php/pkgtools/phpcomposer/command.php(73): Pkgtools\Phpcomposer\Source->getDependencies()
> #3 [internal function]: Pkgtools\Phpcomposer\Command->runSubstvars()
> #4 /usr/share/php/pkgtools/base/command.php(181): call_user_func_array(Array, Array)
> #5 /usr/share/php/pkgtools/base/command.php(169): Pkgtools\Base\Command->parseArgs(Array)
> #6 /usr/bin/pkgtools(32): Pkgtools\Base\Command->parseArgs()
> #7 {main}


Can you attach the complete build log?

> As one could guess, misc:Depends= is empty, but the package didn’t fails
> to build (which is worse than one could expect IMHO).
>
> It would be nice if the parser didn’t choke on this latest dependency,

Yes

> it would also be nice if such an exception triggered an FTBFS.

Yes.

Regards

Mathieu



More information about the pkg-php-pear mailing list