there is no ucontext on ppc64 in rawhide, only ucontext_t

This commit is contained in:
Tom Callaway 2017-07-17 15:59:35 -04:00
parent f12167f3fe
commit b808a24876
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff -up gperftools-2.6.1/src/stacktrace_powerpc-linux-inl.h.ucontextfix gperftools-2.6.1/src/stacktrace_powerpc-linux-inl.h
--- gperftools-2.6.1/src/stacktrace_powerpc-linux-inl.h.ucontextfix 2017-07-17 15:57:42.066001611 -0400
+++ gperftools-2.6.1/src/stacktrace_powerpc-linux-inl.h 2017-07-17 15:58:04.610427563 -0400
@@ -53,7 +53,8 @@
#elif defined(HAVE_UCONTEXT_H)
#include <ucontext.h> // for ucontext_t
#endif
-typedef ucontext ucontext_t;
+// no ucontext typedef on ppc64
+// typedef ucontext ucontext_t;
// PowerPC64 Little Endian follows BE wrt. backchain, condition register,
// and LR save area, so no need to adjust the reading struct.

View File

@ -10,6 +10,8 @@ Group: Development/Tools
Summary: Very fast malloc and performance analysis tools
URL: https://github.com/gperftools/gperftools
Source0: https://github.com/gperftools/gperftools/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
# There is no ucontext typedef on ppc64, at least not in rawhide.
Patch0: gperftools-2.6.1-ppc64-ucontext-fix.patch
ExcludeArch: s390
%ifnarch s390x
@ -58,6 +60,7 @@ Pprof is a heap and CPU profiler tool, part of the gperftools suite.
%prep
%setup -q
%patch0 -p1 -b .ucontextfix
# Fix end-of-line encoding
sed -i 's/\r//' README_windows.txt