diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-12-21 00:41:04 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-12-21 01:09:37 -0800 |
commit | cbf6e5c6d762773f4e38dbf9def8e35b015c7f52 (patch) | |
tree | aeb6df241c107e9bd068bc3690eb5c5c55511c27 /dev-util/google-perftools/files | |
parent | dev-qt/qtgui: Block known old users of _populate_Gui_plugin_properties (diff) | |
download | gentoo-cbf6e5c6d762773f4e38dbf9def8e35b015c7f52.tar.gz gentoo-cbf6e5c6d762773f4e38dbf9def8e35b015c7f52.tar.bz2 gentoo-cbf6e5c6d762773f4e38dbf9def8e35b015c7f52.zip |
dev-util/google-perftools: revbump 2.7, fix ppc64le bugs
it was not building libprofiler on ppc64le
..Could not find the PC. Will not try to compile libprofiler..."
add debian patch, now it builds fine
..checking how to access the program counter from a struct ucontext...
uc_mcontext.gp_regs[PT_NIP]
also on ppc64 it does not link to libunwind, make dep optional
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-util/google-perftools/files')
-rw-r--r-- | dev-util/google-perftools/files/fix_ppc64el_FTBFS.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-util/google-perftools/files/fix_ppc64el_FTBFS.patch b/dev-util/google-perftools/files/fix_ppc64el_FTBFS.patch new file mode 100644 index 000000000000..84f28e1eefe8 --- /dev/null +++ b/dev-util/google-perftools/files/fix_ppc64el_FTBFS.patch @@ -0,0 +1,31 @@ +Description: ucontext constants in ptrace.h on ppc64el + Needs to include the mentioned header for ucontext. +Author: Laszlo Boszormenyi (GCS) <gcs@debian.org> +Bug-Debian: https://bugs.debian.org/894749 +Forwarded: no +Last-Update: 2018-05-06 + +--- + +--- google-perftools-2.7.orig/m4/pc_from_ucontext.m4 ++++ google-perftools-2.7/m4/pc_from_ucontext.m4 +@@ -55,7 +55,8 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT], + pc_field_found=true) + elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then + AC_TRY_COMPILE([#define _GNU_SOURCE 1 +- #include <sys/ucontext.h>], ++ #include <sys/ucontext.h>, ++ #include <asm/ptrace.h>], + [ucontext_t u; return u.$pc_field == 0;], + AC_DEFINE_UNQUOTED(PC_FROM_UCONTEXT, $pc_field, + How to access the PC from a struct ucontext) +--- google-perftools-2.7.orig/src/getpc.h ++++ google-perftools-2.7/src/getpc.h +@@ -58,6 +58,7 @@ + #include <string.h> // for memcmp + #if defined(HAVE_SYS_UCONTEXT_H) + #include <sys/ucontext.h> ++#include <asm/ptrace.h> + #elif defined(HAVE_UCONTEXT_H) + #include <ucontext.h> // for ucontext_t (and also mcontext_t) + #elif defined(HAVE_CYGWIN_SIGNAL_H) |