[abrt/f18] disable shortened and auto reporting in RHEL

Jakub Filak jfilak at fedoraproject.org
Tue Mar 5 11:30:07 UTC 2013


commit 76e4b7b6f51915cecccc35438f339dd9074fccb4
Author: Jakub Filak <jfilak at redhat.com>
Date:   Tue Mar 5 12:27:19 2013 +0100

    disable shortened and auto reporting in RHEL
    
    Resolves: #918040, #918041

 abrt-2.1.1-disable_autoreporting_dialog.patch      |   30 ++++++++++++++++++++
 ...-dont_enable_shortened_reporting_in_gnome.patch |   14 +++++++++
 abrt.spec                                          |   12 ++++++-
 3 files changed, 54 insertions(+), 2 deletions(-)
---
diff --git a/abrt-2.1.1-disable_autoreporting_dialog.patch b/abrt-2.1.1-disable_autoreporting_dialog.patch
new file mode 100644
index 0000000..c12a7ec
--- /dev/null
+++ b/abrt-2.1.1-disable_autoreporting_dialog.patch
@@ -0,0 +1,30 @@
+diff -ur abrt-2.1.1/src/applet/applet.c abrt-2.1.1.new/src/applet/applet.c
+--- abrt-2.1.1/src/applet/applet.c	2013-02-01 17:05:40.000000000 +0100
++++ abrt-2.1.1.new/src/applet/applet.c	2013-03-05 12:16:42.463747490 +0100
+@@ -89,25 +89,7 @@
+ 
+ static void ask_start_autoreporting()
+ {
+-    /* The "Yes" response will be saved even if user don't check the
+-     * "Don't ask me again" box.
+-     */
+-    const int ret = run_ask_yes_no_save_result_dialog("AutoreportingEnabled",
+-     _("The report which will be sent does not contain any security sensitive data. "
+-       "Therefore it is not necessary to bother you next time and require any further action by you. "
+-       "\nDo you want to enable automatically submitted anonymous crash reports?"),
+-       /*parent wnd */ NULL);
+-
+-    /* Don't forget:
+-     *
+-     * The "Yes" response will be saved even if user don't check the
+-     * "Don't ask me again" box.
+-     */
+-    if (ret != 0)
+-        set_user_setting("AutoreportingEnabled", "yes");
+-
+-    /* must be called immediately, otherwise the data could be lost in case of crash */
+-    save_user_settings();
++    return;
+ }
+ 
+ static bool is_shortened_reporting_enabled()
diff --git a/abrt-2.1.1-dont_enable_shortened_reporting_in_gnome.patch b/abrt-2.1.1-dont_enable_shortened_reporting_in_gnome.patch
new file mode 100644
index 0000000..f74d957
--- /dev/null
+++ b/abrt-2.1.1-dont_enable_shortened_reporting_in_gnome.patch
@@ -0,0 +1,14 @@
+diff -ur abrt-2.1.1/src/applet/applet.c abrt-2.1.1.new/src/applet/applet.c
+--- abrt-2.1.1/src/applet/applet.c	2013-02-01 17:05:40.000000000 +0100
++++ abrt-2.1.1.new/src/applet/applet.c	2013-03-05 12:04:38.840227170 +0100
+@@ -117,9 +117,7 @@
+     if (configured)
+         return string_to_bool(configured);
+ 
+-    /* Default: enabled for GNOME desktop, else disabled */
+-    const char *desktop_env = getenv("DESKTOP_SESSION");
+-    return (desktop_env && strcasestr(desktop_env, "gnome") != NULL);
++    return false;
+ }
+ 
+ /*
diff --git a/abrt.spec b/abrt.spec
index 2330f2d..71c272c 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -25,7 +25,7 @@
 Summary: Automatic bug detection and reporting tool
 Name: abrt
 Version: 2.1.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: https://fedorahosted.org/abrt/
@@ -34,6 +34,8 @@ Source: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz
 Patch0: abrt-rhelkeys.patch
 Patch1: disable_gpg_check.patch
 Patch2: abrt-2.1.1-hide_all_ureport_stuff.patch
+Patch3: abrt-2.1.1-dont_enable_shortened_reporting_in_gnome.patch
+Patch4: abrt-2.1.1-disable_autoreporting_dialog.patch
 BuildRequires: dbus-devel
 BuildRequires: gtk3-devel
 BuildRequires: rpm-devel >= 4.6
@@ -259,6 +261,8 @@ problems handled by ABRT in Python.
 %if 0%{?rhel} >= 7
 %patch0 -p1 -b .rhel_gpg
 %patch2 -p1 -b .ureport
+%patch3 -p1 -b .shoretened
+%patch4 -p1 -b .autoreporting
 %endif
 #Fedora
 %patch1 -p1 -b .gpgcheck
@@ -730,7 +734,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_defaultdocdir}/%{name}-python-%{version}/examples/
 
 %changelog
-* Fri Feb 04 2013 Jakub Filak <jfilak at redhat.com> 2.1.1-2
+* Tue Mar 05 2013 Jakub Filak <jfilak at redhat.com> 2.1.1-3
+- disable shortened and auto reporting in RHEL
+- Resolves: #918040, #918041
+
+* Tue Mar 05 2013 Jakub Filak <jfilak at redhat.com> 2.1.1-2
 - remove ureport events from the reporting workflow in RHEL
 
 * Fri Feb 04 2013 Jakub Filak <jfilak at redhat.com> 2.1.1-1


More information about the scm-commits mailing list