try to generate core_backtrace only for CCpp problems
This commit is contained in:
parent
0c2a0dec06
commit
368ef13bce
44
abrt-2.1.6-unable_to_open_coredump.patch
Normal file
44
abrt-2.1.6-unable_to_open_coredump.patch
Normal file
@ -0,0 +1,44 @@
|
||||
From 133940d93193f82c5cc63d627f691291dfd7759a Mon Sep 17 00:00:00 2001
|
||||
From: Jakub Filak <jfilak@redhat.com>
|
||||
Date: Tue, 6 Aug 2013 12:32:45 +0200
|
||||
Subject: [ABRT PATCH] a-a-ureport: generate core_backtrace only for CCpp
|
||||
problems
|
||||
|
||||
Closes rhbz#993630
|
||||
|
||||
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
||||
Signed-off-by: Martin Milata <mmilata@redhat.com>
|
||||
---
|
||||
src/plugins/abrt-action-ureport | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/plugins/abrt-action-ureport b/src/plugins/abrt-action-ureport
|
||||
index 41916bd..44575d8 100755
|
||||
--- a/src/plugins/abrt-action-ureport
|
||||
+++ b/src/plugins/abrt-action-ureport
|
||||
@@ -59,6 +59,13 @@ if __name__ == "__main__":
|
||||
dd = dd_opendir(dirname, 0)
|
||||
if not dd:
|
||||
sys.exit(1)
|
||||
+
|
||||
+ report_type = dd.load_text("type", DD_FAIL_QUIETLY_ENOENT)
|
||||
+
|
||||
+ # because of backward compatibility
|
||||
+ if not report_type:
|
||||
+ report_type = dd.load_text("analyzer", 0)
|
||||
+
|
||||
core_backtrace_exists = dd.exist("core_backtrace")
|
||||
reported_to = dd.load_text("reported_to", DD_FAIL_QUIETLY_ENOENT)
|
||||
ureports_counter = try_parse_number(dd, "ureports_counter")
|
||||
@@ -90,7 +97,7 @@ if __name__ == "__main__":
|
||||
log(_("uReport was already sent, not sending it again"))
|
||||
sys.exit(0)
|
||||
|
||||
- if not core_backtrace_exists:
|
||||
+ if report_type == "CCpp" and not core_backtrace_exists:
|
||||
exitcode = spawn_and_wait("abrt-action-generate-core-backtrace")
|
||||
if exitcode != 0:
|
||||
log1("uReport can't be sent without core_backtrace. Exiting.")
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -32,7 +32,7 @@
|
||||
Summary: Automatic bug detection and reporting tool
|
||||
Name: abrt
|
||||
Version: 2.1.6
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: https://fedorahosted.org/abrt/
|
||||
@ -46,6 +46,7 @@ Patch4: abrt-2.1.1-disable_autoreporting_dialog.patch
|
||||
|
||||
# remove with abrt > 2.1.6
|
||||
Patch5: abrt-2.1.6-get_rid_of_glib_warning.patch
|
||||
Patch6: abrt-2.1.6-unable_to_open_coredump.patch
|
||||
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: gtk3-devel
|
||||
@ -324,6 +325,7 @@ to the shell
|
||||
#Fedora
|
||||
%patch1 -p1 -b .gpgcheck
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
%build
|
||||
autoconf
|
||||
@ -870,6 +872,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh
|
||||
|
||||
%changelog
|
||||
* Tue Aug 06 2013 Jakub Filak <jfilak@redhat.com> 2.1.6-3
|
||||
- try to generate core_backtrace only for CCpp problems
|
||||
|
||||
* Mon Jul 29 2013 Jakub Filak <jfilak@redhat.com> 2.1.6-2
|
||||
- disable gcc unused-typedef warning for GLib
|
||||
- use right dependencies for RHEL
|
||||
|
Loading…
Reference in New Issue
Block a user