[pkg-php-pear] Bug#934104: Bug#934104: composer: Don't use debian/copyright for LICENSE when generating autoloader

David Prévot david at tilapin.org
Wed Aug 7 23:26:05 BST 2019

Hi Kunal,

Thank you for your report.

Le 06/08/2019 à 22:33, Kunal Mehta a écrit :

> 0005-Pick-up-copyright-instead-of-LICENSE.patch switches the composer autoload
> generator to use debian/copyright instead of upstream's LICENSE file. This is
> problematic for a few reasons:
> First, vendor/ directories are no longer identical with people who use an
> upstream version of composer or from a different distribution (example:
> https://gerrit.wikimedia.org/r/#/c/mediawiki/vendor/+/526262/1/composer/LICENSE).

Why is that a problem?

> And secondly, minimal installations (e.g. docker containers) of Debian that
> don't keep doc/ around can no longer run composer install.

That is definitely an issue.

> Is there a reason we need the patch?

We provide composer files in /usr/share/php, not in src/, so the LICENSE
file is not available in ../ (i.e., /usr/share/). Furthermore,
duplicating LICENSE information already provided in the package is
usually a bad idea, but as you pointed out, we should not rely on
/usr/share/doc at run time.

I’ve updated the package to provide the upstream LICENSE file from
/usr/share/php/data/Composer, so both issues should be fixed after the
next upload, thanks.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20190807/a6c4326a/attachment.sig>

More information about the pkg-php-pear mailing list