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
This commit is contained in:
Michal Vyskocil 2013-12-04 09:11:05 +00:00 committed by Git OBS Bridge
parent 453bcd3813
commit 8eaf64d27f
3 changed files with 45 additions and 0 deletions

View File

@ -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) :

View File

@ -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 Tue Nov 26 15:07:34 UTC 2013 - pgajdos@suse.com
- updated to 0.8.1: - updated to 0.8.1:

View File

@ -28,6 +28,7 @@ Group: System/Libraries
Source0: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2 Source0: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2
Source1: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2.asc Source1: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2.asc
Source2: userspace-rcu.keyring Source2: userspace-rcu.keyring
Patch0: userspace-rcu-ppc64le.patch
Url: http://lttng.org/urcu Url: http://lttng.org/urcu
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc BuildRequires: gcc
@ -71,6 +72,7 @@ accesses to detect grace periods after which memory reclamation is possible.
%prep %prep
%{?gpg_verify: %gpg_verify %{SOURCE1}} %{?gpg_verify: %gpg_verify %{SOURCE1}}
%setup -q %setup -q
%patch0 -p1
%build %build
%configure --disable-silent-rules --disable-static %configure --disable-silent-rules --disable-static