[Kolab-devel] Kolab Development packages now requiring a package for composer
Mateusz Kijowski
mateusz.kijowski at gmail.com
Sun May 10 04:03:33 CEST 2015
2015-05-07 15:11 GMT+02:00 Timotheus Pokorra <timotheus at kolab.org>:
> Hello,
>
> Hi!
[cut]
> The Debian proposal package requires jsonlint which is not even
> available in Jessie.
> The required package php-symfony-class-loader is available in Jessie,
> but not in Wheezy.
> see
> https://anonscm.debian.org/cgit/pkg-php/composer.git/tree/debian/control
>
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)
> One issue: I need to rename the composer file to composer.sh,
> otherwise I get during the build this error:
> cannot create directory 'debian/composer': Not a directory
>
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)
[cut]
> The other issue: if the package builds, and I install it,
> composer.phar has a wrong checksum, and will not run.
> I have no idea how the file gets corrupted, but indeed the checksums
> are different, even the size is off by one byte.
> When I build the composer package locally, then the composer.phar is
> packaged correctly.
>
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:
$ md5sum composer.phar
261fd5bf293a2e1ff1d7ba9db9dd388a composer.phar
$ head -c 1029319 composer.phar > composer.phar.fixed
$ md5sum composer.phar.*
4678f9f648f2fb2348097ebf4bbde229 composer.phar.fixed
4678f9f648f2fb2348097ebf4bbde229 composer.phar.orig
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
https://obs.kolabsys.com/package/show/home:matik:branches:home:timotheus:branches:Kolab:Development/composer
, after this the installed composer seems to run OK.
Hope this will be of some help.
Regards,
Mateusz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20150510/0f2a6d38/attachment.html>
More information about the devel
mailing list