[ompl] Build fixes for gcc-4.7
rmattes
rmattes at fedoraproject.org
Sat Jan 14 17:28:21 UTC 2012
commit 0e6a169426d599f1215ab920d61ca4fceafdb3a0
Author: Rich Mattes <richmattes at gmail.com>
Date: Sat Jan 14 12:28:08 2012 -0500
Build fixes for gcc-4.7
ompl-0.9.5.gcc47.patch | 14 ++++++++++++++
ompl.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/ompl-0.9.5.gcc47.patch b/ompl-0.9.5.gcc47.patch
new file mode 100644
index 0000000..3635a58
--- /dev/null
+++ b/ompl-0.9.5.gcc47.patch
@@ -0,0 +1,14 @@
+diff -up ./src/ompl/tools/benchmark/src/MachineSpecs.cpp.gcc47 ./src/ompl/tools/benchmark/src/MachineSpecs.cpp
+--- ./src/ompl/tools/benchmark/src/MachineSpecs.cpp.gcc47 2012-01-14 12:09:20.650767543 -0500
++++ ./src/ompl/tools/benchmark/src/MachineSpecs.cpp 2012-01-14 12:11:43.617962561 -0500
+@@ -37,6 +37,10 @@
+ #include "ompl/tools/benchmark/MachineSpecs.h"
+ #include "ompl/util/Console.h"
+
++#ifndef _WIN32
++#include <unistd.h>
++#endif
++
+ /// @cond IGNORE
+
+ #if defined _WIN32
diff --git a/ompl.spec b/ompl.spec
index 81ab107..f84465a 100644
--- a/ompl.spec
+++ b/ompl.spec
@@ -11,7 +11,8 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Sour
# libraries get installed to /usr/lib64 on 64 bit systems.
# Not yet submitted upstream
Patch0: ompl-0.9.3.fixinstall.patch
-
+# Fixes for gcc 4.7 related build errors
+Patch1: ompl-0.9.5.gcc47.patch
BuildRequires: boost-devel >= 1.42.0
BuildRequires: cmake >= 2.8.2
BuildRequires: doxygen
@@ -40,6 +41,7 @@ developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{version}-Source
%patch0 -p0 -b .fixinstalldir
+%patch1 -p0 -b .gcc47
%build
# Python bindings are disabled because dependencies pygccxml and pyplusplus are not packaged for Fedora
More information about the scm-commits
mailing list