diff options
| -rw-r--r-- | meta-gnome/recipes-gnome/libgtop/libgtop/0001-Pass-correct-parameter.patch | 29 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/libgtop/libgtop_2.40.0.bb | 4 |
2 files changed, 32 insertions, 1 deletions
diff --git a/meta-gnome/recipes-gnome/libgtop/libgtop/0001-Pass-correct-parameter.patch b/meta-gnome/recipes-gnome/libgtop/libgtop/0001-Pass-correct-parameter.patch new file mode 100644 index 0000000000..5ea8eed516 --- /dev/null +++ b/meta-gnome/recipes-gnome/libgtop/libgtop/0001-Pass-correct-parameter.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From e969ac59335d3fb1cd228f8e7c4f6c2dda4fa536 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Avinash Sonawane <rootkea@gmail.com> | ||
| 3 | Date: Mon, 20 Dec 2021 13:33:42 +0530 | ||
| 4 | Subject: [PATCH] Pass correct parameter | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libgtop/-/merge_requests/35] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | src/daemon/main.c | 3 ++- | ||
| 10 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/src/daemon/main.c b/src/daemon/main.c | ||
| 13 | index b51addf..eaee3b3 100644 | ||
| 14 | --- a/src/daemon/main.c | ||
| 15 | +++ b/src/daemon/main.c | ||
| 16 | @@ -222,8 +222,9 @@ handle_parent_connection (int s) | ||
| 17 | 0, NULL); | ||
| 18 | break; | ||
| 19 | case GLIBTOP_CMND_PROC_IO: | ||
| 20 | + memcpy (&pid, parameter, sizeof (pid_t)); | ||
| 21 | glibtop_get_proc_io_l | ||
| 22 | - (server, &resp->u.data.proc_io, parameter); | ||
| 23 | + (server, &resp->u.data.proc_io, pid); | ||
| 24 | do_output (s, resp, _offset_data (proc_io), | ||
| 25 | 0, NULL); | ||
| 26 | break; | ||
| 27 | -- | ||
| 28 | 2.37.2 | ||
| 29 | |||
diff --git a/meta-gnome/recipes-gnome/libgtop/libgtop_2.40.0.bb b/meta-gnome/recipes-gnome/libgtop/libgtop_2.40.0.bb index 2e60264e04..fa95e0bee0 100644 --- a/meta-gnome/recipes-gnome/libgtop/libgtop_2.40.0.bb +++ b/meta-gnome/recipes-gnome/libgtop/libgtop_2.40.0.bb | |||
| @@ -6,7 +6,9 @@ inherit gnomebase lib_package gtk-doc gobject-introspection gettext upstream-ver | |||
| 6 | 6 | ||
| 7 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | 7 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://0001-fix-compile-error-for-cross-compile.patch" | 9 | SRC_URI += "file://0001-fix-compile-error-for-cross-compile.patch \ |
| 10 | file://0001-Pass-correct-parameter.patch \ | ||
| 11 | " | ||
| 10 | 12 | ||
| 11 | SRC_URI[archive.sha256sum] = "78f3274c0c79c434c03655c1b35edf7b95ec0421430897fb1345a98a265ed2d4" | 13 | SRC_URI[archive.sha256sum] = "78f3274c0c79c434c03655c1b35edf7b95ec0421430897fb1345a98a265ed2d4" |
| 12 | 14 | ||
