<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-05-07 15:11 GMT+02:00 Timotheus Pokorra <span dir="ltr"><<a href="mailto:timotheus@kolab.org" target="_blank">timotheus@kolab.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br></blockquote><div>Hi!<br><br></div><div>[cut]<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The Debian proposal package requires jsonlint which is not even<br>
available in Jessie.<br>
The required package php-symfony-class-loader is available in Jessie,<br>
but not in Wheezy.<br>
see <a href="https://anonscm.debian.org/cgit/pkg-php/composer.git/tree/debian/control" target="_blank">https://anonscm.debian.org/cgit/pkg-php/composer.git/tree/debian/control</a><br></blockquote><div><br>I tried rebuilding all necessary packages, but gave up when it turned out that symfony had to be rebuilt too and it has lots of missing dependancies in wheezy (even with backports)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">One issue: I need to rename the composer file to composer.sh,<br>
otherwise I get during the build this error:<br>
cannot create directory 'debian/composer': Not a directory<br></blockquote><div><br>This could be solved by installing the file manually in override_dh_install (cp debian/composer.sh debian/composer/usr/bin/composer) and removing it from debian/composer.install (and possibly other files)<br><br></div><div>[cut]<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The other issue: if the package builds, and I install it,<br>
composer.phar has a wrong checksum, and will not run.<br>
I have no idea how the file gets corrupted, but indeed the checksums<br>
are different, even the size is off by one byte.<br>
When I build the composer package locally, then the composer.phar is<br>
packaged correctly.<br></blockquote><div> </div><div>I've built the package on my box with obs tools, and composer.phar was off by one byte. After some investigation it seems that something is adding a newline (0a) character at the end of the packaged composer.phar file:<br><br>$ md5sum composer.phar<br>261fd5bf293a2e1ff1d7ba9db9dd388a  composer.phar<br>$ head -c 1029319 composer.phar > composer.phar.fixed<br>$ md5sum composer.phar.*<br>4678f9f648f2fb2348097ebf4bbde229  composer.phar.fixed<br>4678f9f648f2fb2348097ebf4bbde229  composer.phar.orig<br><br></div><div>It seems that this happens somewhere early in the packaging process, presumably when doing some OBS magic. I inserted the above head hack to debian.rules in my branch <a href="https://obs.kolabsys.com/package/show/home:matik:branches:home:timotheus:branches:Kolab:Development/composer">https://obs.kolabsys.com/package/show/home:matik:branches:home:timotheus:branches:Kolab:Development/composer</a> , after this the installed composer seems to run OK.<br><br></div><div>Hope this will be of some help.<br><br></div><div>Regards,<br><br><br></div><div>Mateusz.</div></div></div></div>