Comment 13 for bug 710881

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have found a build problem. The fix works well with a package which I build on my local machine, but with a package built on buildds it fails.

So I get the following (having a locally rebuilt binary package of "cups", using 1.4.6-5 in all cases):

till@till:~/ubuntu/cups/bzr/debian-trunk$ sudo dpkg -i cups_1.4.6-5_amd64.deb
...
till@till:~/ubuntu/cups/bzr/debian-trunk$ file /usr/share/cups/doc-root/images/cups.png
/usr/share/cups/doc-root/images/cups.png: PNG image data, 128 x 128, 8-bit/color RGBA, non-interlaced
till@till:~/ubuntu/cups/bzr/debian-trunk$ sudo apt-get install --reinstall cups
...
till@till:~/ubuntu/cups/bzr/debian-trunk$ file /usr/share/cups/doc-root/images/cups.png
/usr/share/cups/doc-root/images/cups.png: PNG image data, 128 x 128, 8-bit colormap, non-interlaced
till@till:~/ubuntu/cups/bzr/debian-trunk$

So cups.png has the correct format with the locally built package but the wrong format with the package built by buildds.

The conversion is done in the debian/rules file, in the "binary-post-install/cups::" rule, by running the command line

convert debian/$(cdbs_curpkg)/usr/share/cups/doc-root/images/cups.png PNG32:cups.png && \
        mv -f cups.png debian/$(cdbs_curpkg)/usr/share/cups/doc-root/images/

How has this to be done correctly so that buildds produces the correct files.

pitti, can you help here? Thanks.