[Kolab-devel] Kolab Development packages now requiring a package for composer

Daniel Hoffend dh at dotlan.net
Tue May 12 17:40:10 CEST 2015


I've the strong feeling that this is not the right approach. My guess is 
that dpkg-source is doing some kind of strange magic to ensure the "php 
textfile" is in the right format or ends with a newline whatever.

Here's a hexdump before and during build:

# before

-rw-r--r-- 1 griffon griffon 1029319 May  7 10:24 composer.phar

$ hexdump composer.phar | tail -n 3
00fb4b0 2ede 808f bce5 30a8 9e1d b3ff 3c76 0285
00fb4c0 0000 4700 4d42 0042
00fb4c7

# during build

-rw-r--r--. 1 root root 1029320 May 12 15:12 composer.phar

$ hexdump debian/composer.phar | tail -n 3
00fb4b0 2ede 808f bce5 30a8 9e1d b3ff 3c76 0285
00fb4c0 0000 4700 4d42 0a42
00fb4c8


So yes, the filesize seems to be 2 byte off, but also the last 2 bytes 
are different 0042 vs 0a42. Something is odd tbh. So removing one byte 
seems to be okay to get the filesize right but still the file has 
changed.

What wonders me is the fact that composer.phar is listed in 
debian/source/include-binaries and therefore shouldn't be touched when 
dpkg-source is extracting the debian package. But it seems that 
dpkg-source is modifing the cause it things it's a textfile and ensure 
the newlines are correct (especially the last).

Maybe we can find the right way to get this composer package done right 
in this obs mix.

--
Daniel


Am 2015-05-11 11:40, schrieb Timotheus Pokorra:
> Hello Mateusz,
> 
>> 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.
> 
> Thank you so much!
> I have now used your code to fix the build of composer in
> Kolab:Development, and now kolab-freebusy and iRony build fine for
> Debian again!
> 
> Thank you,
>   Timotheus
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel


More information about the devel mailing list