[pokerth] Fix for gcc 4.7

Bruno Wolff III bruno at fedoraproject.org
Tue Jan 31 04:12:34 UTC 2012


commit d126a0705b7d852cd52296df2f89f9e76dc9eb17
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Mon Jan 30 22:12:01 2012 -0600

    Fix for gcc 4.7
    
    unistd.h doesn't get included with gcc 4.7 in some places where it
    had been in previous versions.

 pokerth-gcc47.patch |    2 ++
 pokerth.spec        |    7 ++++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/pokerth-gcc47.patch b/pokerth-gcc47.patch
new file mode 100644
index 0000000..0ca4a4f
--- /dev/null
+++ b/pokerth-gcc47.patch
@@ -0,0 +1,2 @@
+59a60
+> #include <unistd.h>
diff --git a/pokerth.spec b/pokerth.spec
index 46c60d3..ad02a9a 100644
--- a/pokerth.spec
+++ b/pokerth.spec
@@ -1,6 +1,6 @@
 Name:           pokerth
 Version:        0.8.3
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        A Texas-Holdem poker game
 Group:          Amusements/Games
 License:        GPLv2+
@@ -10,6 +10,7 @@ Source0:        http://downloads.sourceforge.net/%{name}/PokerTH-%{version}-src.
 # fixed upstream.
 Patch0:         pokerth-0.8.3-filesystem.patch
 Patch1:         pokerth-0.8.3-gnutls-only.patch
+Patch2:         pokerth-gcc47.patch
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildRequires:  desktop-file-utils
@@ -36,6 +37,7 @@ is available for Linux, Windows, and MacOSX.
 %setup -q -n PokerTH-%{version}-src
 %patch0 -p1
 %patch1 -p1
+%patch2
 
 # Fix permissions
 chmod 644 ChangeLog
@@ -83,6 +85,9 @@ rm -rf %{buildroot}
 %{_datadir}/pixmaps/%{name}.png
 
 %changelog
+* Mon Jan 30 2012 Bruno Wolff III <bruno at wolff.to> - 0.8.3-12
+- Fix for gcc 4.7
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.3-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list