jreznik pushed to kdepim3 (epel7). "fix build failure with gcc-4.7"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 2 16:08:50 UTC 2015


>From 49f05c8ee467a6af450adc4fc4391a8398668f25 Mon Sep 17 00:00:00 2001
From: Than Ngo <than at redhat.com>
Date: Wed, 8 Feb 2012 16:10:55 +0100
Subject: fix build failure with gcc-4.7


diff --git a/kdepim-3.5.10-gcc.patch b/kdepim-3.5.10-gcc.patch
new file mode 100644
index 0000000..7b282f3
--- /dev/null
+++ b/kdepim-3.5.10-gcc.patch
@@ -0,0 +1,12 @@
+diff -up kdepim-3.5.10/libkcal/listbase.h.me kdepim-3.5.10/libkcal/listbase.h
+--- kdepim-3.5.10/libkcal/listbase.h.me	2012-02-08 15:18:18.076644288 +0100
++++ kdepim-3.5.10/libkcal/listbase.h	2012-02-08 15:19:20.577257147 +0100
+@@ -67,7 +67,7 @@ class ListBase : public QValueList<T *>
+ 
+     bool removeRef( T *t )
+     {
+-      QValueListIterator<T *> it = find( t );
++      QValueListIterator<T *> it = this->find( t );
+       if ( it == QValueList<T*>::end() ) {
+         return false;
+       } else {
diff --git a/kdepim3.spec b/kdepim3.spec
index e77217b..a547f65 100644
--- a/kdepim3.spec
+++ b/kdepim3.spec
@@ -2,13 +2,14 @@
 Name:    kdepim3
 Summary: Compatibility support for kdepim3 
 Version: 3.5.10
-Release: 6%{?dist}
+Release: 7%{?dist}
 
 License: GPLv2
 Group:   Applications/Productivity
 URL:     http://www.kde.org/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdepim-%{version}.tar.bz2
+Patch0: kdepim-3.5.10-gcc.patch
 
 BuildRequires: bison flex flex-static
 BuildRequires: desktop-file-utils
@@ -45,6 +46,7 @@ Conflicts: kdepimlibs-devel < 4.2.1-2
 %prep
 %setup -q -n kdepim-%{version}
 
+%patch0 -p1 -b .gcc47
 
 %build
 unset QTDIR || : ; . /etc/profile.d/qt.sh
@@ -119,6 +121,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Wed Feb 08 2012 Than Ngo <than at redhat.com> - 3.5.10-7
+- fix build failure with gcc-4.7
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.5.10-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/kdepim3.git/commit/?h=epel7&id=49f05c8ee467a6af450adc4fc4391a8398668f25


More information about the scm-commits mailing list