[pkg-php-pear] composer and debian

Mathieu Parent math.parent at gmail.com
Mon Jun 24 10:41:32 UTC 2013


2013/6/22 andrea rota <a at xelera.eu>:
> 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?

Yes, just start with "*not*" running 'php composer.phar install' , and
see how it goes. Are all the deps already packaged?

Also, can you prepare the package on a publicly available repo (like
git.debian.org) to ease review?

Regards

--
Mathieu



More information about the pkg-php-pear mailing list