[pkg-php-pear] Bug#818644: composer: Add xz-utils as test dependency

Steve Langasek steve.langasek at canonical.com
Sat Mar 19 03:27:12 UTC 2016


Package: composer
Version: 1.0.0~beta1-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu xenial ubuntu-patch

Hi David,

In Ubuntu, we've found that composer has an undeclared test dependency on
xz-utils.  While the package's tests pass for us at build time, and on three
of five architectures where we run autopkgtests, on two architectures it
seems that xz-utils happens to not be installed in the test environment,
causing a test failure:

  Time: 15.32 seconds, Memory: 20.00Mb

  There was 1 failure:

  1) Composer\Test\Downloader\XzDownloaderTest::testErrorMessages
  Failed asserting that 'Failed to execute tar -xJf '/tmp/composer-test-736556ecbc93ac9f6/XzDownloaderTest.php' -C '/tmp/composer-test-623556ecbc93ac3f5/composer/a72d1367'

  tar (child): xz: Cannot exec: No such file or directory
  tar (child): Error is not recoverable: exiting now
  tar: Child returned status 2
  tar: Error is not recoverable: exiting now
  ' contains "File format not recognized".

  /data/adttmp/adt-virt-lxc.shared.2c5mooi4/downtmp/build.Acc/composer-1.0.0~beta1/tests/Composer/Test/Downloader/XzDownloaderTest.php:75


See, e.g.

  https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial/xenial/armhf/c/composer/20160319_024249@/log.gz

Of course, xz-utils is Build-Essential, so many environments will already
have xz-utils installed.  But it's optional, so for complete correctness
this should be declared as a dependency.

The attached trivial patch addresses this.

Thanks for considering,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: composer_1.0.0~beta1-1ubuntu1.debdiff
Type: text/x-diff
Size: 479 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20160318/a2cbeeb6/attachment.diff>


More information about the pkg-php-pear mailing list