Add aarch64 support.

This commit is contained in:
Richard W.M. Jones 2014-11-27 22:01:25 +00:00
parent ea2a2d2d84
commit a3ca861a60
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,14 @@
--- galera-25.3.5-src.old/chromium/build_config.h 2014-03-27 15:49:30.000000000 +0000
+++ galera-25.3.5-src/chromium/build_config.h 2014-11-27 21:57:59.377756193 +0000
@@ -106,6 +106,11 @@
#define ARCH_CPU_ARMEL 1
#define ARCH_CPU_32_BITS 1
#define ARCH_CPU_LITTLE_ENDIAN 1
+#elif defined(__aarch64__)
+#define ARCH_CPU_ARM_FAMILY 1
+#define ARCH_CPU_ARMEL 1
+#define ARCH_CPU_64_BITS 1
+#define ARCH_CPU_LITTLE_ENDIAN 1
#elif defined(__pnacl__)
#define ARCH_CPU_32_BITS 1
#elif defined(__MIPSEL__)

View File

@ -1,6 +1,6 @@
Name: galera Name: galera
Version: 25.3.5 Version: 25.3.5
Release: 8%{?dist} Release: 9%{?dist}
Summary: Synchronous multi-master wsrep provider (replication engine) Summary: Synchronous multi-master wsrep provider (replication engine)
License: GPLv2 License: GPLv2
@ -10,12 +10,14 @@ Source1: garbd.service
Source2: garbd-wrapper Source2: garbd-wrapper
Patch1: galera-verify.patch Patch1: galera-verify.patch
# Add aarch64 support. Sent upstream 2014-11-27.
Patch2: galera-add-aarch64-support.patch
BuildRequires: boost-devel check-devel openssl-devel scons systemd BuildRequires: boost-devel check-devel openssl-devel scons systemd
Requires: nmap-ncat Requires: nmap-ncat
# comes from ./chromium/build_config.h # comes from ./chromium/build_config.h
ExclusiveArch: %{ix86} x86_64 %{arm} ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
Requires(post): systemd Requires(post): systemd
@ -34,6 +36,7 @@ replication engine see http://www.codership.com.
%setup -q -n %{name}-%{version}-src %setup -q -n %{name}-%{version}-src
%patch1 -p1 %patch1 -p1
%patch2 -p1
%build %build
@ -87,6 +90,9 @@ install -D -m 644 scripts/packages/README-MySQL %{buildroot}%{_docdir}/galera/RE
%changelog %changelog
* Thu Nov 27 2014 Richard W.M. Jones <rjones@redhat.com> - 25.3.5-9
- Add aarch64 support.
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-8 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild