[vym] gcc fix.

Jon Ciesla limb at fedoraproject.org
Fri Jan 6 13:40:56 UTC 2012


commit 6af19eef7a3d01ceaaec09ac9fbf581cd597ad15
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Fri Jan 6 07:40:46 2012 -0600

    gcc fix.

 vym-2.0.6-gcc470.patch |   10 ++++++++++
 vym.spec               |    4 ++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/vym-2.0.6-gcc470.patch b/vym-2.0.6-gcc470.patch
new file mode 100644
index 0000000..9f90a62
--- /dev/null
+++ b/vym-2.0.6-gcc470.patch
@@ -0,0 +1,10 @@
+--- mainwindow.cpp~	2011-12-14 12:18:36.000000000 -0600
++++ mainwindow.cpp	2012-01-06 07:11:01.969955047 -0600
+@@ -4,6 +4,7 @@
+ 
+ #include <iostream>
+ #include <typeinfo>
++#include <unistd.h>
+ 
+ #include "aboutdialog.h"
+ #include "branchpropwindow.h"
diff --git a/vym.spec b/vym.spec
index b750b78..5df9797 100644
--- a/vym.spec
+++ b/vym.spec
@@ -13,6 +13,7 @@ Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.
 # See also BZ 511290
 Source1:        %{name}.desktop
 Source2:        vym.xml
+Patch0:		vym-2.0.6-gcc470.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -34,6 +35,8 @@ to organize tasks, to get an overview over complex contexts.
 %prep
 %setup -q
 
+%patch0 -p0
+
 %build
 
 qmake-qt4 DOCDIR="%{_docdir}/%{name}-%{version}" PREFIX=%{_prefix}
@@ -100,6 +103,7 @@ update-desktop-database &> /dev/null || :
 %changelog
 * Thu Jan 05 2012 Jon Ciesla <limburgher at gmail.com> - 2.0.6-1
 - New upstream.
+- Patch for gcc 4.7.0.
 
 * Tue Nov 22 2011 Jon Ciesla <limb at jcomserv.net> - 2.0.4-1
 - New upstream.


More information about the scm-commits mailing list