Skip to contentSkip to conversation

sysprof: upgrade 48.0 -> 48.1

PATCH Superseded Pablo Saavedra 2 participants 4 messages Sep 3, 2025 – Sep 4, 2025 1 message not in the archive Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysprof: upgrade 48.0 -> 48.1

Changes:

* libsysprof-capture: Clean ring buffer memory for counters

Also:

* Make PolKit usage a build-time option
* sysprofd: Check that remote user is root when PolKit is disabled
* Make elf loader search for debug links in .debug dirs

---
 ...libunwind-instead-of-libunwind-gener.patch |   8 +-
 ...oke-the-commands-to-update-the-icon-.patch |   6 +-
 ...-for-unw_set_caching_policy-before-u.patch |   2 +-
 ...ake-PolKit-usage-a-build-time-option.patch | 154 ++++++++++++++++++
 ...hat-remote-user-is-root-when-PolKit-.patch |  81 +++++++++
 ...search-for-debug-links-in-.debug-dir.patch |  47 ++++++
 .../{sysprof_48.0.bb => sysprof_48.1.bb}      |   5 +-
 7 files changed, 294 insertions(+), 9 deletions(-)
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-PolKit-usage-a-build-time-option.patch
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0006-sysprofd-Check-that-remote-user-is-root-when-PolKit-.patch
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0007-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch
 rename meta-gnome/recipes-gnome/sysprof/{sysprof_48.0.bb => sysprof_48.1.bb} (85%)
meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch +4 -4
index 5bdc55b3a5..3d78e188b5 100644
@@ -1,4 +1,4 @@
-From 36fbd12df9258972f8ff1fbb24506f12751178eb Mon Sep 17 00:00:00 2001
+From 3d547c043f772fe1352c7beb0e3331e35c77e63e Mon Sep 17 00:00:00 2001
 From: Pablo Saavedra <[email protected]>
 Date: Mon, 11 Nov 2024 13:05:15 +0100
 Subject: [PATCH] meson: Check for libunwind instead of libunwind-generic
@@ -18,11 +18,11 @@ Signed-off-by: Pablo Saavedra <[email protected]>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/meson.build b/meson.build
-index 23fcea8..3d3feca 100644
+index 3907354..783f558 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -110,7 +110,7 @@ polkit_dep = dependency('polkit-gobject-1', version: polkit_req_version, require
- config_h.set10('HAVE_POLKIT', polkit_dep.found())
+@@ -114,7 +114,7 @@ if cc.has_header('asm/perf_regs.h')
+ endif
  
  if need_libsysprof
 -  libunwind_dep = dependency('libunwind-generic', required: true)
meta-gnome/recipes-gnome/sysprof/sysprof/0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch +3 -3
index 6ed04eefac..61c75f08b4 100644
@@ -1,4 +1,4 @@
-From ef2cb850bc24d57ddf3641cb1ba202a657422c66 Mon Sep 17 00:00:00 2001
+From 58619c59e72c796aa2686bc6ffbfa07a23dbc14d Mon Sep 17 00:00:00 2001
 From: Carlos Alberto Lopez Perez <[email protected]>
 Date: Wed, 24 Jul 2024 15:51:05 +0100
 Subject: [PATCH] meson: Do not invoke the commands to update the icon caches
@@ -15,10 +15,10 @@ Signed-off-by: Carlos Alberto Lopez Perez <[email protected]>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/meson.build b/meson.build
-index 3d3feca..8da9b5f 100644
+index 783f558..8775fe6 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -272,7 +272,7 @@ configure_file(
+@@ -276,7 +276,7 @@ configure_file(
    configuration: config_h
  )
  
meta-gnome/recipes-gnome/sysprof/sysprof/0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch +1 -1
index 60592bde4f..0f3703457d 100644
@@ -1,4 +1,4 @@
-From 5a2b4cdbc7f0a329245066c849592fe310bdefd7 Mon Sep 17 00:00:00 2001
+From 219920476d7b23370bfb456ee4ac1cf9b21479c6 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Thu, 25 Jul 2024 20:18:17 -0700
 Subject: [PATCH] libsysprof: Check for unw_set_caching_policy before using
meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-PolKit-usage-a-build-time-option.patch new file +154 -0

154 lines not on this page · raw message

meta-gnome/recipes-gnome/sysprof/sysprof/0006-sysprofd-Check-that-remote-user-is-root-when-PolKit-.patch new file +81 -0

81 lines not on this page · raw message

meta-gnome/recipes-gnome/sysprof/sysprof/0007-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch new file +47 -0

47 lines not on this page · raw message

meta-gnome/recipes-gnome/sysprof/sysprof_48.1.bb renamed from meta-gnome/recipes-gnome/sysprof/sysprof_48.0.bb +4 -1
similarity index 85%
rename from meta-gnome/recipes-gnome/sysprof/sysprof_48.0.bb
rename to meta-gnome/recipes-gnome/sysprof/sysprof_48.1.bb
index 968b5d8e14..756ff4b5e0 100644
@@ -21,8 +21,11 @@ SRC_URI += "file://0001-meson-Check-for-libunwind-instead-of-libunwind-gener.pat
            file://0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch \
            file://0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch \
            file://0004-sysprof-greeter-fix-environ-with-shadowing.patch \
+           file://0005-Make-PolKit-usage-a-build-time-option.patch \
+           file://0006-sysprofd-Check-that-remote-user-is-root-when-PolKit-.patch \
+           file://0007-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch \
            "
-SRC_URI[archive.sha256sum] = "1b0f0380f2f30708ba87829321a06fee1db36dfa87797bbf07f0a7acf4498d18"
+SRC_URI[archive.sha256sum] = "54f157fdfef1edf1e2f22e542c462d90e1c21fca8c30eba4127cee739039bbe2"
 
 # reason: gtk4 requires opengl distro feature
 REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk', 'opengl', '', d)}"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 12 lines · Pablo Saavedra Rodiño via lists.openembedded.org

Changes:

* libsysprof-capture: Clean ring buffer memory for counters

Also:

* Make PolKit usage a build-time option
* sysprofd: Check that remote user is root when PolKit is disabled
* Make elf loader search for debug links in .debug dirs

Quoted 12 lines
---
 ...libunwind-instead-of-libunwind-gener.patch |   8 +-
 ...oke-the-commands-to-update-the-icon-.patch |   6 +-
 ...-for-unw_set_caching_policy-before-u.patch |   2 +-
 ...ake-PolKit-usage-a-build-time-option.patch | 154 ++++++++++++++++++
 ...hat-remote-user-is-root-when-PolKit-.patch |  81 +++++++++
 ...search-for-debug-links-in-.debug-dir.patch |  47 ++++++
 .../{sysprof_48.0.bb => sysprof_48.1.bb}      |   5 +-
 7 files changed, 294 insertions(+), 9 deletions(-)
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-PolKit-usage-a-build-time-option.patch
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0006-sysprofd-Check-that-remote-user-is-root-when-PolKit-.patch
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0007-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch

The patch statuses look incorrect. 0005 and 0006 seem to be "Denied" (while it seems upstream isn't against the idea, it looks the don't like the implementation), and 0007 is "Backport".

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 25 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 12 lines · Pablo Saavedra Rodiño via lists.openembedded.org

Changes:

* libsysprof-capture: Clean ring buffer memory for counters

Also:

* Make PolKit usage a build-time option
* sysprofd: Check that remote user is root when PolKit is disabled
* Make elf loader search for debug links in .debug dirs

Quoted 12 lines
---
 ...libunwind-instead-of-libunwind-gener.patch |   8 +-
 ...oke-the-commands-to-update-the-icon-.patch |   6 +-
 ...-for-unw_set_caching_policy-before-u.patch |   2 +-
 ...ake-PolKit-usage-a-build-time-option.patch | 154 ++++++++++++++++++
 ...hat-remote-user-is-root-when-PolKit-.patch |  81 +++++++++
 ...search-for-debug-links-in-.debug-dir.patch |  47 ++++++
 .../{sysprof_48.0.bb => sysprof_48.1.bb}      |   5 +-
 7 files changed, 294 insertions(+), 9 deletions(-)
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-PolKit-usage-a-build-time-option.patch
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0006-sysprofd-Check-that-remote-user-is-root-when-PolKit-.patch
 create mode 100644 meta-gnome/recipes-gnome/sysprof/sysprof/0007-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch
Quoted 4 lines

The patch statuses look incorrect. 0005 and 0006 seem to be "Denied" (while it seems upstream isn't against the idea, it looks the don't like the implementation), and 0007 is "Backport".

Actually re-reading that conversation for the patches 0005 and 0006... does this work at runtime as it should, at least in OE?
The maintainer does raise some concerns about some credential call always returning NULL, which sounds scary, though at this moment it's a bit over my head, gotta admit.

#4 lore raw

Thanks for the review and sorry for send it with a better verification of the status of the patches.

For 0005 and 0006 I asked for some updates about why this feature is needed and if we can iterate over this to get it ready if that is the case.

I will send a v2 of the patches ASAP.

Quoted 59 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 33 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 22 lines · Pablo Saavedra Rodiño via lists.openembedded.org

Changes:

* libsysprof-capture: Clean ring buffer memory for counters

Also:

* Make PolKit usage a build-time option
* sysprofd: Check that remote user is root when PolKit is disabled
* Make elf loader search for debug links in .debug dirs

---

 ...libunwind-instead-of-libunwind-gener.patch |   8 +-
 ...oke-the-commands-to-update-the-icon-.patch |   6 +-
 ...-for-unw_set_caching_policy-before-u.patch |   2 +-
 ...ake-PolKit-usage-a-build-time-option.patch | 154

++++++++++++++++++
 ...hat-remote-user-is-root-when-PolKit-.patch |  81 +++++++++ ...search-for-debug-links-in-.debug-dir.patch |  47 ++++++ .../{sysprof_48.0.bb => sysprof_48.1.bb}      |   5 +-

 7 files changed, 294 insertions(+), 9 deletions(-)
Quoted 9 lines

 create mode 100644 meta-gnome/recipes- gnome/sysprof/sysprof/0005-Make-PolKit-usage-a-build-time- option.patch
 create mode 100644 meta-gnome/recipes- gnome/sysprof/sysprof/0006-sysprofd-Check-that-remote-user-is- root-when-PolKit-.patch
 create mode 100644 meta-gnome/recipes- gnome/sysprof/sysprof/0007-Make-elf-loader-search-for-debug- links-in-.debug-dir.patch

Quoted 6 lines

The patch statuses look incorrect. 0005 and 0006 seem to be "Denied"
(while it seems upstream isn't against the idea, it looks the don't like
the implementation), and 0007 is "Backport".

Actually re-reading that conversation for the patches 0005 and 0006...
does this work at runtime as it should, at least in OE? The maintainer does raise some concerns about some credential call always returning NULL, which sounds scary, though at this moment it's a
bit over my head, gotta admit.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#119262):
https://lists.openembedded.org/g/openembedded-devel/message/119262
Mute This Topic: https://lists.openembedded.org/mt/115048000/3619072
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-