[minetest] Fixed to build with gcc-4.7.0
bookwar
bookwar at fedoraproject.org
Sun Jan 15 00:21:57 UTC 2012
commit f4286cb4ee6e4ab0ced503e57bf9646a2dc08c42
Author: Aleksandra Bookwar <alpha at bookwar.info>
Date: Sun Jan 15 01:11:28 2012 +0100
Fixed to build with gcc-4.7.0
minetest-0.3.1-gcc.patch | 11 +++++++++++
minetest.spec | 10 +++++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/minetest-0.3.1-gcc.patch b/minetest-0.3.1-gcc.patch
new file mode 100644
index 0000000..6b25a44
--- /dev/null
+++ b/minetest-0.3.1-gcc.patch
@@ -0,0 +1,11 @@
+diff -uNr celeron55-minetest-bc0e5c0/src/filesys.cpp minetest-gcc/src/filesys.cpp
+--- celeron55-minetest-bc0e5c0/src/filesys.cpp 2011-11-09 11:07:40.000000000 +0100
++++ minetest-gcc/src/filesys.cpp 2012-01-14 17:33:28.620318340 +0100
+@@ -21,6 +21,7 @@
+ #include "strfnd.h"
+ #include <iostream>
+ #include <string.h>
++#include <unistd.h>
+
+ namespace fs
+ {
diff --git a/minetest.spec b/minetest.spec
index 37bc157..44f9136 100644
--- a/minetest.spec
+++ b/minetest.spec
@@ -3,7 +3,7 @@
Name: minetest
Version: 0.3.1
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Multiplayer infinite-world block sandbox with survival mode
Group: Amusements/Games
@@ -24,6 +24,9 @@ Source3: %{name}.rsyslog
Source4: %{name}.logrotate
Source5: %{name}.README
+# Fix to build with gcc-4.7.0
+Patch1: %{name}-0.3.1-gcc.patch
+
BuildRequires: cmake >= 2.6.0
BuildRequires: irrlicht-devel
BuildRequires: bzip2-devel gettext-devel jthread-devel sqlite-devel
@@ -54,6 +57,7 @@ Minetest multiplayer server. This package does not require X Window System
%prep
%setup -q -n %{gitname}-%{name}-%{gitcommit}
+%patch1 -p1
%build
%cmake -DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread .
@@ -156,6 +160,10 @@ fi
%changelog
+
+* Sat Jan 14 2012 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-8
+- Fixed to build with gcc-4.7.0
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list