summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/gperftools
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2018-06-27 02:49:15 -0700
committerKhem Raj <raj.khem@gmail.com>2018-06-27 22:17:33 -0700
commitb2bd3b08d61ce9a4acdcbf9f53712b60133958c9 (patch)
tree515e4d8ef00ac380b3a5d521cf812445b8015ab4 /meta-oe/recipes-support/gperftools
parent79024b523429d8d0e8c6b65acbf924c49a2729c7 (diff)
downloadmeta-openembedded-b2bd3b08d61ce9a4acdcbf9f53712b60133958c9.tar.gz
gperftools: Upgrade to 2.7
* Update gperftools to 2.7 * Remove two backported patches: 0001-Use-ucontext_t-instead-of-struct-ucontext.patch 0001-include-fcntl.h-for-loff_t-definition.patch * Rework the patch 0001-fix-build-with-musl-libc.patch Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gperftools')
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch34
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch8
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch26
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools_2.7.bb (renamed from meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb)4
4 files changed, 5 insertions, 67 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch
deleted file mode 100644
index b3033621b..000000000
--- a/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 230cd84486145c5bb1d69d4c9a544e00adbcc9b5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 1 Jul 2017 13:21:21 -0700
4Subject: [PATCH] Use ucontext_t instead of struct ucontext
5
6Newer glibc has dropped the ucontext tag from exposing
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10---
11 src/stacktrace_powerpc-linux-inl.h | 3 +--
12 1 file changed, 1 insertion(+), 2 deletions(-)
13
14diff --git a/src/stacktrace_powerpc-linux-inl.h b/src/stacktrace_powerpc-linux-inl.h
15index 3b3843b..a301a46 100644
16--- a/src/stacktrace_powerpc-linux-inl.h
17+++ b/src/stacktrace_powerpc-linux-inl.h
18@@ -53,7 +53,6 @@
19 #elif defined(HAVE_UCONTEXT_H)
20 #include <ucontext.h> // for ucontext_t
21 #endif
22-typedef ucontext ucontext_t;
23
24 // PowerPC64 Little Endian follows BE wrt. backchain, condition register,
25 // and LR save area, so no need to adjust the reading struct.
26@@ -202,7 +201,7 @@ static int GET_STACK_TRACE_OR_FRAMES {
27 struct rt_signal_frame_32 {
28 char dummy[64 + 16];
29 siginfo_t info;
30- struct ucontext uc;
31+ ucontext_t uc;
32 // We don't care about the rest, since IP value is at 'uc' field.A
33 } *sigframe = reinterpret_cast<rt_signal_frame_32*>(current);
34 result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP];
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch
index 0a72ff27c..49d5c2167 100644
--- a/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch
+++ b/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch
@@ -1,4 +1,4 @@
1From 034e7da08c3fbffcba8cf8d4e24a71a16558db5a Mon Sep 17 00:00:00 2001 1From 696674a800cb6d2070897a565b92d7e63022a8f1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 16 Jul 2017 15:51:28 -0700 3Date: Sun, 16 Jul 2017 15:51:28 -0700
4Subject: [PATCH] fix build with musl libc 4Subject: [PATCH] fix build with musl libc
@@ -13,7 +13,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 2 files changed, 7 insertions(+), 2 deletions(-) 13 2 files changed, 7 insertions(+), 2 deletions(-)
14 14
15diff --git a/configure.ac b/configure.ac 15diff --git a/configure.ac b/configure.ac
16index b42fea3..70b49a3 100644 16index 497103e..f9efc3e 100644
17--- a/configure.ac 17--- a/configure.ac
18+++ b/configure.ac 18+++ b/configure.ac
19@@ -188,6 +188,7 @@ AC_HEADER_STDC 19@@ -188,6 +188,7 @@ AC_HEADER_STDC
@@ -25,7 +25,7 @@ index b42fea3..70b49a3 100644
25 AC_CHECK_FUNCS(geteuid) # for turning off services when run as root 25 AC_CHECK_FUNCS(geteuid) # for turning off services when run as root
26 AC_CHECK_FUNCS(fork) # for the pthread_atfork setup 26 AC_CHECK_FUNCS(fork) # for the pthread_atfork setup
27diff --git a/src/malloc_hook_mmap_linux.h b/src/malloc_hook_mmap_linux.h 27diff --git a/src/malloc_hook_mmap_linux.h b/src/malloc_hook_mmap_linux.h
28index 79ac4e3..d444635 100755 28index 2f6116f..0605855 100755
29--- a/src/malloc_hook_mmap_linux.h 29--- a/src/malloc_hook_mmap_linux.h
30+++ b/src/malloc_hook_mmap_linux.h 30+++ b/src/malloc_hook_mmap_linux.h
31@@ -46,6 +46,10 @@ 31@@ -46,6 +46,10 @@
@@ -55,5 +55,5 @@ index 79ac4e3..d444635 100755
55-#ifndef __UCLIBC__ 55-#ifndef __UCLIBC__
56+#if HAVE___SBRK 56+#if HAVE___SBRK
57 // libc's version: 57 // libc's version:
58 extern "C" void* __sbrk(ptrdiff_t increment); 58 extern "C" void* __sbrk(intptr_t increment);
59 59
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch
deleted file mode 100644
index 4c63e73b3..000000000
--- a/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From a16a73f0819d26219ee83cd98eea82786d7c1755 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 16 Jul 2017 19:28:17 -0700
4Subject: [PATCH] include fcntl.h for loff_t definition
5
6Fixes
7linux_syscall_support.h:2641:26: error: 'loff_t' has not been declared
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11---
12 src/base/linux_syscall_support.h | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h
16index 85347a2..70431ca 100644
17--- a/src/base/linux_syscall_support.h
18+++ b/src/base/linux_syscall_support.h
19@@ -162,6 +162,7 @@ extern "C" {
20 #include <unistd.h>
21 #include <linux/unistd.h>
22 #include <endian.h>
23+#include <fcntl.h>
24
25 #ifdef __mips__
26 /* Include definitions of the ABI currently in use. */
diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
index e475663f2..e9fcc4cc9 100644
--- a/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb
+++ b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
@@ -4,12 +4,10 @@ LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=762732742c73dc6c7fbe8632f06c059a" 4LIC_FILES_CHKSUM = "file://COPYING;md5=762732742c73dc6c7fbe8632f06c059a"
5DEPENDS += "libunwind" 5DEPENDS += "libunwind"
6 6
7SRCREV = "bf840dec0495e17f5c8403e68e10b9d6bf05c559" 7SRCREV = "9608fa3bcf8020d35f59fbf70cd3cbe4b015b972"
8SRC_URI = "git://github.com/gperftools/gperftools \ 8SRC_URI = "git://github.com/gperftools/gperftools \
9 file://0001-Support-Atomic-ops-on-clang.patch \ 9 file://0001-Support-Atomic-ops-on-clang.patch \
10 file://0001-Use-ucontext_t-instead-of-struct-ucontext.patch \
11 file://0001-fix-build-with-musl-libc.patch \ 10 file://0001-fix-build-with-musl-libc.patch \
12 file://0001-include-fcntl.h-for-loff_t-definition.patch \
13 file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \ 11 file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \
14 file://disable_libunwind_aarch64.patch \ 12 file://disable_libunwind_aarch64.patch \
15 file://sgidef.patch \ 13 file://sgidef.patch \