[SimGear] Minor patch to build on aarch64
Peter Robinson
pbrobinson at fedoraproject.org
Wed Jul 30 13:35:29 UTC 2014
commit 333e9b4b04d28d1a30fe9fccf9c582600f6b5212
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Wed Jul 30 14:34:51 2014 +0100
Minor patch to build on aarch64
SimGear.spec | 7 ++++++-
simgear-aarch64.patch | 11 +++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/SimGear.spec b/SimGear.spec
index e4ebdd3..668f0db 100644
--- a/SimGear.spec
+++ b/SimGear.spec
@@ -1,6 +1,6 @@
Name: SimGear
Version: 3.0.0
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPLv2+
Group: System Environment/Libraries
Summary: Simulation library components
@@ -9,6 +9,7 @@ Source0: http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/simgea
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: 0001-remove-unneeded-header.patch
Patch2: 0002-check-to-be-sure-that-n-is-not-being-set-as-format-t.patch
+Patch3: simgear-aarch64.patch
BuildRequires: openal-soft-devel
BuildRequires: OpenSceneGraph-devel >= 3.0.0
BuildRequires: boost-devel >= 1.44.0
@@ -37,6 +38,7 @@ SimGear.
%prep
%setup -q -n simgear-%{version}
%patch2 -p1 -b .checkforn
+%patch3 -p1 -b .aarch64
# makes rpmlint happy
find -name \*.cxx -o -name \*.hxx | xargs chmod -x
@@ -88,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/cmake/SimGearCore
%changelog
+* Wed Jul 30 2014 Peter Robinson <pbrobinson at fedoraproject.org> 3.0.0-5
+- Minor patch to build on aarch64
+
* Thu Jul 10 2014 Ralf Corsépius <corsepiu at fedoraproject.org> - 3.0.0-4
- Rebuild against OSG-3.2.1.
diff --git a/simgear-aarch64.patch b/simgear-aarch64.patch
new file mode 100644
index 0000000..1523c62
--- /dev/null
+++ b/simgear-aarch64.patch
@@ -0,0 +1,11 @@
+--- simgear-3.0.0/simgear/nasal/naref.h.orig 2014-07-30 14:09:11.978067802 +0100
++++ simgear-3.0.0/simgear/nasal/naref.h 2014-07-30 14:10:00.324935236 +0100
+@@ -12,7 +12,7 @@
+ # define NASAL_NAN64
+ #elif defined(_M_IX86) || defined(i386) || defined(__x86_64) || \
+ defined(__ia64__) || defined(_M_IA64) || defined(__ARMEL__) || \
+- defined(_M_X64) || defined(__alpha__) || \
++ defined(_M_X64) || defined(__alpha__) || defined(__aarch64__) || \
+ (defined(__sh__) && defined(__LITTLE_ENDIAN__))
+ # define NASAL_LE
+ #elif defined(__sparc) || defined(__ppc__) || defined(__PPC) || \
More information about the scm-commits
mailing list