Date: Friday, October 7, 2022 @ 18:03:43
  Author: heftig
Revision: 457335

3.46.0-1

Added:
  sysprof/trunk/0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch
Modified:
  sysprof/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch |   26 
++++++++++
 PKGBUILD                                                        |   17 ++++--
 2 files changed, 37 insertions(+), 6 deletions(-)

Added: 0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch
===================================================================
--- 0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch             
                (rev 0)
+++ 0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch     
2022-10-07 18:03:43 UTC (rev 457335)
@@ -0,0 +1,26 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <[email protected]>
+Date: Fri, 7 Oct 2022 17:48:48 +0000
+Subject: [PATCH] libsysprof: Actually set spawnable flags to inherit stdin
+
+The code calculated flags but never actually set them on the spawnable,
+so the `inherit-stdin` property did not work.
+
+Fixes: 8799d2f0ca4a6f939e808443db14b266b2142a7f
+See: https://gitlab.gnome.org/GNOME/sysprof/-/issues/76#note_1531919
+---
+ src/libsysprof/sysprof-local-profiler.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/libsysprof/sysprof-local-profiler.c 
b/src/libsysprof/sysprof-local-profiler.c
+index 9b77de305360..59b4aba26e63 100644
+--- a/src/libsysprof/sysprof-local-profiler.c
++++ b/src/libsysprof/sysprof-local-profiler.c
+@@ -666,6 +666,7 @@ sysprof_local_profiler_start_after_auth 
(SysprofLocalProfiler *self)
+ 
+       g_ptr_array_add (env, NULL);
+ 
++      sysprof_spawnable_set_flags (spawnable, flags);
+       sysprof_spawnable_set_environ (spawnable, (const gchar * const 
*)env->pdata);
+       sysprof_spawnable_append_args (spawnable, (const gchar * const 
*)priv->spawn_argv);
+ 

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-07 18:01:10 UTC (rev 457334)
+++ PKGBUILD    2022-10-07 18:03:43 UTC (rev 457335)
@@ -7,18 +7,20 @@
 
 pkgbase=sysprof
 pkgname=(sysprof libsysprof-capture)
-pkgver=3.44.0
-pkgrel=2
+pkgver=3.46.0
+pkgrel=1
 pkgdesc="Kernel based performance profiler"
 url="https://wiki.gnome.org/Apps/Sysprof";
 license=(GPL)
 arch=(x86_64)
-depends=(gtk3 polkit libdazzle)
+depends=(libadwaita polkit)
 makedepends=(yelp-tools git meson)
 options=(debug)
-_commit=7d44e2db75941e5eef0c67fae3c0ce0cbd176dc6  # tags/3.44.0^0
-source=("git+https://gitlab.gnome.org/GNOME/sysprof.git#commit=$_commit";)
-sha256sums=('SKIP')
+_commit=d2b678d1d558d4ea7ec3de72a79f5a17cf5c2c2f  # tags/3.46.0^0
+source=("git+https://gitlab.gnome.org/GNOME/sysprof.git#commit=$_commit";
+        0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch)
+sha256sums=('SKIP'
+            'd772d116eb1e49a2aeefb22d1474314d84a07900cb2eaf449ce8cb3e75ebd8f1')
 
 pkgver() {
   cd sysprof
@@ -27,6 +29,9 @@
 
 prepare() {
   cd sysprof
+
+  # https://gitlab.gnome.org/GNOME/sysprof/-/merge_requests/55
+  git apply -3 
../0001-libsysprof-Actually-set-spawnable-flags-to-inherit-s.patch
 }
 
 build() {

Reply via email to