From 8eaf64d27f3d147293e60d3d8d56cd207cd02b4197f10cb9a7185ed6301a1c84 Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Wed, 4 Dec 2013 09:11:05 +0000 Subject: [PATCH] Accepting request 209303 from home:k0da:ppc64le - Fix build on ppc64le platform - added patches: * userspace-rcu-ppc64le.patch OBS-URL: https://build.opensuse.org/request/show/209303 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/userspace-rcu?expand=0&rev=13 --- userspace-rcu-ppc64le.patch | 36 ++++++++++++++++++++++++++++++++++++ userspace-rcu.changes | 7 +++++++ userspace-rcu.spec | 2 ++ 3 files changed, 45 insertions(+) create mode 100644 userspace-rcu-ppc64le.patch diff --git a/userspace-rcu-ppc64le.patch b/userspace-rcu-ppc64le.patch new file mode 100644 index 0000000..edae8cf --- /dev/null +++ b/userspace-rcu-ppc64le.patch @@ -0,0 +1,36 @@ +Index: userspace-rcu-0.8.1/urcu/arch/ppc.h +=================================================================== +--- userspace-rcu-0.8.1.orig/urcu/arch/ppc.h ++++ userspace-rcu-0.8.1/urcu/arch/ppc.h +@@ -80,7 +80,7 @@ extern "C" { + + typedef unsigned long long cycles_t; + +-#ifdef __powerpc64__ ++#if defined(__powerpc64__) || defined(__powerpc64le__) + static inline cycles_t caa_get_cycles(void) + { + return (cycles_t) mftb(); +Index: userspace-rcu-0.8.1/configure +=================================================================== +--- userspace-rcu-0.8.1.orig/configure ++++ userspace-rcu-0.8.1/configure +@@ -7148,6 +7148,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; ++ ppc*le-*linux*|powerpc*le-*linux*) ++ LD="${LD-ld} -m elf64ppc" ++ ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; +@@ -12665,6 +12668,8 @@ case $host_cpu in #( + ARCHTYPE="ppc" ;; #( + powerpc64) : + ARCHTYPE="ppc" ;; #( ++ powerpc64le) : ++ ARCHTYPE="ppc" ;; #( + ppc) : + ARCHTYPE="ppc" ;; #( + s390) : diff --git a/userspace-rcu.changes b/userspace-rcu.changes index 120475a..9155419 100644 --- a/userspace-rcu.changes +++ b/userspace-rcu.changes @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Dec 3 15:11:55 UTC 2013 - dvaleev@suse.com + +- Fix build on ppc64le platform + +- added patches: + * userspace-rcu-ppc64le.patch +------------------------------------------------------------------- Tue Nov 26 15:07:34 UTC 2013 - pgajdos@suse.com - updated to 0.8.1: diff --git a/userspace-rcu.spec b/userspace-rcu.spec index f1c1450..9a0212b 100644 --- a/userspace-rcu.spec +++ b/userspace-rcu.spec @@ -28,6 +28,7 @@ Group: System/Libraries Source0: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2 Source1: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2.asc Source2: userspace-rcu.keyring +Patch0: userspace-rcu-ppc64le.patch Url: http://lttng.org/urcu BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc @@ -71,6 +72,7 @@ accesses to detect grace periods after which memory reclamation is possible. %prep %{?gpg_verify: %gpg_verify %{SOURCE1}} %setup -q +%patch0 -p1 %build %configure --disable-silent-rules --disable-static