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

David Prévot taffit at debian.org
Fri Nov 7 17:22:21 UTC 2014


Package: pkg-php-tools
Version: 1.25
Severity: normal

Hi,

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}

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,
it would also be nice if such an exception triggered an FTBFS.

Regards

David

 Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (110, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pkg-php-tools depends on:
ii  debhelper  9.20141022
ii  php-pear   5.6.2+dfsg-1
ii  php5-cli   5.6.2+dfsg-1
ii  php5-json  1.3.6-1

pkg-php-tools recommends no packages.

Versions of packages pkg-php-tools suggests:
pn  dh-make  <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20141107/870aa03c/attachment-0001.sig>


More information about the pkg-php-pear mailing list