Bug 264184 - png-1.5 compatibility fix
Summary: png-1.5 compatibility fix
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-Convert (show other bugs)
Version: 1.8.0
Platform: NetBSD pkgsrc All
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 17:07 UTC by Thomas Klausner
Modified: 2017-07-01 17:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.9.0


Attachments
Patch fixing the problem. (592 bytes, patch)
2011-01-24 17:07 UTC, Thomas Klausner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Klausner 2011-01-24 17:07:22 UTC
Created attachment 56385 [details]
Patch fixing the problem.

In png-1.5, the prototype for png_set_iCCCP changed. The fifth argument was a
png_charp and is now a png_bytep. This breaks compilation, similar to
https://bugs.kde.org/show_bug.cgi?id=264181
This problem still exists in SVN trunk from a few minutes ago.

I've attached a patch for kipi-plugins-1.6.0 that fixes the problem with 1.5.0.
It probably needs changes to still work against older versions (which I don't
have installed).
Comment 1 Thomas Klausner 2011-01-24 23:56:23 UTC
Andrew Coles fixed a similar problem for digikam in https://bugs.kde.org/show_bug.cgi?id=264181 modifying my patch so that it works with png-1.4 as well.
Comment 2 caulier.gilles 2011-01-25 07:36:38 UTC
Andrew,

Can you manage this file too about libpng 1.5 issue, at the same time than #264181 ?

Thanks in advance

Gilles Caulier
Comment 3 Andrew Coles 2011-01-25 11:26:25 UTC
SVN commit 1216971 by coles:

Added support for libpng 1.5.  As there's only one place in the file affected
by the API change, it's done with an #if at the point where it's needed.

BUG: 264184



 M  +8 -0      kpwriteimage.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1216971