[cairo] cairo built against libpng16

Ingmar Runge ingmar at irsoft.de
Sat Mar 30 01:22:16 PDT 2013


Hey everyone, here's a possible patch. It's the least invasive patch I
could think of.

On Wed, Mar 20, 2013 at 10:16 AM,  <pgajdos at suse.cz> wrote:
> Hi,
>
> simple program attached seems to have different results when
> cairo is built against libpng15 and when it is built against
> libpng16*):
>
> cairo-libpng15-changeroot> ./cairo-fail tmp.png
> PNG image read.
>
> cairo-libpng16-changeroot> ./cairo-fail tmp.png
> Error reading PNG image tmp.png: out of memory
>
>
> The difference between changeroots are really only libpng version:
> @@ -141,9 +141,9 @@ libpcrecpp0-8.31-5.1.x86_64
>  libpcreposix0-8.31-5.1.x86_64
>  libpixman-1-0-0.28.2-3.1.x86_64
>  libpixman-1-0-devel-0.28.2-3.1.x86_64
> -libpng15-15-1.5.14-1.1.x86_64
> -libpng15-compat-devel-1.5.14-1.1.x86_64
> -libpng15-devel-1.5.14-1.1.x86_64
> +libpng16-16-1.6.0-25.1.x86_64
> +libpng16-compat-devel-1.6.0-25.1.x86_64
> +libpng16-devel-1.6.0-25.1.x86_64
>  libpopt0-1.16-20.1.x86_64
>  libppl9-0.11.2-15.1.x86_64
>  libppl_c4-0.11.2-15.1.x86_64
>
> cairo-libpng1{5,6}-changeroot> rpm -q cairo-devel
> cairo-devel-1.12.14-0.x86_64
>
> Petr
>
>
> *) This boiled down when building perl-Cairo against cairo(libpng16).
> 40-th test from CairoSurface.t failed. In turn that means that second
> test from the following doesn't succed.
>
> use strict;
> use warnings;
>
> use Test::More tests => 2;
>
> use constant IMG_WIDTH => 256;
> use constant IMG_HEIGHT => 256;
>
> use Cairo;
>
> my $surf = Cairo::ImageSurface->create ('rgb24', IMG_WIDTH,
> IMG_HEIGHT);
> is ($surf->write_to_png ('tmp.png'), 'success');
>
> $surf = Cairo::ImageSurface->create_from_png ('tmp.png');
> is ($surf->status, 'success');
>
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-libpng16.patch
Type: application/octet-stream
Size: 1670 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130330/e8d2aef0/attachment.obj>


More information about the cairo mailing list