From 65c80da1a36c4200bf18375fbc6110cee6f39aa7 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson(a)gmail.com>
Date: Wed, 12 Nov 2014 17:02:15 +0000
Subject: add aarch64 support
---
ejabberd-0011-aarch64.patch | 13 +++++++++++++
ejabberd.spec | 8 +++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
create mode 100644 ejabberd-0011-aarch64.patch
diff --git a/ejabberd-0011-aarch64.patch b/ejabberd-0011-aarch64.patch
new file mode 100644
index 0000000..070d86d
--- /dev/null
+++ b/ejabberd-0011-aarch64.patch
@@ -0,0 +1,13 @@
+diff --git a/c_src/double-conversion/utils.h b/c_src/double-conversion/utils.h
+index 9ebb9ee..8aebce0 100644
+--- a/deps/jiffy/c_src/double-conversion/utils.h
++++ b/deps/jiffy/c_src/double-conversion/utils.h
+@@ -57,7 +57,7 @@
+ defined(__hppa__) || defined(__ia64__) || \
+ defined(__mips__) || defined(__powerpc__) || \
+ defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
+- defined(__SH4__) || defined(__alpha__) || \
++ defined(__SH4__) || defined(__alpha__) || defined(__aarch64__) || \
+ defined(_MIPS_ARCH_MIPS32R2)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+ #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
diff --git a/ejabberd.spec b/ejabberd.spec
index cae4c86..7229d87 100644
--- a/ejabberd.spec
+++ b/ejabberd.spec
@@ -23,7 +23,7 @@
Name: ejabberd
Version: 14.07
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A distributed, fault-tolerant Jabber/XMPP server
Group: Applications/Internet
@@ -70,6 +70,8 @@ Patch9: ejabberd-0009-Fix-permissions-for-captcha-script.patch
# Fedora-specific
Patch10:ejabberd-0010-Enable-systemd-notification-if-available.patch
+Patch11: ejabberd-0011-aarch64.patch
+
BuildRequires: expat-devel
BuildRequires: openssl-devel >= 0.9.8
BuildRequires: pam-devel
@@ -143,6 +145,7 @@ Documentation for ejabberd.
#%patch10 -p1 -b .systemd_notify
tar xvf %{S:14}
+%patch11 -p1
%build
@@ -321,6 +324,9 @@ fi)
%changelog
+* Wed Nov 12 2014 Marcin Juszkiewicz <mjuszkiewicz(a)redhat.com> - 14.07-4
+- add aarch64 support
+
* Tue Nov 04 2014 Peter Lemenkov <lemenkov(a)gmail.com> - 14.07-3
- Rebuild with Erlang 17.3.3
--
cgit v1.1
https://src.fedoraproject.org/cgit/ejabberd.git/commit/?h=epel7&id=65...