diff --git a/.gitignore b/.gitignore index c8f82d7..85145d7 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,21 @@ abrt-1.1.13.tar.gz /abrt-2.0.11.tar.gz /abrt-2.0.12.tar.gz /abrt-2.0.13.tar.gz +/abrt-2.0.14.tar.gz +/abrt-2.0.15.tar.gz +/abrt-2.0.16.tar.gz +/abrt-2.0.17.tar.gz +/abrt-2.0.18.tar.gz +/abrt-2.0.19.tar.gz +/abrt-2.0.20.tar.gz +/abrt-2.1.0.tar.gz +/abrt-2.1.1.tar.gz +/abrt-2.1.2.tar.gz +/abrt-2.1.3.tar.gz +/abrt-2.1.4.tar.gz +/abrt-2.1.5.tar.gz +/abrt-2.1.6.tar.gz +/abrt-2.1.7.tar.gz +/abrt-2.1.8.tar.gz +/abrt-2.1.9.tar.gz +/abrt-2.1.10.tar.gz 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.10-gtk3_deprecated_API.patch b/abrt-2.1.10-gtk3_deprecated_API.patch new file mode 100644 index 0000000..3fbec06 --- /dev/null +++ b/abrt-2.1.10-gtk3_deprecated_API.patch @@ -0,0 +1,31 @@ +From 8004afb7100e94efbca60ad4a08e599d7c2112f4 Mon Sep 17 00:00:00 2001 +From: Jakub Filak +Date: Wed, 11 Dec 2013 17:04:52 +0100 +Subject: [ABRT PATCH] configui: do not use deprecated gtk3 API + +Signed-off-by: Jakub Filak +--- + src/configuration-gui/system-config-abrt.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/configuration-gui/system-config-abrt.c b/src/configuration-gui/system-config-abrt.c +index d5afb43..4638dd6 100644 +--- a/src/configuration-gui/system-config-abrt.c ++++ b/src/configuration-gui/system-config-abrt.c +@@ -45,8 +45,13 @@ GtkWidget *system_config_abrt_widget_new(void) + GtkWidget *buttons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, /*spacing*/0); + gtk_box_pack_start(GTK_BOX(box), buttons, /*expand*/TRUE, /*fill*/FALSE, /*padding*/0); + ++#if ((GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 11) || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION == 11 && GTK_MICRO_VERSION < 2)) + gtk_widget_set_margin_left(buttons, 10); + gtk_widget_set_margin_right(buttons, 10); ++#else ++ gtk_widget_set_margin_start(buttons, 10); ++ gtk_widget_set_margin_end(buttons, 10); ++#endif + gtk_widget_set_margin_top(buttons, 10); + gtk_widget_set_margin_bottom(buttons, 10); + +-- +1.8.3.1 + diff --git a/abrt-2.1.6.rhel-dont_enable_shortened_reporting_in_gnome.patch b/abrt-2.1.6.rhel-dont_enable_shortened_reporting_in_gnome.patch new file mode 100644 index 0000000..027705f --- /dev/null +++ b/abrt-2.1.6.rhel-dont_enable_shortened_reporting_in_gnome.patch @@ -0,0 +1,17 @@ +diff -ruN abrt-2.1.6.new/src/lib/abrt_conf.c abrt-2.1.6.old/src/lib/abrt_conf.c +--- abrt-2.1.6.new/src/lib/abrt_conf.c 2013-07-26 11:20:33.803925230 +0200 ++++ abrt-2.1.6.old/src/lib/abrt_conf.c 2013-07-26 11:57:24.785656742 +0200 +@@ -99,9 +99,13 @@ + } + else + { ++#if 0 + /* Default: enabled for GNOME desktop, else disabled */ + const char *desktop_env = getenv("DESKTOP_SESSION"); + g_settings_shortenedreporting = (desktop_env && strcasestr(desktop_env, "gnome") != NULL); ++#else ++ g_settings_shortenedreporting = 0; ++#endif + } + + GHashTableIter iter; diff --git a/abrt-2.1.6.rhel-remove_all_ureport_lines_from_config.patch b/abrt-2.1.6.rhel-remove_all_ureport_lines_from_config.patch new file mode 100644 index 0000000..b578b08 --- /dev/null +++ b/abrt-2.1.6.rhel-remove_all_ureport_lines_from_config.patch @@ -0,0 +1,110 @@ +diff -ur abrt-2.1.1/src/daemon/abrt.conf abrt-2.1.1.new/src/daemon/abrt.conf +--- abrt-2.1.1/src/daemon/abrt.conf 2013-02-01 12:59:58.000000000 +0100 ++++ abrt-2.1.1.new/src/daemon/abrt.conf 2013-03-05 10:01:11.347789231 +0100 +@@ -28,9 +28,7 @@ + # In order to run this event automatically after detection, the + # AutoreportingEnabled option must be configured to 'yes' + # +-# Default value: report_uReport +-# +-AutoreportingEvent = report_uReport ++AutoreportingEvent = empty + + # Enables automatic running of the event configured in AutoreportingEvent option. + # +diff -ur abrt-2.1.1/src/daemon/abrt_event.conf abrt-2.1.1.new/src/daemon/abrt_event.conf +--- abrt-2.1.1/src/daemon/abrt_event.conf 2013-02-01 17:05:40.000000000 +0100 ++++ abrt-2.1.1.new/src/daemon/abrt_event.conf 2013-03-05 10:00:58.406693336 +0100 +@@ -95,3 +95,7 @@ + + EVENT=open-gui + report-gtk -x -- "$DUMP_DIR" ++ ++# no operation event, used for AutoreportingEvent to override the default value ++EVENT=empty ++ exit 0 +diff -ruN abrt-2.1.6.new/src/plugins/ccpp_event.conf abrt-2.1.6.old/src/plugins/ccpp_event.conf +--- abrt-2.1.6.new/src/plugins/ccpp_event.conf 2013-07-26 11:20:33.808925269 +0200 ++++ abrt-2.1.6.old/src/plugins/ccpp_event.conf 2013-07-26 11:21:37.642419583 +0200 +@@ -77,14 +77,6 @@ + -F "/etc/libreport/plugins/$format" \ + -A "/etc/libreport/plugins/$formatdup" + +-# Send micro report +-EVENT=report_uReport analyzer=CCpp +- /usr/libexec/abrt-action-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=CCpp +- reporter-ureport -r +- + EVENT=analyze_CCpp analyzer=CCpp + abrt-action-perform-ccpp-analysis + +@@ -93,4 +85,4 @@ + report-gtk -- "$DUMP_DIR" + + EVENT=report-cli analyzer=CCpp +- report-cli -e report_uReport -e analyze_CCpp -e report_Bugzilla -e post_report -- "$DUMP_DIR" ++ report-cli -e analyze_LocalGDB -e report_Bugzilla -- "$DUMP_DIR" +diff -ruN abrt-2.1.6.new/src/plugins/koops_event.conf abrt-2.1.6.old/src/plugins/koops_event.conf +--- abrt-2.1.6.new/src/plugins/koops_event.conf 2013-07-26 11:20:33.810925284 +0200 ++++ abrt-2.1.6.old/src/plugins/koops_event.conf 2013-07-26 11:22:09.051662800 +0200 +@@ -20,17 +20,9 @@ + reporter-bugzilla -b \ + -F /etc/libreport/plugins/bugzilla_format_kernel.conf + +-# Send micro report +-EVENT=report_uReport analyzer=Kerneloops +- /usr/libexec/abrt-action-ureport +- +-# Update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=Kerneloops +- reporter-ureport -r +- + # Automatic/simple GUI-based kernel oopses reporting will do this: + EVENT=report-gui analyzer=Kerneloops + report-gtk -- "$DUMP_DIR" + + EVENT=report-cli analyzer=Kerneloops +- report-cli -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" ++ report-cli -e report_Bugzilla -- "$DUMP_DIR" +diff -ruN abrt-2.1.6.new/src/plugins/python_event.conf abrt-2.1.6.old/src/plugins/python_event.conf +--- abrt-2.1.6.new/src/plugins/python_event.conf 2013-07-26 11:20:33.809925276 +0200 ++++ abrt-2.1.6.old/src/plugins/python_event.conf 2013-07-26 11:22:23.992778495 +0200 +@@ -15,17 +15,9 @@ + -c /etc/libreport/plugins/bugzilla.conf + # TODO? -F /etc/libreport/plugins/bugzilla_format_python.conf + +-# Send micro report +-EVENT=report_uReport analyzer=Python +- /usr/libexec/abrt-action-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=Python +- reporter-ureport -r +- + # Reporting of python exceptions + EVENT=report-gui analyzer=Python component!=anaconda + report-gtk -- "$DUMP_DIR" + + EVENT=report-cli analyzer=Python +- report-cli -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" ++ report-cli -e report_Bugzilla -- "$DUMP_DIR" +diff -ruN abrt-2.1.6.new/src/plugins/vmcore_event.conf abrt-2.1.6.old/src/plugins/vmcore_event.conf +--- abrt-2.1.6.new/src/plugins/vmcore_event.conf 2013-07-26 11:20:33.811925292 +0200 ++++ abrt-2.1.6.old/src/plugins/vmcore_event.conf 2013-07-26 11:23:36.103336857 +0200 +@@ -19,12 +19,8 @@ + reporter-bugzilla -b \ + -F /etc/libreport/plugins/bugzilla_format_kernel.conf + +-# Send micro report +-EVENT=report_uReport analyzer=vmcore +- /usr/libexec/abrt-action-ureport +- + EVENT=report-gui analyzer=vmcore + report-gtk -- "$DUMP_DIR" + + EVENT=report-cli analyzer=vmcore +- report-cli -e analyze_VMcore -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" ++ report-cli -e analyze_VMcore -e report_Bugzilla -- "$DUMP_DIR" diff --git a/abrt.spec b/abrt.spec index 9e7a82a..267ee3c 100644 --- a/abrt.spec +++ b/abrt.spec @@ -1,6 +1,11 @@ %{!?python_site: %global python_site %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")} # platform-dependent %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +# http://fedoraproject.org/wiki/Packaging:Guidelines#PIE +# http://fedoraproject.org/wiki/Hardened_Packages +%global _hardened_build 1 + %if 0%{?fedora} >= 14 %bcond_without systemd %else @@ -22,17 +27,32 @@ %define desktopvendor fedora %endif +# do not append package version to doc directory of subpackages in F20 and later; rhbz#993656 +%if "%{_pkgdocdir}" == "%{_docdir}/%{name}" + %define docdirversion %{nil} +%else + %define docdirversion -%{version} +%endif + +%define libreport_ver 2.1.10 + Summary: Automatic bug detection and reporting tool Name: abrt -Version: 2.0.13 +Version: 2.1.10 Release: 1%{?dist} License: GPLv2+ Group: Applications/System URL: https://fedorahosted.org/abrt/ Source: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz -Source1: abrt1_to_abrt2 # don't remove this patch, packages in rawhide are not signed! Patch1: disable_gpg_check.patch +Patch2: abrt-2.1.6.rhel-remove_all_ureport_lines_from_config.patch +Patch3: abrt-2.1.6.rhel-dont_enable_shortened_reporting_in_gnome.patch +Patch4: abrt-2.1.1-disable_autoreporting_dialog.patch + +# remove with abrt > 2.1.10 +Patch5: abrt-2.1.10-gtk3_deprecated_API.patch + BuildRequires: dbus-devel BuildRequires: gtk3-devel BuildRequires: rpm-devel >= 4.6 @@ -46,9 +66,15 @@ BuildRequires: intltool BuildRequires: libtool BuildRequires: nss-devel BuildRequires: asciidoc +BuildRequires: doxygen BuildRequires: xmlto -BuildRequires: libreport-devel >= 2.0.14-1 -BuildRequires: btparser-devel +BuildRequires: libreport-devel >= %{libreport_ver} +BuildRequires: satyr-devel >= 0.12 +BuildRequires: systemd-python +BuildRequires: augeas + +Requires: libreport >= %{libreport_ver} +Requires: satyr >= 0.12 %if %{with systemd} Requires: systemd-units @@ -56,11 +82,8 @@ Requires: systemd-units BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: %{name}-libs = %{version}-%{release} Requires(pre): shadow-utils -Obsoletes: abrt-plugin-sqlite3 > 0.0.1 -# required for transition from 1.1.13, can be removed after some time -Obsoletes: abrt-plugin-runapp > 0.0.1 -Obsoletes: abrt-plugin-filetransfer > 0.0.1 -Obsoletes: abrt-plugin-sosreport > 0.0.1 +Requires: python-dbus +Requires: libreport-plugin-ureport %description %{name} is a tool to help users to detect defects in applications and @@ -82,16 +105,36 @@ Requires: abrt-libs = %{version}-%{release} %description devel Development libraries and headers for %{name}. +%package gui-libs +Summary: Libraries for %{name}-gui +Group: System Environment/Libraries + +%description gui-libs +Libraries for %{name}-gui. + +%package gui-devel +Summary: Development libraries for %{name}-gui +Group: Development/Libraries +Requires: abrt-gui-libs = %{version}-%{release} + +%description gui-devel +Development libraries and headers for %{name}-gui. + %package gui Summary: %{name}'s gui Group: User Interface/Desktops Requires: %{name} = %{version}-%{release} Requires: %{name}-dbus = %{version}-%{release} -BuildRequires: libreport-gtk-devel +Requires: gnome-abrt +BuildRequires: libreport-gtk-devel >= %{libreport_ver} +BuildRequires: libICE-devel +BuildRequires: libSM-devel # we used to have abrt-applet, now abrt-gui includes it: Provides: abrt-applet = %{version}-%{release} Obsoletes: abrt-applet < 0.0.5 Conflicts: abrt-applet < 0.0.5 +Requires: abrt-libs = %{version}-%{release} +Requires: abrt-gui-libs = %{version}-%{release} %description gui GTK+ wizard for convenient bug reporting. @@ -99,19 +142,36 @@ GTK+ wizard for convenient bug reporting. %package addon-ccpp Summary: %{name}'s C/C++ addon Group: System Environment/Libraries -Requires: cpio, btparser +Requires: cpio Requires: gdb >= 7.0-3 +Requires: elfutils +%if 0%{!?rhel:1} +# abrt-action-perform-ccpp-analysis wants to run analyze_RetraceServer: +Requires: %{name}-retrace-client +%endif Requires: %{name} = %{version}-%{release} +Requires: abrt-libs = %{version}-%{release} +Requires: libreport-python %description addon-ccpp This package contains hook for C/C++ crashed programs and %{name}'s C/C++ analyzer plugin. +%package addon-upload-watch +Summary: %{name}'s upload addon +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +Requires: abrt-libs = %{version}-%{release} + +%description addon-upload-watch +This package contains hook for uploaded problems. + %package retrace-client Summary: %{name}'s retrace client Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} Requires: xz +Requires: tar %description retrace-client This package contains the client application for Retrace server @@ -122,13 +182,14 @@ Summary: %{name}'s kerneloops addon Group: System Environment/Libraries Requires: curl Requires: %{name} = %{version}-%{release} -Requires: libreport-plugin-kerneloops -Obsoletes: kerneloops > 0.0.1 -Obsoletes: abrt-plugin-kerneloops > 0.0.1 -Obsoletes: abrt-plugin-kerneloopsreporter > 0.0.1 +Requires: abrt-libs = %{version}-%{release} +%if 0%{!?rhel:1} +Requires: libreport-plugin-kerneloops >= %{libreport_ver} +%endif %description addon-kerneloops -This package contains plugin for collecting kernel crash information from system log. +This package contains plugin for collecting kernel crash information from +system log. %package addon-xorg Summary: %{name}'s Xorg addon @@ -137,7 +198,8 @@ Requires: curl Requires: %{name} = %{version}-%{release} %description addon-xorg -This package contains plugin for collecting Xorg crash information from Xorg log. +This package contains plugin for collecting Xorg crash information from Xorg +log. %package addon-vmcore Summary: %{name}'s vmcore addon @@ -145,16 +207,30 @@ Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} Requires: abrt-addon-kerneloops Requires: crash +Requires: kexec-tools +Requires: abrt-python %description addon-vmcore -This package contains plugin for collecting kernel crash information from vmcore files. +This package contains plugin for collecting kernel crash information from +vmcore files. + +%package addon-pstoreoops +Summary: %{name}'s pstore oops addon +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +Requires: abrt-libs = %{version}-%{release} +Requires: abrt-addon-kerneloops +Obsoletes: abrt-addon-uefioops + +%description addon-pstoreoops +This package contains plugin for collecting kernel oopses from pstore storage. %package plugin-bodhi Summary: %{name}'s bodhi plugin BuildRequires: json-c-devel Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} -BuildRequires: libreport-web-devel >= 2.0.10 +BuildRequires: libreport-web-devel >= %{libreport_ver} Obsoletes: libreport-plugin-bodhi > 0.0.1 Provides: libreport-plugin-bodhi @@ -166,8 +242,8 @@ Summary: %{name}'s addon for catching and analyzing Python exceptions Group: System Environment/Libraries Requires: python Requires: %{name} = %{version}-%{release} -Obsoletes: gnome-python2-bugbuddy > 0.0.1 -Provides: gnome-python2-bugbuddy +Requires: systemd-python +Requires: abrt-python %description addon-python This package contains python hook and python analyzer plugin for handling @@ -176,26 +252,41 @@ uncaught exception in python programs. %package tui Summary: %{name}'s command line interface Group: User Interface/Desktops +Requires: %{name} = %{version}-%{release} +Requires: libreport-cli >= %{libreport_ver} +Requires: abrt-libs = %{version}-%{release} %description tui -This package contains a simple command line client for processing abrt reports in -command line environment. +This package contains a simple command line client for processing abrt reports +in command line environment. %package cli -Summary: Virtual package to install all necessary packages for usage from command line environment +Summary: Virtual package to make easy default installation on non-graphical environments Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: abrt-tui -Requires: libreport-cli Requires: abrt-addon-kerneloops -Requires: abrt-addon-ccpp, abrt-addon-python -Requires: libreport-plugin-bugzilla, libreport-plugin-logger +Requires: abrt-addon-pstoreoops +Requires: abrt-addon-vmcore +Requires: abrt-addon-ccpp +Requires: abrt-addon-python +Requires: abrt-addon-xorg +%if 0%{?rhel} +Requires: libreport-plugin-rhtsupport >= %{libreport_ver} +%else +Requires: abrt-retrace-client +Requires: abrt-plugin-bodhi +Requires: libreport-plugin-bugzilla >= %{libreport_ver} +Requires: libreport-plugin-logger >= %{libreport_ver} +Requires: libreport-plugin-ureport >= %{libreport_ver} +%endif %description cli -Virtual package to make easy default installation on non-graphical environments. +Virtual package to install all necessary packages for usage from command line +environment. %package desktop -Summary: Virtual package to install all necessary packages for usage from desktop environment +Summary: Virtual package to make easy default installation on desktop environments Group: User Interface/Desktops # This package gets installed when anything requests bug-buddy - # happens when users upgrade Fn to Fn+1; @@ -204,53 +295,102 @@ Group: User Interface/Desktops # any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed) Requires: %{name} = %{version}-%{release} Requires: abrt-addon-kerneloops +Requires: abrt-addon-pstoreoops Requires: abrt-addon-vmcore Requires: abrt-addon-ccpp -Requires: abrt-retrace-client Requires: abrt-addon-python Requires: abrt-addon-xorg # Default config of addon-ccpp requires gdb Requires: gdb >= 7.0-3 +Requires: elfutils Requires: abrt-gui +Requires: gnome-abrt +%if 0%{?rhel} +Requires: libreport-rhel >= %{libreport_ver} +Requires: libreport-plugin-rhtsupport >= %{libreport_ver} +%else +Requires: abrt-retrace-client Requires: abrt-plugin-bodhi -Requires: libreport-plugin-logger, libreport-plugin-bugzilla -Requires: libreport-plugin-ureport +Requires: libreport-plugin-bugzilla >= %{libreport_ver} +Requires: libreport-plugin-logger >= %{libreport_ver} +Requires: libreport-plugin-ureport >= %{libreport_ver} +Requires: libreport-fedora >= %{libreport_ver} +%endif #Requires: abrt-plugin-firefox -Obsoletes: bug-buddy > 0.0.1 Provides: bug-buddy %description desktop -Virtual package to make easy default installation on desktop environments. +Virtual package to install all necessary packages for usage from desktop +environment. %package dbus Summary: ABRT DBus service -Group: Application/System +Group: Applications/System Requires: %{name} = %{version}-%{release} -Requires: libreport BuildRequires: polkit-devel +Requires: abrt-libs = %{version}-%{release} %description dbus ABRT DBus service which provides org.freedesktop.problems API on dbus and uses PolicyKit to authorize to access the problem data. +%package python +Summary: ABRT Python API +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} +Requires: pygobject2 +BuildRequires: python-nose +BuildRequires: python-sphinx + +%description python +High-level API for querying, creating and manipulating +problems handled by ABRT in Python. + +%package python-doc +Summary: ABRT Python API Documentation +Group: Documentation +BuildArch: noarch +BuildRequires: python2-devel +Requires: %{name} = %{version}-%{release} +Requires: %{name}-python = %{version}-%{release} + +%description python-doc +Examples and documentation for ABRT Python API. + +%package console-notification +Summary: ABRT console notification script +Group: Applications/System +Requires: %{name} = %{version}-%{release} +Requires: %{name}-cli = %{version}-%{release} + +%description console-notification +A small script which prints a count of detected problems when someone logs in +to the shell + %prep %setup -q #RHEL %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 +%patch5 -p1 -b .gtk3 %build autoconf -CFLAGS="%{optflags} -Werror" %configure --disable-silent-rules +CFLAGS="%{optflags} -Werror" %configure --enable-doxygen-docs --disable-silent-rules make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} +make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} \ + dbusabrtdocdir=%{_defaultdocdir}/%{name}-dbus%{docdirversion}/html/ + %find_lang %{name} # remove all .la and .a files @@ -258,19 +398,15 @@ find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f mkdir -p ${RPM_BUILD_ROOT}/%{_initrddir} mkdir -p $RPM_BUILD_ROOT/var/cache/abrt-di mkdir -p $RPM_BUILD_ROOT/var/run/abrt -mkdir -p $RPM_BUILD_ROOT/var/spool/abrt +mkdir -p $RPM_BUILD_ROOT/var/tmp/abrt mkdir -p $RPM_BUILD_ROOT/var/spool/abrt-upload desktop-file-install \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ - --vendor %{desktopvendor} \ - --delete-original \ - ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop - -desktop-file-install \ - --dir ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart \ src/applet/abrt-applet.desktop +ln -sf %{_datadir}/applications/abrt-applet.desktop ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/ + # After everything is installed, remove info dir rm -f %{buildroot}%{_infodir}/dir @@ -289,146 +425,71 @@ exit 0 %post # $1 == 1 if install; 2 if upgrade -if [ $1 -eq 1 ]; then -%if %{with systemd} - # Enable (but don't start) the units by default - /bin/systemctl enable abrtd.service >/dev/null 2>&1 || : -%else - /sbin/chkconfig --add abrtd -%endif -fi +%systemd_post abrtd.service %post addon-ccpp # this is required for transition from 1.1.x to 2.x # because /cache/abrt-di/* was created under root with root:root # so 2.x fails when it tries to extract debuginfo there.. chown -R abrt:abrt %{_localstatedir}/cache/abrt-di -if [ $1 -eq 1 ]; then - # We are installing this package, we aren't upgrading it. - # Probably the system had old abrt, one without abrt-ccpp package. - # If this old abrtd was enabled, then the new package - # should have abrt-ccpp enabled too. -%if %{with systemd} - # Enable (but don't start) the units by default - /bin/systemctl enable abrt-ccpp.service >/dev/null 2>&1 || : -%else - if /sbin/chkconfig abrtd >/dev/null 2>&1; then - /sbin/chkconfig --add abrt-ccpp - fi -%endif -fi +%systemd_post abrt-ccpp.service %post addon-kerneloops -if [ $1 -eq 1 ]; then - # (see explanation in addon-ccpp section) -%if %{with systemd} - # Enable (but don't start) the units by default - /bin/systemctl enable abrt-oops.service >/dev/null 2>&1 || : -%else - if /sbin/chkconfig abrtd >/dev/null 2>&1; then - /sbin/chkconfig --add abrt-oops - fi -%endif -fi +%systemd_post abrt-oops.service %post addon-xorg -if [ $1 -eq 1 ]; then - # (see explanation in addon-ccpp section) -%if %{with systemd} - # Enable (but don't start) the units by default - /bin/systemctl enable abrt-xorg.service >/dev/null 2>&1 || : -%else - if /sbin/chkconfig abrtd >/dev/null 2>&1; then - /sbin/chkconfig --add abrt-xorg - fi -%endif -fi +%systemd_post abrt-xorg.service %post addon-vmcore -if [ $1 -eq 1 ]; then - # (see explanation in addon-ccpp section) -%if %{with systemd} - # Enable (but don't start) the units by default - /bin/systemctl enable abrt-vmcore.service >/dev/null 2>&1 || : -%else - if /sbin/chkconfig abrtd >/dev/null 2>&1; then - /sbin/chkconfig --add abrt-vmcore - fi -%endif -fi +%systemd_post abrt-vmcore.service + +%post addon-pstoreoops +%systemd_post abrt-pstoreoops.service + +%post addon-upload-watch +%systemd_post abrt-upload-watch.service %preun -if [ "$1" -eq "0" ] ; then -%if %{with systemd} - /bin/systemctl --no-reload disable abrtd.service > /dev/null 2>&1 || : - /bin/systemctl stop abrtd.service >/dev/null 2>&1 || : -%else - service abrtd stop >/dev/null 2>&1 - /sbin/chkconfig --del abrtd -%endif -fi +%systemd_preun abrtd.service %preun addon-ccpp -if [ "$1" -eq "0" ] ; then -%if %{with systemd} - /bin/systemctl --no-reload disable abrt-ccpp.service >/dev/null 2>&1 || : - /bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || : -%else - service abrt-ccpp stop >/dev/null 2>&1 - /sbin/chkconfig --del abrt-ccpp -%endif -fi +%systemd_preun abrt-ccpp.service %preun addon-kerneloops -if [ "$1" -eq "0" ] ; then -%if %{with systemd} - /bin/systemctl --no-reload abrt-oops.service >/dev/null 2>&1 || : - /bin/systemctl stop abrt-oops.service >/dev/null 2>&1 || : -%else - service abrt-oops stop >/dev/null 2>&1 - /sbin/chkconfig --del abrt-oops -%endif -fi +%systemd_preun abrt-oops.service %preun addon-xorg -if [ "$1" -eq "0" ] ; then -%if %{with systemd} - /bin/systemctl --no-reload abrt-xorg.service >/dev/null 2>&1 || : - /bin/systemctl stop abrt-xorg.service >/dev/null 2>&1 || : -%else - service abrt-xorg stop >/dev/null 2>&1 - /sbin/chkconfig --del abrt-xorg -%endif -fi +%systemd_preun abrt-xorg.service %preun addon-vmcore -if [ "$1" -eq "0" ] ; then -%if %{with systemd} - /bin/systemctl --no-reload abrt-vmcore.service >/dev/null 2>&1 || : - /bin/systemctl stop abrt-vmcore.service >/dev/null 2>&1 || : -%else - service abrt-vmcore stop >/dev/null 2>&1 - /sbin/chkconfig --del abrt-vmcore -%endif -fi +%systemd_preun abrt-vmcore.service + +%preun addon-pstoreoops +%systemd_preun abrt-pstoreoops.service + +%preun addon-upload-watch +%systemd_preun abrt-upload-watch.service -%if %{with systemd} %postun -/bin/systemctl daemon-reload >/dev/null 2>&1 || : - -%postun addon-kerneloops -/bin/systemctl daemon-reload >/dev/null 2>&1 || : - -%postun addon-xorg -/bin/systemctl daemon-reload >/dev/null 2>&1 || : - -%postun addon-vmcore -/bin/systemctl daemon-reload >/dev/null 2>&1 || : +%systemd_postun_with_restart abrtd.service %postun addon-ccpp -/bin/systemctl daemon-reload >/dev/null 2>&1 || : +%systemd_postun_with_restart abrt-ccpp.service -%endif +%postun addon-kerneloops +%systemd_postun_with_restart abrt-oops.service + +%postun addon-xorg +%systemd_postun_with_restart abrt-xorg.service + +%postun addon-vmcore +%systemd_postun_with_restart abrt-vmcore.service + +%postun addon-pstoreoops +%systemd_postun_with_restart abrt-pstoreoops.service + +%postun addon-upload-watch +%systemd_postun_with_restart abrt-upload-watch.service %post gui # update icon cache @@ -438,6 +499,10 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun libs -p /sbin/ldconfig +%post gui-libs -p /sbin/ldconfig + +%postun gui-libs -p /sbin/ldconfig + %postun gui if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null @@ -445,10 +510,23 @@ if [ $1 -eq 0 ] ; then fi %posttrans +# update the old problem dirs to contain "type" element +abrtdir=$(grep "DumpLocation" /etc/abrt/abrt.conf | cut -d'=' -f2 | tr -d ' '); cd $abrtdir 2>/dev/null && for i in `find . -name "analyzer" 2>/dev/null`; do len=${#i};cp "$i" "${i:0:$len-9}/type"; done; for i in `find "$abrtdir" -mindepth 1 -maxdepth 1 -type d`; do chown `stat --format=%U:abrt $i` $i/*; done service abrtd condrestart >/dev/null 2>&1 || : %posttrans addon-ccpp service abrt-ccpp condrestart >/dev/null 2>&1 || : +# Regenerate core_bactraces because of missing crash threads +abrtdir=$(grep "DumpLocation" /etc/abrt/abrt.conf | cut -d'=' -f2 | tr -d ' ') +if test -d "$abrtdir"; then + for DD in `find "$abrtdir" -mindepth 1 -maxdepth 1 -type d` + do + if test -f "$DD/analyzer" && grep -q "^CCpp$" "$DD/analyzer"; then + /usr/bin/abrt-action-generate-core-backtrace -d "$DD" -- >/dev/null 2>&1 || : + test -f "$DD/core_backtrace" && chown `stat --format=%U:abrt $DD` "$DD/core_backtrace" || : + fi + done +fi %posttrans addon-kerneloops service abrt-oops condrestart >/dev/null 2>&1 || : @@ -458,6 +536,17 @@ service abrt-xorg condrestart >/dev/null 2>&1 || : %posttrans addon-vmcore service abrt-vmcore condrestart >/dev/null 2>&1 || : +# Copy the configuration file to plugin's directory +test -f /etc/abrt/abrt-harvest-vmcore.conf && { + mv -b /etc/abrt/abrt-harvest-vmcore.conf /etc/abrt/plugins/vmcore.conf +} +exit 0 + +%posttrans addon-pstoreoops +service abrt-pstoreoops condrestart >/dev/null 2>&1 || : + +%posttrans addon-upload-watch +service abrt-upload-watch condrestart >/dev/null 2>&1 || : %posttrans gui gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : @@ -467,22 +556,35 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %doc README COPYING %if %{with systemd} %{_unitdir}/abrtd.service +%{_tmpfilesdir}/abrt.conf %else %{_initrddir}/abrtd %endif %{_sbindir}/abrtd %{_sbindir}/abrt-server %{_libexecdir}/abrt-handle-event +%{_libexecdir}/abrt-action-ureport %{_bindir}/abrt-handle-upload +%{_bindir}/abrt-action-notify +%{_mandir}/man1/abrt-action-notify.1.gz %{_bindir}/abrt-action-save-package-data %{_bindir}/abrt-watch-log +%{_bindir}/abrt-action-analyze-xorg %config(noreplace) %{_sysconfdir}/%{name}/abrt.conf +%{_datadir}/%{name}/conf.d/abrt.conf %config(noreplace) %{_sysconfdir}/%{name}/abrt-action-save-package-data.conf -%config(noreplace) %{_sysconfdir}/%{name}/gpg_keys +%{_datadir}/%{name}/conf.d/abrt-action-save-package-data.conf +%config(noreplace) %{_sysconfdir}/%{name}/plugins/xorg.conf +%{_datadir}/%{name}/conf.d/plugins/xorg.conf +%{_mandir}/man5/abrt-xorg.conf.5.gz +%config(noreplace) %{_sysconfdir}/%{name}/gpg_keys.conf +%{_datadir}/%{name}/conf.d/gpg_keys.conf +%{_mandir}/man5/gpg_keys.conf.5.gz %config(noreplace) %{_sysconfdir}/libreport/events.d/abrt_event.conf +%{_mandir}/man5/abrt_event.conf.5.gz %config(noreplace) %{_sysconfdir}/libreport/events.d/smart_event.conf -%config(noreplace) %{_sysconfdir}/libreport/events.d/smolt_event.conf -%dir %attr(0755, abrt, abrt) %{_localstatedir}/spool/%{name} +%{_mandir}/man5/smart_event.conf.5.gz +%dir %attr(0755, abrt, abrt) %{_localstatedir}/tmp/%{name} %dir %attr(0700, abrt, abrt) %{_localstatedir}/spool/%{name}-upload # abrtd runs as root %dir %attr(0755, root, root) %{_localstatedir}/run/%{name} @@ -491,43 +593,69 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/plugins -#%dir %{_libdir}/%{name} +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/conf.d +%dir %{_datadir}/%{name}/conf.d/plugins %{_mandir}/man1/abrt-handle-upload.1.gz %{_mandir}/man1/abrt-server.1.gz %{_mandir}/man1/abrt-action-save-package-data.1.gz +%{_mandir}/man1/abrt-watch-log.1.gz +%{_mandir}/man1/abrt-action-analyze-xorg.1.gz %{_mandir}/man8/abrtd.8.gz -%{_mandir}/man8/abrt-dbus.8.gz %{_mandir}/man5/abrt.conf.5.gz %{_mandir}/man5/abrt-action-save-package-data.conf.5.gz # {_mandir}/man5/pyhook.conf.5.gz +# filesystem package should own /usr/share/augeas/lenses directory +%{_datadir}/augeas/lenses/abrt.aug + %files libs %defattr(-,root,root,-) -%{_libdir}/libabrt*.so.* +%{_libdir}/libabrt.so.* %files devel %defattr(-,root,root,-) -%{_includedir}/abrt/* -%{_libdir}/libabrt*.so -#FIXME: this should go to libreportgtk-devel package -%{_libdir}/pkgconfig/* +# The complex pattern below (instead of simlpy *) excludes Makefile{.am,.in}: +%doc apidoc/html/*.{html,png,css,js} +%{_includedir}/abrt/abrt-dbus.h +%{_includedir}/abrt/hooklib.h +%{_includedir}/abrt/libabrt.h +%{_includedir}/abrt/problem_api.h +%{_libdir}/libabrt.so +%{_libdir}/pkgconfig/abrt.pc + +%files gui-libs +%defattr(-,root,root,-) +%{_libdir}/libabrt_gui.so.* + +%files gui-devel +%defattr(-,root,root,-) +%{_includedir}/abrt/abrt-config-widget.h +%{_includedir}/abrt/system-config-abrt.h +%{_libdir}/libabrt_gui.so +%{_libdir}/pkgconfig/abrt_gui.pc %files gui %defattr(-,root,root,-) -%{_bindir}/abrt-gui %dir %{_datadir}/%{name} # all glade, gtkbuilder and py files for gui -%{_datadir}/applications/%{desktopvendor}-%{name}.desktop %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/status/* %{_datadir}/%{name}/icons/hicolor/*/status/* +%{_datadir}/%{name}/ui/* %{_bindir}/abrt-applet -#%{_bindir}/test-report -%{_sysconfdir}/xdg/autostart/abrt-applet.desktop +%{_bindir}/system-config-abrt +#%%{_bindir}/test-report +%{_datadir}/applications/abrt-applet.desktop +%config(noreplace) %{_sysconfdir}/xdg/autostart/abrt-applet.desktop +%{_mandir}/man1/abrt-applet.1* +%{_mandir}/man1/system-config-abrt.1* %files addon-ccpp %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf +%{_datadir}/%{name}/conf.d/plugins/CCpp.conf +%{_mandir}/man5/abrt-CCpp.conf.5.gz %dir %attr(0775, abrt, abrt) %{_localstatedir}/cache/abrt-di %if %{with systemd} %{_unitdir}/abrt-ccpp.service @@ -535,46 +663,67 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_initrddir}/abrt-ccpp %endif %{_libexecdir}/abrt-hook-ccpp -%attr(4755, abrt, abrt) %{_libexecdir}/abrt-action-install-debuginfo-to-abrt-cache +%{_libexecdir}/abrt-gdb-exploitable +%attr(6755, abrt, abrt) %{_libexecdir}/abrt-action-install-debuginfo-to-abrt-cache %{_bindir}/abrt-action-analyze-c %{_bindir}/abrt-action-trim-files %{_bindir}/abrt-action-analyze-core +%{_bindir}/abrt-action-analyze-vulnerability %{_bindir}/abrt-action-install-debuginfo %{_bindir}/abrt-action-generate-backtrace %{_bindir}/abrt-action-generate-core-backtrace %{_bindir}/abrt-action-analyze-backtrace %{_bindir}/abrt-action-list-dsos %{_bindir}/abrt-action-perform-ccpp-analysis -%{_bindir}/abrt-dedup-client +%{_bindir}/abrt-action-analyze-ccpp-local %{_sbindir}/abrt-install-ccpp-hook -%{_sysconfdir}/libreport/events.d/ccpp_event.conf -%{_sysconfdir}/libreport/events.d/gconf_event.conf -%{_sysconfdir}/libreport/events.d/vimrc_event.conf -%{_sysconfdir}/libreport/events/analyze_CCpp.xml -%{_sysconfdir}/libreport/events/analyze_LocalGDB.xml -%{_sysconfdir}/libreport/events/collect_xsession_errors.xml -%{_sysconfdir}/libreport/events/collect_Smolt.xml -%{_sysconfdir}/libreport/events/collect_GConf.xml -%{_sysconfdir}/libreport/events/collect_vimrc_user.xml -%{_sysconfdir}/libreport/events/collect_vimrc_system.xml -%{_sysconfdir}/libreport/events/post_report.xml +%config(noreplace) %{_sysconfdir}/libreport/events.d/ccpp_event.conf +%{_mandir}/man5/ccpp_event.conf.5.gz +%config(noreplace) %{_sysconfdir}/libreport/events.d/gconf_event.conf +%{_mandir}/man5/gconf_event.conf.5.gz +%config(noreplace) %{_sysconfdir}/libreport/events.d/vimrc_event.conf +%{_datadir}/libreport/events/analyze_CCpp.xml +%{_mandir}/man5/vimrc_event.conf.5.gz +%{_datadir}/libreport/events/analyze_LocalGDB.xml +%{_datadir}/libreport/events/collect_xsession_errors.xml +%{_datadir}/libreport/events/collect_GConf.xml +%{_datadir}/libreport/events/collect_vimrc_user.xml +%{_datadir}/libreport/events/collect_vimrc_system.xml +%{_datadir}/libreport/events/post_report.xml %{_mandir}/man*/abrt-action-analyze-c.* %{_mandir}/man*/abrt-action-trim-files.* %{_mandir}/man*/abrt-action-generate-backtrace.* %{_mandir}/man*/abrt-action-generate-core-backtrace.* %{_mandir}/man*/abrt-action-analyze-backtrace.* %{_mandir}/man*/abrt-action-list-dsos.* -%{_mandir}/man1/abrt-install-ccpp-hook.1.gz +%{_mandir}/man*/abrt-install-ccpp-hook.* +%{_mandir}/man*/abrt-action-install-debuginfo.* +%{_mandir}/man*/abrt-action-analyze-ccpp-local.* +%{_mandir}/man*/abrt-action-analyze-core.* +%{_mandir}/man*/abrt-action-analyze-vulnerability.* +%{_mandir}/man*/abrt-action-perform-ccpp-analysis.* + +%files addon-upload-watch +%defattr(-,root,root,-) +%{_sbindir}/abrt-upload-watch +%if %{with systemd} +%{_unitdir}/abrt-upload-watch.service +%else +%{_initrddir}/abrt-upload-watch +%endif +%{_mandir}/man*/abrt-upload-watch.* %files retrace-client %{_bindir}/abrt-retrace-client %{_mandir}/man1/abrt-retrace-client.1.gz -%{_sysconfdir}/libreport/events.d/ccpp_retrace_event.conf -%{_sysconfdir}/libreport/events/analyze_RetraceServer.xml +%config(noreplace) %{_sysconfdir}/libreport/events.d/ccpp_retrace_event.conf +%{_mandir}/man5/ccpp_retrace_event.conf.5.gz +%{_datadir}/libreport/events/analyze_RetraceServer.xml %files addon-kerneloops %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/libreport/events.d/koops_event.conf +%{_mandir}/man5/koops_event.conf.5.gz %if %{with systemd} %{_unitdir}/abrt-oops.service %else @@ -583,24 +732,29 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_bindir}/abrt-dump-oops %{_bindir}/abrt-action-analyze-oops %{_bindir}/abrt-action-save-kernel-data +%{_mandir}/man1/abrt-dump-oops.1* %{_mandir}/man1/abrt-action-analyze-oops.1* +%{_mandir}/man1/abrt-action-save-kernel-data.1* %files addon-xorg %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/libreport/events.d/xorg_event.conf +%{_mandir}/man5/xorg_event.conf.5.gz %if %{with systemd} %{_unitdir}/abrt-xorg.service %else %{_initrddir}/abrt-xorg %endif %{_bindir}/abrt-dump-xorg -###%{_mandir}/man1/abrt-dump-xorg.1* +%{_mandir}/man1/abrt-dump-xorg.1* %files addon-vmcore %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/libreport/events.d/vmcore_event.conf -%config(noreplace) %{_sysconfdir}/%{name}/abrt-harvest-vmcore.conf -%{_sysconfdir}/libreport/events/analyze_VMcore.xml +%{_mandir}/man5/vmcore_event.conf.5.gz +%config(noreplace) %{_sysconfdir}/%{name}/plugins/vmcore.conf +%{_datadir}/%{name}/conf.d/plugins/vmcore.conf +%{_datadir}/libreport/events/analyze_VMcore.xml %if %{with systemd} %{_unitdir}/abrt-vmcore.service %else @@ -608,17 +762,34 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %{_sbindir}/abrt-harvest-vmcore %{_bindir}/abrt-action-analyze-vmcore +%{_mandir}/man1/abrt-harvest-vmcore.1* +%{_mandir}/man5/abrt-vmcore.conf.5* %{_mandir}/man1/abrt-action-analyze-vmcore.1* +%files addon-pstoreoops +%defattr(-,root,root,-) +%if %{with systemd} +%{_unitdir}/abrt-pstoreoops.service +%else +%{_initrddir}/abrt-pstoreoops +%endif +%{_sbindir}/abrt-harvest-pstoreoops +%{_bindir}/abrt-merge-pstoreoops +%{_mandir}/man1/abrt-harvest-pstoreoops.1* +%{_mandir}/man1/abrt-merge-pstoreoops.1* + %files addon-python %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/%{name}/plugins/python.conf +%{_datadir}/%{name}/conf.d/plugins/python.conf +%{_mandir}/man5/abrt-python.conf.5.gz # TODO? Do we need %config(noreplace) in the below line too? -%{_sysconfdir}/libreport/events.d/python_event.conf +%config(noreplace) %{_sysconfdir}/libreport/events.d/python_event.conf +%{_mandir}/man5/python_event.conf.5.gz %{_bindir}/abrt-action-analyze-python %{_mandir}/man1/abrt-action-analyze-python.1* -%{python_site}/abrt*.py* -%{python_site}/abrt.pth +%{python_sitearch}/abrt*.py* +%{python_sitearch}/abrt.pth %files cli %defattr(-,root,root,-) @@ -639,12 +810,509 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files dbus %defattr(-,root,root,-) %{_sbindir}/abrt-dbus +%{_mandir}/man8/abrt-dbus.8.gz %config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-abrt.conf +%{_datadir}/dbus-1/interfaces/org.freedesktop.Problems.xml %{_datadir}/dbus-1/system-services/org.freedesktop.problems.service %{_datadir}/polkit-1/actions/abrt_polkit.policy -%config(noreplace) %{_sysconfdir}/libreport/events.d/dbus_event.conf +%dir %{_defaultdocdir}/%{name}-dbus%{docdirversion}/ +%dir %{_defaultdocdir}/%{name}-dbus%{docdirversion}/html/ +%{_defaultdocdir}/%{name}-dbus%{docdirversion}/html/*.html +%{_defaultdocdir}/%{name}-dbus%{docdirversion}/html/*.css + +%files python +%{python_sitelib}/problem/ +%{_mandir}/man5/abrt-python.5.gz + +%files python-doc +%{python_sitelib}/problem_examples + +%files console-notification +%config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh %changelog +* Wed Dec 11 2013 Jakub Filak 2.1.10-1 +- abrt-cli: display URL to reports in the details +- abrt-cli list: list all problems by default +- Do not copy Makefiles to documentation. +- harvest_vmcore: Fix absolute path handling +- Speed up journalctl --system support detection +- spec: add abrt's augeas module +- add augeas module for abrt configuration files +- spec: rename CCpp.conf +- rename CCpp.conf man to abrt-CCpp.conf +- spec: move vmcore addon's configuration to a new dir +- vmcore: reorganize configuration +- make: install abrt-harvest-vmcore into share conf.d +- spec: install abrt-harvest-vmcore.conf to share conf.d +- switch to libreport workflows in all report-cli events +- abrtd: use warning level for "Recreating deleted ..." message +- abrt-python: add missing arguments to Crash handler +- spec: adapt recent changes related to abrt-action-notify +- move the notify event from dbus_event.conf to abrt_event.conf +- run the autoreporting event from abrt-action-notify +- spec: install conf to /usr/share/abrt/conf.d +- Load conf from /usr/share/abrt/conf.d and /etc/abrt +- abrt-action-install-debuginfo: fix --exact handling. Fixes rhbz1027786 +- Use bugzilla_formatdup.conf for detected duplicates in python too. Fixes rhbz#875312. +- applet: properly handle incomplete problems +- DBus Problems API: update documentation +- spec: add abrt-action-notify +- factor out the D-Bus notifications into a python script +- adapt post_create event to the recent changes in reporter-ureport +- spec: add Requires: systemd-python for python addon +- shorten CCpp reason message +- abrt-dump-oops: if backtrace is not seen, file an one-line oops. Fixes rhbz#812537 +- Update translations +- Add several manpages +- Resolves: #909536 + +* Sat Oct 26 2013 Jakub Filak 2.1.9-1 +- pyhook: add logging workaround for rhbz#1023041 +- spec: add systemd-python to BuildRequires +- start abrt-handle-event in non-interactive mode +- Log to journal instead of syslog +- Create manpage for xorg.conf +- Configuration UI: instantly apply changes +- applet: reload user configuration before accessing its values +- switch logging from syslog to systemd in f20 - rhbz#1010648 +- make notification messages more clear +- Use log_ family instead of VERBn log calls +- spec: unversioned doc directories in newer fedoras +- don't consider crashes posted to ABRT server as reported +- check return values of fcntl() and setsid() +- remove a dead code uncovered by coverity +- spec: fix file access rights for type and core_bactrace +- spec: move examples to abrt-python-doc package +- install problem examples to python dir +- spec: added the versioned abrt-libs requires to silence rpmdiff +- a-dump-oops: Add new WARNING pattern +- a-a-save-kernel-data: support more kernel flavours +- a-h-event: always compare results of realpath() + +* Fri Oct 04 2013 Jakub Filak 2.1.8-1 +- Disassemble only instruction rage memory if backtrace is too big +- Include floating-point registers in the backtrace +- spec: make addon-ccpp dependent on libreport-python +- polkit: replace deprecated functions with their subtitues +- retrace-client: query CCpp exploitable information from Retrace server; closes #703 +- GUI config: add support for Private ticket option +- a-a-ureport: handle os errors gracefully rhbz#998428 rhbz#998197 +- add prefix from configure to the path of debuginfo installer - closes #701 +- spec: added deps on abrt-python - closes rhbz#1008182 +- spec: remove abrt-dedup-client; closes #702 +- remove abrt-dedup-client; related to #702 +- abrt-*-client: simplify formatting of locale-related headers + +* Wed Sep 11 2013 Jakub Filak 2.1.7-1 +- fix debuginfo installer expecting user input from a pipe - closes #696 +- add environment variable whitelist to debuginfo install wrapper - closes #692 +- add repo_pattern argument as a custom repository filter - closes #688 +- abrt-cli list: replace "@" prefix by "id " prefix +- fix a crash in 'abrt-cli info' when short id isn't found +- Use common string-to-sha1_hash functions. #694 +- doc: update OpenGPGCheck in a-a-save-package-data rhbz#997922 +- abrt-cli report: accept sha1 hashes of directory names. #693 +- abrt-dump-oops: emit a message if throttling for a significant period of time +- abrt-gdb-exploitable: print current instruction +- spec: posttrans scriptlet regenerating core_backtraces +- abrt-handle-event: add check for missing crash thread +- provide tmpfiles.d configuration +- abrt-cli list: use sha1 hash as short ids instead of @N thing. rhbz#906733 +- vmcore: fail gracefully if dump_dir is not accessible +- spec: vmcore: require kexec-tools +- vmcore: use re.MULTILINE instead of numerical value +- vmcore: don't fail if /etc/kdump.conf is not readable +- abrt-cli info: add "-s SIZE" option. closes #689 +- fix noninteractive mode in debuginfo installer - rhbz#737066 +- fixed the gpg keys loading - closes #686 +- Fix type of OPT_BOOL's referenced flag variable - it must be int, not bool! +- adds a kdump.conf parser to get the correct dump dir location, closes #640 +- xorg_event.conf: use abrt-action-list-dsos to create dso_list +- abrt-action-list-dsos: extend it to be able to parse Xorg backtrace. +- don't require debuginfo for vmcore analysis rhbz#768389 +- specfile: make addon-pstoreoops obsolete addon-uefioops +- abrt-dump-oops: add -t option which slows down problem creation. rhbz#902398. +- rename uefioops to pstoreoops rhbz#949721 +- spec: create type element for problem dirs where it doesn't exist - rhbz#958968 +- introduce abrt-upload-watch +- fix ccpp hook to create the type element - closes #682 +- specfile: use systemd-rpm macros. rhbz#850019 +- abrt-harvest-vmcore: notify new path - #657 +- abrt-dump-oops: remove redundant g_list_length() call, make messages clearer +- updated translation - rhbz#860555 +- updated transifex url +- GUI config: add Close/Defaults button +- GUI config: hide option descriptions in tool tips +- GUI config: add Silent shortened reporting support +- applet: silent shortened reporting +- applet: less misleading label for Ignore button +- abrt-handle-upload: switch from shell to python; send socket notification. #657 +- spec: add build requires for XSMP depencies +- applet: update seen list when X Session dies +- improved the error messages in abrt-server - closes #679 +- fix typo in abrt-config-widget.ui +- spec: add new packages abrt-gui-libs and abrt-gui-devel +- delete desktop file for system-config-abrt +- expose abrt configuration GUI in public API +- rewrite abrt-harvest-uefioops to python - closes #678 +- spec: abrt-python is no longer noarch - related #677 +- created python binding for notify_new_path - closes #677 +- spec: install applet's desktop file to system dir +- applet: configure notification source +- rewrite shell script for moving vmcores into python closes #676 +- abrtd: ensure that the dump location directory exists +- a-a-ureport: generate core_backtrace only for CCpp problems +- do not store potentially big data in /tmp +- abrt-dbus: send new problem notify signal to socket +- abrtd: remove "post-create" machinery. Related to #657 +- Avoid leaving stale rpmdb locks behind (rhbz#918184) +- abrtd: improve parsing of pidfile in create_pidfile() +- abrt-dump-{oops,xorg}: send new problem notify signal to socket +- abrtd: disable inotify watch on DUMP_LOC +- abrt-hook-ccpp: send "POST /creation_notification" after creating problem dir +- Stop dying in check_free_space(); rename it to low_free_space() +- abrt-server: make create_problem_dir() run "post-create" +- abrt-handle-event: create DUMP_LOC/post-create.lock when running "post-create" +- abrt-server: add support for "POST /creation_notification" +- abrt-handle-event: free more of allocated data +- Resolves: #850019, #860555, #886094, #902398, #971042 + +* Tue Aug 06 2013 Jakub Filak 2.1.6-3 +- try to generate core_backtrace only for CCpp problems + +* Mon Jul 29 2013 Jakub Filak 2.1.6-2 +- disable gcc unused-typedef warning for GLib +- use right dependencies for RHEL + +* Fri Jul 26 2013 Jakub Filak 2.1.6-1 +- replace functions deprecated in Gtk-3.10 with their substitutes +- integrate with satyr, drop btparser +- use absolute path in python shebang rhzb#987010 +- abrt-action-save-package-data: properly close rpm database. Closes #674. +- abrt-action-save-package-data: fix handling of ProcessUnpackaged on scripts +- abrt-action-save-package-data manpage: typo fix +- change /var/spool/abrt/ to /var/tmp/abrt in doc rhbz#912750 +- Fix RPMdiff warnings about abrtd and abrt-action-install-debuginfo-to-abrt-cache +- specfile: add dependency on abrt-libs to abrt-addon-uefioops +- stop using the hardcoded event list, use workflows instead rhbz#866027 +- retrace-client: build correct release for Fedora Rawhide +- spec: drop unnecessary Obsoletes and Provides +- correct FSF address in python exception hook +- add missing manual pages for binaries and scripts +- fix rpmlint issues in the spec file +- move event option XML files to /usr/share/libreport/ +- abrt-hook-ccpp: always fall back to creating user core. +- dbus: add GetForeignProblems method +- the system tray icon opens recently detected problem +- add gdb python plugin which analyzes coredump for vulnerability +- applet: stop saving configuration at exit +- introduce system-config-abrt +- abrt-cli status: make the output more natural +- Fix wrong path in shell include +- abrt-dump-xorg: save "type=xorg" along with "analyzer=xorg" +- Update python hook to use fixed socket interface +- abrt-server: updates/fixes for future rasdaemon needs +- Resolves: #918184 + +* Fri Jun 14 2013 Jakub Filak 2.1.5-1 +- abrt-retrace-client requires tar closes #635 +- abrt-tui requires abrt closes #633 +- a-d-oops: obtain kernel version from the oops +- a-a-p-ccpp-analysis: import all used attributes +- vmcore: provide all problem elements necessary for the reporting +- a-d-oops: add 'update' command line argument +- a-a-g-core-backtrace: don't crash if kernel file doesn't exist +- a-a-a-vmcore: save kernel version in 'kernel' file +- abrt-cli: make status help message more precise +- abrt-cli status: don't include reported problems into count +- abrt-cli list: implement --since and --until +- abrt-python: open dirs read-only if possible +- dbus: ChownProblemDir method really changes the owner +- python: disable events in collision with anaconda +- abrt-python requires pygobject2 +- systemd units: start services only if it make sense +- abrt-harvest-uefioops.in: test for abrtd after testing for pstore, not before +- make abrt-uefioops.service conditional on /sys/fs/pstore being populated +- dbus: fix SetElement failing when shrinking an item +- spec: fix unowned directories +- abrt-python: whole python API path in POTFILES.skip +- abrt-python: fix dbus compatibility on RHEL6 +- abrt-python: check if gid equals current users gid +- abrt-python: fix tests compatibility with python 2.6 +- abrt-python: pass DD_OPEN_READONLY only if available +- abrt-python: fix deprecation warnings +- console notification shouldn't ask confirmation - closes #652 +- Short BT deduplication false positives workaround +- Only problems of same type can be duplicates +- abrt-python: fix bug in problem.get +- abrt-python: pep8 cleanup +- koops parse: support frame prefix +- don't show non critical errors in console notification +- Resolves: #971194, #966726 + +* Mon May 06 2013 Jakub Filak 2.1.4-3 +- don't show non critical errors in console notification +- use last_occurrence with --since + +* Fri May 03 2013 Jakub Filak 2.1.4-2 +- start abrtd.service after livecd +- udpate translation +- add addon-uefioops + +* Tue Apr 30 2013 Jakub Filak 2.1.4-1 +- build abrtd and setuided executables with full relro rhbz#812284 +- added a console notification script to profile.d closes #641 +- return the right exit code for user cancellation +- add more examples to Problem API doc +- updated translation Related: #951416 +- Replace "THANKYOU" with EXIT_STOP_EVENT_RUN exit code (70) +- abrt-action-ureport: rewrite in python, improve messages +- abrt-cli: added 'status' command +- abrt-cli: make "report -v[vv]" export correct $ABRT_VERBOSE value +- bodhi, retrace: support /etc/os-release +- abrt-action-generate-core-backtrace: be a bit more verbose +- abrt-dump-oops: add "Machine Check Exception" to the list of watched strings rhbz#812537 +- abrt-action-install-debuginfo: do not assume os.execvp never returns +- abrtd: mark unprocessed dump directories as not-reportable +- abrtd: update last occurrence dump dir file +- spec: remove the commented macros rhbz#864851 +- spec: added the versioned abrt-libs requires to silence rpmdiff rhbz#881123 +- spec: create a new subpackage for the console notification #641 +- spec: add deps. required for reporting to abrt-cli pkg +- spec: inc required version of libreport + +* Mon Apr 08 2013 Jakub Filak 2.1.3-2 +- Require correct version of libreport +- Add dependecies required for reporting to abrt-cli package +- Resolves: #948051 + +* Wed Mar 27 2013 Jakub Filak 2.1.3-1 +- record runlevel +- Integration with satyr +- dbus: check correct errno after dump_dir_is_accessible_by_uid() +- require libreport workflow package acc. to OS type +- remove the abrt-gui closes #629 +- retrace-client: do not allow space in os_release_id; closes #625 +- Remove all smolt-related files and code bits +- abrtd: recreate Dump Location directory if it is delete + +* Mon Mar 25 2013 Jakub Filak 2.1.2-3 +- Check if restorecon cmd exists and run it only if it does +- Resolves: #926934 + +* Fri Mar 22 2013 Jakub Filak 2.1.2-2 +- Require correct version of libreport +- Add a patch for abrtd which ensures that the dump location always exists + +* Tue Mar 19 2013 Jakub Filak 2.1.2-1 +- Improve log messages +- Update translation +- Introduce helpers for management of list of ignored problems +- applet: show a confirmation notify bubble for reported problems in ShortenedReporting mode +- applet: mark problems as ignored and don't notify ignored problems +- applet: remove confusing "Show" button +- applet: pass problem's id to the gui app +- abrt-ccpp: try to read hs_err.log from crash's CWD +- abrt-action-perform-ccpp-analysis: Complain if analyze_RetraceServer can't run. Closes 619 +- abrt-gui: change URL to point to most recent doc +- add abrt-action-analyze-ccpp-local to ccpp-addon related to rhbz#759443 +- analyze-ccpp don't suid to abrt when run as root, related rhbz#759443 +- abrtd: prohibit DumpLocation == WatchCrashdumpArchiveDir. Closes rhbz#854668 +- abrtd: don't blame interpreter, blame the running script #609 +- a-a-ureport: don't fail on missing counter file +- a-a-ureport: allow to send ureport more than once +- dbus doc: install abrt-dbus documentation files to the correct places +- dbus doc: extend the documentation of DBus API +- dbus doc: make xml interface parseable by qtdbusxml2cpp +- dbus: add basics to a new problem +- abrt-harvest-vmcore: don't copy dir from var/spool if copy already exists +- fix path in the collect_xsession_errors event +- retrace-client: print dots instead of repeated status message +- move abrt.pth to arch specific location rhbz#912540 +- Make forking code paths more robust. +- add more logging to catch "stuck core-backtrace" problem; reduce gdb looping +- Resolves: #879160, #854668, #885044, #903005, #905412, #909968, #912540 + +* Tue Mar 05 2013 Jakub Filak 2.1.1-3 +- disable shortened and auto reporting in RHEL +- Resolves: #918040, #918041 + +* Tue Mar 05 2013 Jakub Filak 2.1.1-2 +- remove ureport events from the reporting workflow in RHEL + +* Fri Feb 04 2013 Jakub Filak 2.1.1-1 +- add SETGID bit to abrt-action-install-debuginfo-to-abrt-cache +- add abrt-desktop depency on libreport-fedora +- abrt-dump-{oops,xorg}: limit amount of created dirs, add cooldown sleep if exceeded +- abrt-watch-log: handle a case when child doesn't process its input +- abrt-watch-log: fix a bug in mmap error check +- abrt-action-analyze-xorg: fix the case with DIR != "." +- Resolves: #908256 + +* Mon Feb 04 2013 Jakub Filak 2.1.0-1 +- pkg-config: export defaultdumplocation variable +- configure: set default dump location to /var/tmp/abrt +- abrtd: sanitize mode and ovner of all elements +- updated translation +- abrtd-inotify-flood test: expend it to check for another inotify-related bug +- gnome-abrt is default GUI +- applet: on requrest open gnome-abrt instead of abrt-gui +- Make it so that g_io_channel_read_chars(channel_inotify) does not buffer data. +- multilib fixes +- daemon: unify accessibility check before delete with dbus +- dbus: move dir accessibility check from abrt to libreport +- dbus: user dd_chown instead of own impl. +- allow default dump directory to be configured through cmd line args +- introduce abrt-python +- reporter-bz: post a comment to dup bug, if we found a dup. version 2. +- replace left over magic dd modes by macro +- synchronize default dump dir mode with libreport +- replace all occurrences of hardcoded dump location by a variable +- harvest-vmcore: read dump dir path from configuration +- use lchown when chowning files over dbus +- use lchown when chowning newly created problem directory +- verify-that-report-edits test: fix to account for new CLI interface +- koops: add all x86 TRAP prefixes to list of suspicious strings +- koops: put all suspicious strings to global variable +- applet: extend comment. No code changes +- applet: introduce shortened reporting +- abrt-applet: handle SIGTERM and perform nice termination +- abrt-applet: update the seen list on every possible action +- applet: don't notify outdated new problems +- Add and use "report-cli" event instead of removed "report-cli -r" option +- fixed the relro flags rhbz#812284 +- applet: unref unused GIOChannel +- Resolves: #892230, #895742 + +* Thu Dec 20 2012 Jiri Moskovcak 2.0.20-1 +- New version 2.0.20 +- Fix typo: usefull->useful +- koops: generate core backtrace if missing +- udpated po files +- Cosmetic fixes in abrtd-inotify-flood test +- Hook up abrtd-inotify-flood to test infrastructure +- Add a testcase for inotify flood +- replace 'Start Autoreport' btn by a popup dialog +- dbus: NewProblem returns full path as problem_id +- abrt-action-analyze-xorg: fix /usr/include/paths.h -> paths.h +- abrtd: set inotify fd to non-blocking mode; ignore 0-sized inotify reads. Closes rhbz#873815 +- s/ABRT dump/problem directory/g +- abrt-applet: don't leak component name +- abrt-applet: alerts only not reported problems +- build system: Remove leftover of abrt-action-analyze-xorg shell script +- Rewrite abrt-action-analyze-xorg in C (partially) +- rework abrt-gui>Help>'Report problem with ABRT' +- abrt-action-analyze-oops: fix help text - we have no -s option +- Help text fix - using "problem directory" consistently +- abrt-dump-oops: add list of tainted modules to NOT_REPORTABLE string. Closes trac#821 +- a-a-p-c-a: use ask_yes_no_yesforever() fn from reportclient +- abrt-dump-oops: save /proc/modules contents. Partially closes trac#821 +- add ureporter wrapper sending ureport only once per problem dir +- introduce Desktop Session Autoreporting +- add Autoreporting configuration options +- abrt-action-analyze-xorg: robustify 'test "a" = "b"' against bugs +- Collect ~/.xsession_errors from its new path, if it is there. Closes trac#791 +- reflect recent libreport API changes .trac#822 +- Indentation fix. No code changes. +- minor fix to previous commit realted to .trac#541 +- don't use gtk_main* when using gtk_application .trac#890 +- minor fix to quit button +- Make "Open problem data" open the expert mode GUI +- Teach kernel oops hash to ignore "" / "" prefixes. Closes rhbz#875852 +- introduce DeleteElement D-Bus method +- introduce SetElement D-Bus method +- allow only one instance of gui trac#541 +- runtests/bugzilla-comment-format: fix false positive AGAIN +- update translations +- a-a-p-c-a: use correct name in gettext initialization +- Fix build system so that make rpm works again +- runtests/bugzilla-comment-format: fix false positive +- Improve xorg post-create. closes trac#838 +- Update po files +- fix problem occurrence counter updating algorithm +- abrt-dbus: immediately return an error if not-existing problem is requested +- bugzilla-comment-format: new test +- a-a-p-c-a: use event python API instead of abrt-handle-event +- doc: add dbus problems service specification + +* Mon Nov 26 2012 Jakub Filak 2.0.19-2 +- update translations +- Resolves: #880230 + +* Wed Nov 14 2012 Jakub Filak 2.0.19-1 +- call g_type_init() only in GLib version < 2.35 +- plugins/*_event.conf: use reporter-bz -F FMTFILE as appropriate +- repeat unchaged retrace status message only in verbose mode +- check the correct return value of yesforever answer +- abrt-handle-event: forward event process requests to parent +- don't leak optional retrace path and kernel tainted string +- enhance koops tainted flag parser +- Use "comment" element instead of "description" +- Resolves: #873488 + +* Thu Nov 01 2012 Jakub Filak 2.0.18-1 +- bugzilla-dupe-search: fix os_release to contain the same OS version as bug 755535 +- Do not stop reporting when GConf entry is not found. Closes rhbz#869833 +- Fix false positive caused by English language fix +- pyhook: import inspect lazily +- Resolves: #869833 + +* Wed Oct 24 2012 Jakub Filak 2.0.17-2 +- remove ABRT1.0-to-ABRT2.0 upgrade script from spec file + +* Wed Oct 24 2012 Jakub Filak 2.0.17-1 +- provide a problem item containing versions of binaries listed in Xorg backtrace + Adresses #867694 comment 1 +- import rpm lazily +- Resolves: #864324 + +* Wed Oct 17 2012 Jakub Filak 2.0.16-1 +- xorg_event: make post-create save dmesg, drop problems w/ binary modules + Partially addresses: #856790 +- collect_xsession_errors should not fail if !xsession-errors + Resolves: #866698 + +* Thu Oct 11 2012 Jakub Filak 2.0.15-1 +- add collect_* event to reporting chains for CCpp/Python/Kernel +- core-backtrace: make sure kernel version does not contain spaces +- core-backtrace: also include '?' flag for kerneloops +- don't check EXECUTABLE if it isn't present in list +- retrace-client: check whether all included files are regular +- abrt_exception_handler.py: save 'environ' element +- add Makefile target release-fix +- Make it possible for developer to disable crash processing for specific apps. Closes rhbz#848786 +- s/Dump directory/Problem directory/ +- Resolves: #864014, #864331, #848786 + +* Sun Oct 07 2012 Jakub Filak 2.0.14-2 +- added forgotten Requires + +* Fri Oct 05 2012 Jakub Filak 2.0.14-1 +- abrt-dump-oops: save /sys/kernel/debug/suspend_stats. Closes rhbz#787749 +- abrt-hook-ccpp: save /proc/sys/crypto/fips_enabled value if it isn't "0". Closes rhbz#747870 +- abrt-dump-oops: save /proc/sys/crypto/fips_enabled value if it isn't "0". Closes rhbz#747870 +- abrt-action-analyze-oops: fail if we end up hashing "" (empty string). Closes rhbz#862013 +- retrace-client: respect chrooted os_release in pkgcheck +- Added oops_recursive_locking1.right to Makefile.am +- fix koops-parser.at, remove bastardized copy of oops_recursive_locking1.test +- add new oops example (currently fails, the fix is coming up) +- fix oops jiffies time stamp counter removal code +- trivia: s/dump/problem directory; fix false positive in oops-with-jiffies.right +- testsuite: added f18 kickstart +- open files for appned not for write rhbz#854266 +- added more info about locking - rewrote with vda's comments rhbz#859724 +- ccpp_event.conf: ignore crashes with nonzero TracerPid. Closes rhbz#812350 +- show more info when abrtd can't acquire lock on pid, related to rhbz#859724 +- abrt-hook-ccpp: save "proc_pid_status" element +- use FILENAME_ABRT_VERSION instead of string literal +- Fix pyhook test to reflect changes made in write_dump +- trac#333: Add code generating dso_list to the python hook +- spec: tui should require libreport-cli rhbz#859770 +- trac#682: emit Crash DBus signal on org.freedesktop.problems bus +- spec: added deps on elfutils rhbz#859674 +- Resolves: #859674, #859770, #859724, #812350, #854266, #862013, #747870, #787749 + * Fri Sep 21 2012 Jiri Moskovcak 2.0.13-1 - diff --git a/abrt1_to_abrt2 b/abrt1_to_abrt2 deleted file mode 100755 index 978c38f..0000000 --- a/abrt1_to_abrt2 +++ /dev/null @@ -1,115 +0,0 @@ -#! /usr/bin/python -#-*- coding: utf-8 -*- - -import os - -# abrt_v4 TABLE columns: -UUID = 0 -UID = 1 -INFORMALL = 2 -DUMPDIR_PATH = 3 -COUNT = 4 -REPORTED = 5 -TIME = 6 -MESSAGE = 7 - -# abrt_v4_reportresult columns: -#UUID = 0 -#UID = 1 -REPORTER = 2 -RESULT_MESSAGE = 3 - -def get_db_path(): - path = "/var/spool/abrt/abrt-db" - try: - with open("/etc/abrt/plugins/SQLite3.conf") as f: - for line in f: - line = line.split('=', 1) - if len(line) == 2 and line[0].strip() == "DBPath": - path = line[1].strip() - except Exception, ex: - pass - return path - -def get_url_from_text(text): - url_marks = ["http://", "https://", "ftp://", "ftps://", "file://"] - lines = text.split('\n') - url = "" - for mark in url_marks: - for line in lines: - last_mark = line.find(mark) - if last_mark != -1: - url_end = line.find(' ',last_mark) - if url_end == -1: - url_end = len(line) - url = "URL=" + line[last_mark:url_end] - return url - -def format_reported_to(reported_to): - reporter = reported_to[REPORTER] - url = get_url_from_text(reported_to[RESULT_MESSAGE]) - if not url: - url = reported_to[RESULT_MESSAGE] - return reporter + ": " + url - -if __name__ == "__main__": - try: - from sqlite3 import dbapi2 as sqlite - db = sqlite.connect(get_db_path()) - crashes = db.execute("SELECT * FROM abrt_v4") - # abrt_v4 TABLE columns: - # UUID | UID | INFORMALL | DUMPDIR_PATH | COUNT | REPORTED | TIME | MESSAGE - for crash in crashes: - # abrt_v4_reportresult columns: - # UUID | UID | REPORTER | MESSAGE - report_results = db.execute("SELECT * FROM abrt_v4_reportresult WHERE UUID='%s'" % crash[UUID]) - - # save count from db to file - count_file = "%s/count" % crash[DUMPDIR_PATH] - # don't overwrite - if not os.path.exists(count_file): - try: - fout = open(count_file, "w") - fout.write(str(crash[COUNT])) - fout.close() - except Exception, ex: - # silently ignore errors -> probably stalled db, but we can't - # do much about it, so it's better to not polute the rpm output - pass - - # save uuid from db to file - uuid_file = "%s/uuid" % crash[DUMPDIR_PATH] - # don't overwrite - if not os.path.exists(uuid_file): - try: - fout = open(uuid_file, "w") - fout.write(str(crash[UUID])) - fout.close() - except Exception, ex: - # silently ignore errors -> probably stalled db, but we can't - # do much about it, so it's better to not polute the rpm output - pass - - results = report_results.fetchall() - if results: - # save report results from db to file - reported_to_file = "%s/reported_to" % crash[DUMPDIR_PATH] - if not os.path.exists(reported_to_file): - try: - fout = open(reported_to_file, "w") - except Exception, ex: - # silently ignore errors -> probably stalled db, but we can't - # do much about it, so it's better to not polute the rpm output - continue - - for report_result in results: - # print "\t", format_reported_to(report_result) - # I know, it adds a '\n' to the end, but it's not a problem - fout.write("%s\n" % format_reported_to(report_result)) - fout.close() - db.close() - except Exception, ex: - # in case of any unhandled error, just ignore it, the worst, what - # can happen is that the old reports are marked as unreported - #print ex - pass diff --git a/sources b/sources index a21c943..26c34c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -38d882e5a67efe80abde806188e33953 abrt-2.0.13.tar.gz +eb3a8430cd0fdacddc5ac3dd74e92142 abrt-2.1.10.tar.gz