diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-04-13 08:51:11 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-04-13 19:21:41 -0700 |
| commit | 1a2c65884334db586c959bace69f6dc094ce2cab (patch) | |
| tree | 5502e45fb7aadc15f94afbd780abaa21d3ea31e0 | |
| parent | 6892fc010ab916886d7c75c121a2ad0866c9d39a (diff) | |
| download | meta-openembedded-1a2c65884334db586c959bace69f6dc094ce2cab.tar.gz | |
sysprof: Fix build to work with llvm libunwind
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andreas Müller <schnitzeltony@gmail.com>
| -rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch | 30 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof_3.44.0.bb | 2 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch b/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch new file mode 100644 index 0000000000..dc702a0e37 --- /dev/null +++ b/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 19188367bee87b0084ab34869455155da5cb1731 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 13 Apr 2022 08:47:39 -0700 | ||
| 4 | Subject: [PATCH] meson: Check for libunwind instead of libunwind-generic | ||
| 5 | |||
| 6 | This helps it to use llvm unwinder since libunwind-generic is specific | ||
| 7 | to nongnu libunwind. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | meson.build | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/meson.build b/meson.build | ||
| 16 | index 2835782..0fdb39a 100644 | ||
| 17 | --- a/meson.build | ||
| 18 | +++ b/meson.build | ||
| 19 | @@ -81,7 +81,7 @@ config_h.set10('HAVE_POLKIT_AGENT', polkit_agent_dep.found()) | ||
| 20 | config_h.set10('HAVE_POLKIT', polkit_dep.found()) | ||
| 21 | |||
| 22 | if get_option('libunwind') | ||
| 23 | - libunwind_dep = dependency('libunwind-generic') | ||
| 24 | + libunwind_dep = dependency('libunwind') | ||
| 25 | config_h.set('ENABLE_LIBUNWIND', libunwind_dep.found()) | ||
| 26 | config_h.set('HAVE_UNW_SET_CACHE_SIZE', libunwind_dep.found() and cc.has_header_symbol('libunwind.h', 'unw_set_cache_size', dependencies: [libunwind_dep])) | ||
| 27 | endif | ||
| 28 | -- | ||
| 29 | 2.35.2 | ||
| 30 | |||
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof_3.44.0.bb b/meta-gnome/recipes-gnome/sysprof/sysprof_3.44.0.bb index 351354dbca..3606ca9707 100644 --- a/meta-gnome/recipes-gnome/sysprof/sysprof_3.44.0.bb +++ b/meta-gnome/recipes-gnome/sysprof/sysprof_3.44.0.bb | |||
| @@ -15,7 +15,7 @@ DEPENDS += " \ | |||
| 15 | json-glib \ | 15 | json-glib \ |
| 16 | libunwind \ | 16 | libunwind \ |
| 17 | " | 17 | " |
| 18 | 18 | SRC_URI += "file://0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch" | |
| 19 | SRC_URI[archive.sha256sum] = "ab5d9f5b71973b3088d58a1bfdf1dc23c39a02f5fce4e5e9c73e034b178b005b" | 19 | SRC_URI[archive.sha256sum] = "ab5d9f5b71973b3088d58a1bfdf1dc23c39a02f5fce4e5e9c73e034b178b005b" |
| 20 | 20 | ||
| 21 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'sysprofd libsysprof', '', d)} \ | 21 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'sysprofd libsysprof', '', d)} \ |
