* [gentoo-desktop] [kde-sunset] gwenview-1.4.2-r3 doesn't compile with libpng-1.4.2 (patch included)
@ 2010-05-16 21:58 Jens Rutschmann
2010-05-17 12:53 ` Ladislav Laska
0 siblings, 1 reply; 2+ messages in thread
From: Jens Rutschmann @ 2010-05-16 21:58 UTC (permalink / raw
To: gentoo-desktop
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
Hi all,
apparently the gwenview code includes some copied source files from qt3.
At least compiling it against libpng-1.4.2 fails with the same errors as qt3 did. Parts of the patch for qt3 from the
kde-sunset overlay can be applied to gwenview as well.
I modified it a bit and attached it to this email. Place it in the files dir and change the "PATCHES" variable in the
ebuild as follows and gwenview should compile again.
PATCHES=(
"${FILESDIR}/gwenview-1.4.2-exiv2.patch"
"${FILESDIR}/gwenview-1.4.2-desktop-file.diff"
"${FILESDIR}/gwenview-libpng14.patch"
)
Best regards,
Jens
[-- Attachment #2: gwenview-libpng-14.patch --]
[-- Type: text/plain, Size: 952 bytes --]
--- src/gvcore/pngformattype.cpp 2007-09-15 15:46:13.000000000 +0200
+++ src/gvcore/pngformattype.cpp 2010-05-16 23:40:09.057829081 +0200
@@ -245,7 +245,11 @@
image.setColor( i, qRgba(c,c,c,0xff) );
}
if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) {
- const int g = info_ptr->trans_values.gray;
+#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=4 )
+ const int g = info_ptr->trans_color.gray;
+#else
+ const int g = info_ptr->trans_values.gray;
+#endif
if (g < ncols) {
image.setAlphaBuffer(TRUE);
image.setColor(g, image.color(g) & RGB_MASK);
@@ -273,7 +277,11 @@
info_ptr->palette[i].red,
info_ptr->palette[i].green,
info_ptr->palette[i].blue,
- info_ptr->trans[i]
+#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=4 )
+ info_ptr->trans_alpha[i]
+#else
+ info_ptr->trans[i]
+#endif
)
);
i++;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-desktop] [kde-sunset] gwenview-1.4.2-r3 doesn't compile with libpng-1.4.2 (patch included)
2010-05-16 21:58 [gentoo-desktop] [kde-sunset] gwenview-1.4.2-r3 doesn't compile with libpng-1.4.2 (patch included) Jens Rutschmann
@ 2010-05-17 12:53 ` Ladislav Laska
0 siblings, 0 replies; 2+ messages in thread
From: Ladislav Laska @ 2010-05-17 12:53 UTC (permalink / raw
To: gentoo-desktop
Thanks, just pushed update.
Regards Ladislav Laska
S pozdravem Ladislav Laska
---
xmpp/jabber: ladislav.laska@jabber.cz
On Sun, May 16, 2010 at 11:58 PM, Jens Rutschmann
<Jens.Rutschmann@gmx.info> wrote:
> Hi all,
>
> apparently the gwenview code includes some copied source files from qt3.
>
> At least compiling it against libpng-1.4.2 fails with the same errors as qt3
> did. Parts of the patch for qt3 from the kde-sunset overlay can be applied
> to gwenview as well.
>
> I modified it a bit and attached it to this email. Place it in the files dir
> and change the "PATCHES" variable in the ebuild as follows and gwenview
> should compile again.
>
>
>
> PATCHES=(
> "${FILESDIR}/gwenview-1.4.2-exiv2.patch"
> "${FILESDIR}/gwenview-1.4.2-desktop-file.diff"
> "${FILESDIR}/gwenview-libpng14.patch"
> )
>
>
>
> Best regards,
> Jens
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-17 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-16 21:58 [gentoo-desktop] [kde-sunset] gwenview-1.4.2-r3 doesn't compile with libpng-1.4.2 (patch included) Jens Rutschmann
2010-05-17 12:53 ` Ladislav Laska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox