summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-26 22:46:07 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-26 22:46:07 +0200
commita62bf523e93cfc54151ad9c13bb67a135fd676fd (patch)
treec28c0d549a28457dd5a0b722238048e9bfce983f /redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch
parent502bd62dcfc36b32315f763557ab943edbc0a75a (diff)
downloadtde-packaging-a62bf523e93cfc54151ad9c13bb67a135fd676fd.tar.gz
tde-packaging-a62bf523e93cfc54151ad9c13bb67a135fd676fd.zip
RPM Packaging: initial support for R14.0.0
Diffstat (limited to 'redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch')
-rw-r--r--redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch b/redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch
new file mode 100644
index 000000000..38c729d60
--- /dev/null
+++ b/redhat/dependencies/tqt3/tqt3-14.0.0-fix_ftbfs.patch
@@ -0,0 +1,18 @@
+--- ./tools/qvfb/qanimationwriter.cpp.ori 2013-06-25 20:52:34.636153035 +0200
++++ ./tools/qvfb/qanimationwriter.cpp 2013-06-25 20:52:59.673642835 +0200
+@@ -101,7 +101,15 @@
+
+ void writePNG(const TQImage& image)
+ {
++#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=5 )
++#warning XXXtnn not too sure about this
++/*
++according to png.h, channels is only used on read, not writes, so we
++should be able to comment this out.
++*/
++#else /* LIBPNG 1.5 */
+ info_ptr->channels = 4;
++#endif
+ png_set_sig_bytes(png_ptr, 8); // Pretend we already wrote the sig
+ png_set_IHDR(png_ptr, info_ptr, image.width(), image.height(),
+ 8, image.hasAlphaBuffer()