From 71955d549c2a19d914b4eabac422be53205f1bdd8d977d3251d7ad8dcc27084b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Tue, 15 Mar 2016 16:09:00 +0000 Subject: [PATCH] Accepting request 373377 from home:k0da:branches:devel:libraries:c_c++ - userspace-rcu-ppc64le.patch use ppc for ppc64le http://git.lttng.org/?p=userspace-rcu.git;a=commit;h=61126bd9c901fa403315db71d8d5351d716717cb OBS-URL: https://build.opensuse.org/request/show/373377 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/userspace-rcu?expand=0&rev=22 --- userspace-rcu-ppc64le.patch | 34 ++++++++++++++++++++++++++++++++++ userspace-rcu.changes | 6 ++++++ userspace-rcu.spec | 4 +++- 3 files changed, 43 insertions(+), 1 deletion(-) 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..25ed5c4 --- /dev/null +++ b/userspace-rcu-ppc64le.patch @@ -0,0 +1,34 @@ +From 61126bd9c901fa403315db71d8d5351d716717cb Mon Sep 17 00:00:00 2001 +From: Mathieu Desnoyers +Date: Mon, 28 Sep 2015 11:16:57 -0400 +Subject: [PATCH] powerpc64le: use "ppc" architecture + +powerpc64le has been originally added to urcu with the "gcc" generic +architecture support. After testing, it appears that the "ppc" +architecture works as well. + +Move to the "ppc" architecture so it becomes the same as other powerpc +32/64 (big endian) architectures. + +Doing so wires up the membarrier system call on powerpc64le. + +Signed-off-by: Mathieu Desnoyers +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 57e696d..10a1589 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -79,7 +79,7 @@ AS_CASE([$host_cpu], + [powerpc], [ARCHTYPE="ppc"], + [ppc64], [ARCHTYPE="ppc"], + [powerpc64], [ARCHTYPE="ppc"], +- [powerpc64le], [ARCHTYPE="gcc"], ++ [powerpc64le], [ARCHTYPE="ppc"], + [ppc], [ARCHTYPE="ppc"], + [s390], [ARCHTYPE="s390"], + [s390x], [ARCHTYPE="s390"], +-- +1.9.1 diff --git a/userspace-rcu.changes b/userspace-rcu.changes index 0e30bb2..7d977fd 100644 --- a/userspace-rcu.changes +++ b/userspace-rcu.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 15 15:56:31 UTC 2016 - dvaleev@suse.com + +- userspace-rcu-ppc64le.patch use ppc for ppc64le + http://git.lttng.org/?p=userspace-rcu.git;a=commit;h=61126bd9c901fa403315db71d8d5351d716717cb + ------------------------------------------------------------------- Tue Sep 29 19:09:49 UTC 2015 - dmueller@suse.com diff --git a/userspace-rcu.spec b/userspace-rcu.spec index b7572f7..e4c00d9 100644 --- a/userspace-rcu.spec +++ b/userspace-rcu.spec @@ -2,7 +2,7 @@ # # spec file for package userspace-rcu # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2012 Pascal Bleser # # All modifications and additions to the file contributed by third parties @@ -29,6 +29,7 @@ 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 Patch1: userspace-rcu-aarch64.patch +Patch2: userspace-rcu-ppc64le.patch Url: http://lttng.org/urcu BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: automake @@ -71,6 +72,7 @@ accesses to detect grace periods after which memory reclamation is possible. %prep %setup -q %patch1 -p1 +%patch2 -p1 %build autoreconf -fi