[minitunes/f17] fix gcc 4.7 issue

Tom Callaway spot at fedoraproject.org
Thu Mar 22 18:31:31 UTC 2012


commit 2d005f70e7f0f1094772eb29226a2c694e545267
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Thu Mar 22 14:31:28 2012 -0400

    fix gcc 4.7 issue

 minitunes-1.0-gcc47.patch |   11 +++++++++++
 minitunes.spec            |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/minitunes-1.0-gcc47.patch b/minitunes-1.0-gcc47.patch
new file mode 100644
index 0000000..76af388
--- /dev/null
+++ b/minitunes-1.0-gcc47.patch
@@ -0,0 +1,11 @@
+diff -up minitunes/src/qtsingleapplication/qtlocalpeer.cpp.gcc47 minitunes/src/qtsingleapplication/qtlocalpeer.cpp
+--- minitunes/src/qtsingleapplication/qtlocalpeer.cpp.gcc47	2012-03-22 14:10:13.937039243 -0400
++++ minitunes/src/qtsingleapplication/qtlocalpeer.cpp	2012-03-22 14:10:22.726963554 -0400
+@@ -57,6 +57,7 @@ static PProcessIdToSessionId pProcessIdT
+ #endif
+ #if defined(Q_OS_UNIX)
+ #include <time.h>
++#include <unistd.h>
+ #endif
+ 
+ namespace QtLP_Private {
diff --git a/minitunes.spec b/minitunes.spec
index bb495cc..57ae447 100644
--- a/minitunes.spec
+++ b/minitunes.spec
@@ -1,6 +1,6 @@
 Name:		minitunes
 Version:	1.0
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	A better music player
 
 Group:		Applications/Multimedia
@@ -9,6 +9,7 @@ Group:		Applications/Multimedia
 License:	GPLv3+ and LGPLv2+
 URL:		http://flavio.tordini.org/minitunes
 Source0:	http://flavio.tordini.org/files/%{name}/%{name}-%{version}.tar.gz
+Patch0:		minitunes-1.0-gcc47.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	qt-devel taglib-devel phonon-devel gcc-c++
@@ -33,6 +34,7 @@ on the right.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1 -b .gcc47
 
 # Fix executable bits for debuginfo package
 chmod 644 src/*.h
@@ -69,6 +71,9 @@ rm -rf %{buildroot}
 %dir %{_datadir}/%{name}/locale
 
 %changelog
+* Thu Mar 22 2012 Tom Callaway <spot at fedoraproject.org> - 1.0-3
+- fix gcc 4.7 issue
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list