[poco] Add support for AArch64
Yaakov Selkowitz
yselkowitz at fedoraproject.org
Tue Jul 8 20:37:32 UTC 2014
commit 5db2584cc78f302d90021d2feff76017fe4b90bc
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date: Tue Jul 8 15:37:42 2014 -0500
Add support for AArch64
poco-aarch64.patch | 39 +++++++++++++++++++++++++++++++++++++++
poco.spec | 8 +++++++-
2 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/poco-aarch64.patch b/poco-aarch64.patch
new file mode 100644
index 0000000..3b0505c
--- /dev/null
+++ b/poco-aarch64.patch
@@ -0,0 +1,39 @@
+From 37899eda9563d9134cb5864751b6432cabfaac3e Mon Sep 17 00:00:00 2001
+From: Will Newton <will.newton at linaro.org>
+Date: Tue, 21 May 2013 22:11:05 +0100
+Subject: [PATCH] Foundation/include/Poco/Platform.h: Add support for AArch64.
+
+Add support for big and little endian AArch64 preprocessor defines.
+---
+ Foundation/include/Poco/Platform.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h
+index f34f277..8ddb4cb 100644
+--- a/Foundation/include/Poco/Platform.h
++++ b/Foundation/include/Poco/Platform.h
+@@ -145,6 +145,7 @@
+ #define POCO_ARCH_S390 0x0c
+ #define POCO_ARCH_SH 0x0d
+ #define POCO_ARCH_NIOS2 0x0e
++#define POCO_ARCH_AARCH64 0x0f
+
+
+ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA)
+@@ -207,7 +208,12 @@
+ #else
+ #define POCO_ARCH_BIG_ENDIAN 1
+ #endif
+-
++#elif defined(__AARCH64EL__)
++ #define POCO_ARCH POCO_ARCH_AARCH64
++ #define POCO_ARCH_LITTLE_ENDIAN 1
++#elif defined(__AARCH64EB__)
++ #define POCO_ARCH POCO_ARCH_AARCH64
++ #define POCO_ARCH_BIG_ENDIAN 1
+ #endif
+
+
+--
+1.9.3
+
diff --git a/poco.spec b/poco.spec
index 303855d..848685f 100644
--- a/poco.spec
+++ b/poco.spec
@@ -13,7 +13,7 @@
Name: poco
Version: %{poco_src_version}
-Release: %{poco_rpm_release}%{?dist}.6
+Release: %{poco_rpm_release}%{?dist}.7
Summary: C++ class libraries for network-centric applications
Group: Development/Libraries
@@ -22,6 +22,8 @@ URL: http://www.pocoproject.org
Source0: http://downloads.sourceforge.net/poco/poco-%{version}-all.tar.bz2
Source1: http://downloads.sourceforge.net/poco/poco-%{poco_doc_version}-all-doc.tar.gz
+# upstream commit 37899ed, shipped in 1.5.2-rc2
+Patch0: poco-aarch64.patch
BuildRequires: openssl-devel
BuildRequires: libiodbc-devel
@@ -40,6 +42,7 @@ including the standard library.
%prep
%setup -q -n poco-%{version}-all -a1
+%patch0 -p1
/bin/chmod -R a-x+X poco-%{poco_doc_version}-all-doc
/bin/sed -i.orig -e 's|$(INSTALLDIR)/lib\b|$(INSTALLDIR)/%{_lib}|g' Makefile
/bin/sed -i.orig -e 's|ODBCLIBDIR = /usr/lib\b|ODBCLIBDIR = %{_libdir}|g' Data/ODBC/Makefile Data/ODBC/testsuite/Makefile
@@ -413,6 +416,9 @@ HTML format.
%doc poco-%{poco_doc_version}-all-doc/*
%changelog
+* Tue Jul 08 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 1.4.2p1-2.7
+- Add support for AArch64
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.2p1-2.6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list