mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
sysprof: Fix build with llvm libunwind
Update status of the patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
From a3316e607db2a64e030df8551455c5700b5ddfcf Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 25 Jul 2024 20:18:17 -0700
|
||||
Subject: [PATCH] libsysprof: Check for unw_set_caching_policy before using
|
||||
|
||||
llvm libunwind does not implement unw_cache_* functions yet
|
||||
|
||||
Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/sysprof/-/merge_requests/95]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/libsysprof/preload/backtrace-helper.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/libsysprof/preload/backtrace-helper.h b/src/libsysprof/preload/backtrace-helper.h
|
||||
index 88dc194..5c23ad3 100644
|
||||
--- a/src/libsysprof/preload/backtrace-helper.h
|
||||
+++ b/src/libsysprof/preload/backtrace-helper.h
|
||||
@@ -32,7 +32,9 @@ static void
|
||||
backtrace_init (void)
|
||||
{
|
||||
#ifdef ENABLE_LIBUNWIND
|
||||
+# ifdef UNW_CACHE_PER_THREAD
|
||||
unw_set_caching_policy (unw_local_addr_space, UNW_CACHE_PER_THREAD);
|
||||
+# endif
|
||||
# ifdef HAVE_UNW_SET_CACHE_SIZE
|
||||
unw_set_cache_size (unw_local_addr_space, 1024, 0);
|
||||
#endif
|
||||
+1
-1
@@ -6,7 +6,7 @@ Subject: [PATCH] meson: Check for libunwind instead of libunwind-generic
|
||||
This helps it to use llvm unwinder since libunwind-generic is specific
|
||||
to nongnu libunwind.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/sysprof/-/merge_requests/95]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
meson.build | 2 +-
|
||||
|
||||
@@ -15,7 +15,9 @@ DEPENDS += " \
|
||||
"
|
||||
|
||||
SRC_URI += "file://0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch \
|
||||
file://0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch "
|
||||
file://0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch \
|
||||
file://0001-libsysprof-Check-for-unw_set_caching_policy-before-u.patch \
|
||||
"
|
||||
SRC_URI[archive.sha256sum] = "07d9081a66cf2fb52753f48ff2b85ada75c60ff1bc1af1bd14d8aeb627972168"
|
||||
|
||||
PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'sysprofd', '', d)} \
|
||||
|
||||
Reference in New Issue
Block a user