Fix broken problem details in abrt-cli/gnome-abrt

This commit is contained in:
Jakub Filak 2015-10-28 00:34:04 +01:00
parent 52400fcf42
commit 820caf519c
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 7fe8403abed51dc951aa497bf149c19d61a19555 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 28 Oct 2015 00:21:12 +0100
Subject: [PATCH] dbus: ensure expected bytes width of DBus numbers
t - UINT64 - guint64 (unsigned long is not wide enough on 32bit architectures)
Resolves: rhbz#1256456
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/dbus/abrt-dbus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dbus/abrt-dbus.c b/src/dbus/abrt-dbus.c
index 44778a2..500ddb2 100644
--- a/src/dbus/abrt-dbus.c
+++ b/src/dbus/abrt-dbus.c
@@ -625,8 +625,8 @@ static void handle_method_call(GDBusConnection *connection,
g_variant_builder_add(response_builder, "{s(its)}",
element_name,
- element_info->flags,
- size,
+ (gint32)element_info->flags,
+ (guint64)size,
element_info->content);
}
--
2.5.0

View File

@ -49,7 +49,7 @@
Summary: Automatic bug detection and reporting tool
Name: abrt
Version: 2.7.0
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://abrt.readthedocs.org/
@ -59,6 +59,7 @@ Patch0: disable-OpenGPGCheck-in-Fedora-Rawhide.patch
# git format-patch %%{Version} --topo-order -N -M;
# i=1; for p in `ls 0*.patch`; do printf "Patch%04d: %s\n" $i $p; ((i++)); done
Patch0012: 0012-dbus-ensure-expected-bytes-width-of-DBus-numbers.patch
# '%%autosetup -S git' -> git
BuildRequires: git
@ -1078,6 +1079,9 @@ killall abrt-dbus >/dev/null 2>&1 || :
%config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh
%changelog
* Wed Oct 28 2015 Jakub Filak <jfilak@redhat.com> 2.7.0-2
- Fix broken problem details in abrt-cli/gnome-abrt
* Thu Oct 15 2015 Matej Habrnal <mhabrnal@redhat.com> 2.7.0-1
- cli-ng: initial
- bodhi: introduce wrapper for 'reporter-bugzilla -h' and 'abrt-bodhi'