[pkg-php-pear] composer and debian

andrea rota a at xelera.eu
Sat Jun 22 16:35:22 UTC 2013


hi Mathieu,

On Mon, Jun 17, 2013 at 09:56:37PM +0200, Mathieu Parent wrote:
[...]
> > - add a dh_phpcomposer translating included infos to substvars
> > (converting composer dependencies to Debian ones)
> 
> Done in incoming pkg-php-tools 1.7
[...]

thanks for your work on dh_phpcomposer. i'm trying to package composer,
but i'm not sure how to handle bootstrapping this: i assume a proper way
to do this without building or just downloading+packaging a
composer.phar blob would be to follow the 'Installation from source'
method from composer's README
(https://github.com/composer/composer/#installation-from-source),
however most of what this basically seems to be doing is downloading
composer's own dependencies into a vendor/ folder, which contains the
dependencies (+ their own dependencies etc.), which i guess should
normally be installed via separate packages in /usr/share/php/<library>.

once composer's install task finishes, running bin/composer in the build
directory sources its own classes from src/ and anything else from
vendor/ relative to the build dir (at least, that's my understanding).

so i'm not sure how to best 'translate' all this into the actual
packaging: i imagine src/, bin/ and doc/ from upstream can be easily
dealt with through dh_install, but i am unsure about the vendor/ folder
that gets created by ``php composer.phar install``: should i just *not*
invoke this in debian/rules (which requires a 'bootstrap' composer.phar
to be downloaded to a tmp dir or to be included as patch into the source
package) and package all the dependencies separately if not already in
Debian, and let dh_phpcomposer list them as dependencies in composer's
own debian/control?

thanks for any advice on this,
best

-- 
andrea rota

Xelera - IT infrastructures
http://xelera.eu/contact-us/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1530 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20130622/5c7538b6/attachment.sig>


More information about the pkg-php-pear mailing list