[klatexformula] fix build with gcc-4.7.0

nucleo nucleo at fedoraproject.org
Thu Jan 5 20:02:00 UTC 2012


commit 6ea08a268eeffc71aab82c9ae963fe3eefd23cad
Author: nucleo <nucleo at fedoraproject.org>
Date:   Thu Jan 5 22:01:56 2012 +0200

    fix build with gcc-4.7.0

 klatexformula-3.2.3-gcc-4.7.0.patch |   11 +++++++++++
 klatexformula.spec                  |    8 +++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/klatexformula-3.2.3-gcc-4.7.0.patch b/klatexformula-3.2.3-gcc-4.7.0.patch
new file mode 100644
index 0000000..b1ddb9e
--- /dev/null
+++ b/klatexformula-3.2.3-gcc-4.7.0.patch
@@ -0,0 +1,11 @@
+--- klatexformula-3.2.3/src/klflibview_p.h	2011-04-12 16:30:41.000000000 +0300
++++ klatexformula-3.2.3/src/klflibview_p.h	2012-01-05 21:57:50.176093650 +0200
+@@ -172,7 +172,7 @@
+       }
+       if (insertPos == QList<N>::size()) {
+ 	pContainsNonAllocated = false;
+-	append(n);
++	this->append(n);
+ 	return insertPos;
+       }
+       QList<N>::operator[](insertPos) = n;
diff --git a/klatexformula.spec b/klatexformula.spec
index d6e8c64..d4e783f 100644
--- a/klatexformula.spec
+++ b/klatexformula.spec
@@ -1,6 +1,6 @@
 Name:             klatexformula
 Version:          3.2.3
-Release:          3%{?dist}
+Release:          4%{?dist}
 Summary:          Application for easy image creating from a LaTeX equation
 Group:            Applications/Publishing
 License:          GPLv2+
@@ -8,6 +8,8 @@ URL:              http://klatexformula.sourceforge.net/
 Source0:          http://downloads.sourceforge.net/klatexformula/%{name}-%{version}.tar.gz
 # the buildsystem sets the proper 64/32-bit compile flags
 Patch0:           %{name}-3.2.3-flags.patch
+# fix build with gcc-4.7.0
+Patch1:           klatexformula-3.2.3-gcc-4.7.0.patch
 BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:    kdelibs-devel
 BuildRequires:    desktop-file-utils
@@ -67,6 +69,7 @@ Development files for the libklfbackend.
 %prep
 %setup -q
 %patch0 -p1 -b .flags
+%patch1 -p1 -b .gcc-4.7.0
 
 %build
 mkdir -p %{_target_platform}
@@ -157,6 +160,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_includedir}/klfbackend
 
 %changelog
+* Thu Jan  5 2012 Alexey Kurov <nucleo at fedoraproject.org> - 3.2.3-4
+- fix build with gcc-4.7.0
+
 * Tue Apr 26 2011 Dan HorĂ¡k <dan[at]danny.cz> - 3.2.3-3
 - the buildsystem sets the proper 64/32-bit compile flags (fixes build on s390)
 


More information about the scm-commits mailing list