diff --git a/gperftools-aarch64.patch b/gperftools-aarch64.patch new file mode 100644 index 0000000..5d41a0b --- /dev/null +++ b/gperftools-aarch64.patch @@ -0,0 +1,13 @@ +--- gperftools-2.5/src/base/linux_syscall_support.h 2018/03/25 22:34:33 1.1 ++++ gperftools-2.5/src/base/linux_syscall_support.h 2018/03/25 22:34:51 +@@ -2560,10 +2560,6 @@ + #endif + #if (defined(__aarch64__)) || \ + (defined(__mips__) && (_MIPS_ISA == _MIPS_ISA_MIPS64)) +- LSS_INLINE _syscall6(void*, mmap, void*, s, +- size_t, l, int, p, +- int, f, int, d, +- __off64_t, o) + LSS_INLINE int LSS_NAME(sigaction)(int signum, + const struct kernel_sigaction *act, + struct kernel_sigaction *oldact) { diff --git a/gperftools.changes b/gperftools.changes index d918f11..3e4b14e 100644 --- a/gperftools.changes +++ b/gperftools.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Mar 26 00:35:41 CEST 2018 - ro@suse.de + +- add patch gperftools-aarch64.patch (bsc#1086762) + (analog upstream commit 02eeed29df112728564a5dde6417fa4622b57a06) + fix build on aarch64 by removing conflicting mmap definition + ------------------------------------------------------------------- Thu Mar 15 01:43:38 CET 2018 - ro@suse.de diff --git a/gperftools.spec b/gperftools.spec index c3380a8..3e91df3 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -28,6 +28,7 @@ Patch1: %{name}_fix_unassigned_malloc_in_unittest.patch Patch2: %{name}_gcc46.patch Patch3: ucontext.patch Patch4: gperftools-s390.patch +Patch5: gperftools-aarch64.patch BuildRequires: autoconf >= 2.59 BuildRequires: automake BuildRequires: gcc-c++ @@ -83,6 +84,7 @@ files for developing applications that use the gperftools package. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build autoreconf -fi