From 036c98a306cfe12b818f7339a00bb7e0c3076e2f Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 3 Mar 2018 13:00:16 +0100 Subject: [PATCH] Backport a patch to fix the build on 32 bit arches --- ...sysprofd-remove-lingering-debug-code.patch | 28 +++++++++++++++++++ sysprof.spec | 5 +++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-sysprofd-remove-lingering-debug-code.patch diff --git a/0001-sysprofd-remove-lingering-debug-code.patch b/0001-sysprofd-remove-lingering-debug-code.patch new file mode 100644 index 0000000..eda47dd --- /dev/null +++ b/0001-sysprofd-remove-lingering-debug-code.patch @@ -0,0 +1,28 @@ +From d31b4bc1789dc327fd5dcd6a720512e24f0e2eb8 Mon Sep 17 00:00:00 2001 +From: Christian Hergert +Date: Wed, 21 Feb 2018 11:50:40 -0800 +Subject: [PATCH] sysprofd: remove lingering debug code + +https://bugzilla.gnome.org/show_bug.cgi?id=793698 +--- + daemon/sysprofd.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/daemon/sysprofd.c b/daemon/sysprofd.c +index 7536bcc27c54..60d619ed3219 100644 +--- a/daemon/sysprofd.c ++++ b/daemon/sysprofd.c +@@ -93,10 +93,7 @@ sysprofd_get_kernel_symbols (sd_bus_message *msg, + return r; + + while (sp_kallsyms_next (kallsyms, &name, &addr, &type)) +- { +- g_print ("%s: %lu\n", name, addr); + sd_bus_message_append (reply, "(tys)", addr, type, name); +- } + + r = sd_bus_message_close_container (reply); + if (r < 0) +-- +2.16.2 + diff --git a/sysprof.spec b/sysprof.spec index dd8b099..34aac9d 100644 --- a/sysprof.spec +++ b/sysprof.spec @@ -7,6 +7,9 @@ License: GPLv3+ URL: http://www.sysprof.com Source0: https://download.gnome.org/sources/sysprof/3.27/sysprof-%{version}.tar.xz +# Backported from upstream +Patch0: 0001-sysprofd-remove-lingering-debug-code.patch + BuildRequires: binutils-devel BuildRequires: gettext BuildRequires: gtk3-devel @@ -51,7 +54,7 @@ developing applications that use %{name}. %prep -%setup -q +%autosetup -p1 %build