From 6677b9143a551b9f6303e996fbfbd1aa6eef1c69 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Fri, 25 Aug 2017 13:59:18 +0200 Subject: [PATCH 1/4] New upstream release 2.9.2 Signed-off-by: Matej Habrnal --- ...spaces-on-eol-around-value-separator.patch | 100 ------------------ ...-journal-add-journal-default-entries.patch | 63 ----------- ...-s-journal-add-count-to-default-logs.patch | 37 ------- libreport.spec | 34 ++++-- sources | 2 +- 5 files changed, 29 insertions(+), 207 deletions(-) delete mode 100644 0001-augeas-trim-spaces-on-eol-around-value-separator.patch delete mode 100644 0002-reporter-s-journal-add-journal-default-entries.patch delete mode 100644 0003-reporter-s-journal-add-count-to-default-logs.patch diff --git a/0001-augeas-trim-spaces-on-eol-around-value-separator.patch b/0001-augeas-trim-spaces-on-eol-around-value-separator.patch deleted file mode 100644 index 75e8a49..0000000 --- a/0001-augeas-trim-spaces-on-eol-around-value-separator.patch +++ /dev/null @@ -1,100 +0,0 @@ -From bc3149ba31c063d334dd95a21c4214cef11f46da Mon Sep 17 00:00:00 2001 -From: Julius Milan -Date: Wed, 22 Mar 2017 14:10:04 +0100 -Subject: [PATCH] augeas: trim spaces on eol, around value separator - -Resolves abrt/libreport#474 -Related to rhbz#1434414 ---- - augeas/libreport.aug | 19 ++++++++++++------- - augeas/test_libreport.aug | 20 ++++++++++++++++++++ - 2 files changed, 32 insertions(+), 7 deletions(-) - -diff --git a/augeas/libreport.aug b/augeas/libreport.aug -index 483eeaf..46ffb73 100644 ---- a/augeas/libreport.aug -+++ b/augeas/libreport.aug -@@ -2,19 +2,24 @@ module Libreport = - autoload xfm - - (* Define useful primitives *) -- let value_sep = del / ?= ?/ " = " -- let value_to_eol = store /([^ \t\n].*[^ \t\n]|[^ \t\n]?)/ -- let eol = del /\n/ "\n" -- let ident = /[a-zA-Z][a-zA-Z_]+/ -+ let val_sep = del /[ \t]*=[ \t]*/ " = " -+ let val = store /([^ \t\n].*[^ \t\n]|[^ \t\n])/ -+ let eol = del /\n/ "\n" -+ let whitespace_eol = del /[ \t]*\n/ "\n" -+ let ident = /[a-zA-Z][a-zA-Z_]+/ - - (* Define comment *) -- let comment = [ label "#comment" . del /#[ \t]*/ "# " . value_to_eol . eol ] -+ let commented_line = [ label "#comment" . del /#[ \t]*/ "# " . val . eol ] -+ let empty_comment = [ label "#comment" . value "" . del /#[ \t]*/ "# " . eol ] -+ let comment = commented_line | empty_comment - - (* Define empty *) -- let empty = [ del /[ \t]*\n/ "\n" ] -+ let empty = [ del /[ \t]*\n/ "\n" ] - - (* Define option *) -- let option = [ del /[ \t]*/ "" . key ident . value_sep . value_to_eol . eol ] -+ let option_val = [ del /[ \t]*/ "" . key ident . val_sep . val . whitespace_eol ] -+ let option_no_val = [ value "" . del /[ \t]*/ "" . key ident . val_sep . eol ] -+ let option = option_val | option_no_val - - (* Define lens *) - let lns = ( comment | empty | option )* -diff --git a/augeas/test_libreport.aug b/augeas/test_libreport.aug -index 116e97c..3dfbfa6 100644 ---- a/augeas/test_libreport.aug -+++ b/augeas/test_libreport.aug -@@ -16,6 +16,8 @@ Password = - # bugs in selinux-policy component. - # (If you need to add more, the syntax is: \"component[,component...]\") - # -+# -+# - DontMatchComponents = selinux-policy - - # for more info about these settings see: https://github.com/abrt/abrt/wiki/FAQ#creating-private-bugzilla-tickets -@@ -25,6 +27,14 @@ PrivateGroups=private - Whitespace_two=start - Whitespace_three =start - Whitespace_four= start -+ -+AssignmentWhitespace_a =what -+ AssignmentWhitespace_b = an -+AssignmentWhitespace_c= original -+ AssignmentWhitespace_d = idea -+ -+EOLWhitespace_a = nice -+EOLWhitespace_b = nice - " - - test Libreport.lns get conf = -@@ -44,6 +54,8 @@ PrivateGroups=private - { "#comment" = "bugs in selinux-policy component." } - { "#comment" = "(If you need to add more, the syntax is: \"component[,component...]\")" } - { "#comment" = "" } -+ { "#comment" = "" } -+ { "#comment" = "" } - { "DontMatchComponents" = "selinux-policy" } - {} - { "#comment" = "for more info about these settings see: https://github.com/abrt/abrt/wiki/FAQ#creating-private-bugzilla-tickets" } -@@ -53,3 +65,11 @@ PrivateGroups=private - { "Whitespace_two" = "start" } - { "Whitespace_three" = "start" } - { "Whitespace_four" = "start" } -+ {} -+ { "AssignmentWhitespace_a" = "what" } -+ { "AssignmentWhitespace_b" = "an" } -+ { "AssignmentWhitespace_c" = "original" } -+ { "AssignmentWhitespace_d" = "idea" } -+ {} -+ { "EOLWhitespace_a" = "nice" } -+ { "EOLWhitespace_b" = "nice" } --- -2.9.3 - diff --git a/0002-reporter-s-journal-add-journal-default-entries.patch b/0002-reporter-s-journal-add-journal-default-entries.patch deleted file mode 100644 index 745ac09..0000000 --- a/0002-reporter-s-journal-add-journal-default-entries.patch +++ /dev/null @@ -1,63 +0,0 @@ -From f97b21d1e1d4bff4e667991997dd78fec3b95159 Mon Sep 17 00:00:00 2001 -From: Matej Habrnal -Date: Tue, 14 Mar 2017 12:55:25 +0100 -Subject: [PATCH] reporter-s-journal: add journal default entries - -This commit adds 3 new fields into journal logs. All of them are in the -NONE dump. - -The new fields are: -PROBLEM_DIR - Represents absolute file system path of problem directory. - The full path is needed because that is the way with which are - problems identified in DBus Problems2API. -PROBLEM_UUID - Represents uuid -PROBLEM_DUPHASH - Represents duphash - -These new fields were needed for ABRT in Cockpit for connecting problems -with journal entries. All three are needed, because the problem directory -might be removed at the time of reading journal but a dupe can be -present there and the dupe can be identified based on DUPHASH or UUID. - -Signed-off-by: Matej Habrnal ---- - src/plugins/reporter-systemd-journal.c | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -diff --git a/src/plugins/reporter-systemd-journal.c b/src/plugins/reporter-systemd-journal.c -index 8df5ac7..957002b 100644 ---- a/src/plugins/reporter-systemd-journal.c -+++ b/src/plugins/reporter-systemd-journal.c -@@ -102,6 +102,7 @@ static void msg_content_free(msg_content_t *msg_c) - #define BINARY_NAME "binary" - #define SYSLOG_ID "SYSLOG_IDENTIFIER" - #define MESSAGE_ID "MESSAGE_ID" -+#define DUMPDIR_PATH "DIR" - - enum { - DUMP_NONE = 1 << 0, -@@ -122,6 +123,9 @@ static const char *const fields_default[] = { - FILENAME_EXCEPTION_TYPE , - FILENAME_REASON , - FILENAME_CRASH_FUNCTION , -+ DUMPDIR_PATH , -+ FILENAME_UUID , -+ FILENAME_DUPHASH , - NULL - }; - -@@ -302,6 +306,12 @@ int main(int argc, char **argv) - if (binary_name) - problem_data_add_text_noteditable(problem_data, BINARY_NAME, binary_name); - -+ /* add problem dir path into problem data */ -+ char *abspath = realpath(dump_dir_name, NULL); -+ if (abspath) -+ problem_data_add_text_noteditable(problem_data, DUMPDIR_PATH, abspath); -+ free(abspath); -+ - /* crash_function element is neeeded by systemd journal messages, save ??, if it doesn't exist */ - const char *crash_function = problem_data_get_content_or_NULL(problem_data, FILENAME_CRASH_FUNCTION); - if (!crash_function) --- -2.9.3 - diff --git a/0003-reporter-s-journal-add-count-to-default-logs.patch b/0003-reporter-s-journal-add-count-to-default-logs.patch deleted file mode 100644 index f969d50..0000000 --- a/0003-reporter-s-journal-add-count-to-default-logs.patch +++ /dev/null @@ -1,37 +0,0 @@ -From d2b5f09e2757f2585eb1003fdf6db43e58013c19 Mon Sep 17 00:00:00 2001 -From: Matej Marusak -Date: Tue, 21 Mar 2017 09:04:38 +0100 -Subject: [PATCH] reporter-s-journal: add count to default logs - -Field count is available only in FULL dump. There are however two good -reasons why to include this in NONE dump. - -1. It is quite useful to know if this problem occurred first time or is it -problem that happens a lot. - -2. We need it for cockpit integration. If the problem happened more times it -will have multiple logs. By comparing count in the log and real count, we can -know, if this is the last log of the problem. (timestamps do not work ideally -for this, since the time of problem does not equal to the time of the -log - there is some delay) - -Signed-off-by: Matej Marusak ---- - src/plugins/reporter-systemd-journal.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/plugins/reporter-systemd-journal.c b/src/plugins/reporter-systemd-journal.c -index 957002b..d12296e 100644 ---- a/src/plugins/reporter-systemd-journal.c -+++ b/src/plugins/reporter-systemd-journal.c -@@ -126,6 +126,7 @@ static const char *const fields_default[] = { - DUMPDIR_PATH , - FILENAME_UUID , - FILENAME_DUPHASH , -+ FILENAME_COUNT , - NULL - }; - --- -2.9.3 - diff --git a/libreport.spec b/libreport.spec index 09e0440..80a0ac2 100644 --- a/libreport.spec +++ b/libreport.spec @@ -2,11 +2,12 @@ %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define satyr_ver 0.22 +%define glib_ver 2.43 Summary: Generic library for reporting various problems Name: libreport -Version: 2.9.1 -Release: 4%{?dist} +Version: 2.9.2 +Release: 1%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -14,9 +15,6 @@ Source1: autogen.sh # git format-patch %%{Version} -N -M --topo-order # i=0; for p in `ls 0*.patch`; do printf "Patch%04d: %s\n" $i $p; ((i++)); done -Patch0000: 0001-augeas-trim-spaces-on-eol-around-value-separator.patch -Patch0001: 0002-reporter-s-journal-add-journal-default-entries.patch -Patch0002: 0003-reporter-s-journal-add-count-to-default-logs.patch # git is need for '%%autosetup -S git' which automatically applies all the # patches above. Please, be aware that the patches must be generated @@ -40,6 +38,7 @@ BuildRequires: xmlto BuildRequires: newt-devel BuildRequires: libproxy-devel BuildRequires: satyr-devel >= %{satyr_ver} +BuildRequires: glib2-devel >= %{glib_ver} BuildRequires: glibc-all-langpacks BuildRequires: xmlrpc-c-devel @@ -57,6 +56,7 @@ BuildRequires: sed Requires: libreport-filesystem = %{version}-%{release} Requires: satyr >= %{satyr_ver} +Requires: glib2 >= %{glib_ver} Requires: xz Requires: lz4 @@ -441,7 +441,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) -%doc README +%doc README.md %license COPYING %config(noreplace) %{_sysconfdir}/%{name}/libreport.conf %config(noreplace) %{_sysconfdir}/%{name}/report_event.conf @@ -733,6 +733,28 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Aug 25 2017 Matej Habrnal 2.9.2-1 +- Translation updates +- logging: rename log() to log_warning() +- reporter-mantisbt: Fix typo in help +- bugzilla: add check if option -d was entered +- dd: extend create_dump_dir to allow set pid in dumpdir name +- wizard: replace deprecated gtk3 functions +- lib: replace hash table with list +- fix newline issue with ask_password +- lib: make cpuinfo files user editable +- reporter-s-journal: add count to default logs +- augeas: trim spaces on eol, around value separator +- reporter-s-journal: add journal default entries + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.9.1-6 +- Python 3 binary package renamed to python3-libreport +- Missing Provides wihtout %%_isa added in python 2 binary package + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.9.1-5 +- Python 2 binary package renamed to python2-libreport + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 2.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index b0b969e..8a41c1d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libreport-2.9.1.tar.gz) = 2cffb44fd8da625a9a0613f91ce3d485fe21b0a1f5932f6d6bfbdb4d41337f95c49f525556596aeef2fc3737015151d43250f287dc624f97469f087ff9213bde +SHA512 (libreport-2.9.2.tar.gz) = 2438a9f994a66d2f207d421ddc7bc45be5a803e5527967d8a79a06a5361e935caa106f69883b822664175df561a39bed33a744590bd9341173802972ab942085 From 9c81be1de21a2c59be1907479d2940db2afb5418 Mon Sep 17 00:00:00 2001 From: Julius Milan Date: Thu, 2 Nov 2017 18:07:13 +0100 Subject: [PATCH 2/4] New upstream release 2.9.3 Signed-off-by: Julius Milan --- libreport.spec | 930 ++++--------------------------------------------- sources | 2 +- 2 files changed, 62 insertions(+), 870 deletions(-) diff --git a/libreport.spec b/libreport.spec index 80a0ac2..73c05e0 100644 --- a/libreport.spec +++ b/libreport.spec @@ -1,12 +1,12 @@ # platform-dependent %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%define satyr_ver 0.22 +%define satyr_ver 0.24 %define glib_ver 2.43 Summary: Generic library for reporting various problems Name: libreport -Version: 2.9.2 +Version: 2.9.3 Release: 1%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ @@ -91,23 +91,25 @@ Requires: libreport-web = %{version}-%{release} %description web-devel Development headers for libreport-web -%package python +%package -n python2-libreport Summary: Python bindings for report-libs -# Is group correct here? - Requires: libreport = %{version}-%{release} -Requires: dnf -Provides: report = 0:0.23-1 -Obsoletes: report < 0:0.23-1 +Requires: python2-dnf # in report the rhtsupport is in the main package, so we need to install it too # report is only in RHEL6, we do not need to carry the dependency to newer RHELs %if 0%{?rhel} == 6 Requires: libreport-plugin-rhtsupport = %{version}-%{release} %endif +%{?python_provide:%python_provide python2-libreport} +# Remove before F30 +Provides: %{name}-python = %{version}-%{release} +Provides: %{name}-python%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} -%description python +%description -n python2-libreport Python bindings for report-libs. -%package python3 +%package -n python3-libreport Summary: Python 3 bindings for report-libs %if 0%{?_module_build} # This is required for F26 Boltron (the modular release) @@ -120,9 +122,14 @@ Requires: libreport >= %{version}-%{distfreerelease} %else Requires: libreport = %{version}-%{release} %endif -Requires: dnf +Requires: python3-dnf +%{?python_provide:%python_provide python3-libreport} +# Remove before F30 +Provides: %{name}-python3 = %{version}-%{release} +Provides: %{name}-python3%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python3 < %{version}-%{release} -%description python3 +%description -n python3-libreport Python 3 bindings for report-libs. %package cli @@ -395,7 +402,16 @@ rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELBugzillaXorg.xml rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELBugzillaLibreport.xml rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELBugzillaJava.xml rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELBugzillaJavaScript.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataCCpp.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataKerneloops.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataPython.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDatavmcore.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataxorg.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataLibreport.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataJava.xml +rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_RHELAddDataJavaScript.xml rm -f %{buildroot}/%{_sysconfdir}/libreport/workflows.d/report_rhel.conf +rm -f %{buildroot}/%{_sysconfdir}/libreport/workflows.d/report_rhel_add_data.conf rm -f %{buildroot}/%{_sysconfdir}/libreport/workflows.d/report_uReport.conf rm -f %{buildroot}/%{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf rm -f %{buildroot}%{_mandir}/man5/report_rhel.conf.5 @@ -504,11 +520,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_includedir}/libreport/libreport_curl.h %{_libdir}/pkgconfig/libreport-web.pc -%files python +%files -n python2-libreport %{python_sitearch}/report/* %{python_sitearch}/reportclient/* -%files python3 +%files -n python3-libreport %{python3_sitearch}/report/* %{python3_sitearch}/reportclient/* @@ -640,6 +656,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %config(noreplace) %{_sysconfdir}/libreport/plugins/rhtsupport.conf %{_datadir}/%{name}/conf.d/plugins/rhtsupport.conf %{_datadir}/%{name}/events/report_RHTSupport.xml +%{_datadir}/%{name}/events/report_RHTSupport_AddData.xml %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml %config(noreplace) %{_sysconfdir}/libreport/events.d/rhtsupport_event.conf %{_mandir}/man1/reporter-rhtsupport.1.gz @@ -692,8 +709,17 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/%{name}/workflows/workflow_RHELLibreport.xml %{_datadir}/%{name}/workflows/workflow_RHELJava.xml %{_datadir}/%{name}/workflows/workflow_RHELJavaScript.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataCCpp.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataJava.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataKerneloops.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataLibreport.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataPython.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDatavmcore.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataxorg.xml +%{_datadir}/%{name}/workflows/workflow_RHELAddDataJavaScript.xml %{_datadir}/%{name}/workflows/workflow_uReport.xml %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel.conf +%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_add_data.conf %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_uReport.conf %{_mandir}/man5/report_rhel.conf.5.* %{_mandir}/man5/report_uReport.conf.5.* @@ -733,6 +759,27 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Nov 02 2017 Julius Milan 2.9.3-1 +- Translation updates +- commit to delete +- workflows: fix description in workflow_RHELJavaScript.xml.in +- workflows: add workflow for adding data to existing case +- client-python,report-python: Allow python to be optional at build time +- ignored words: add SYSTEMD_NSS_BYPASS_BUS +- reporter-ureport: add 'ProcessUnpackaged' option +- spec: add workflow for adding data to existing case +- rep-sys-journal: fix in finding executable basename +- remove old obsolete +- Group is not used any more +- remove old changelogs +- requires pythonX-dnf instead of dnf +- doc: fix obsolete doxygen tags & complains +- lib: Introduce pid_for_children element from ns +- client-python: Do not try to unlink None +- spec: rename Python binary packages +- Introduce pid_for_children element from ns +- Resolves: #1489611, #1416277, #1395285 + * Fri Aug 25 2017 Matej Habrnal 2.9.2-1 - Translation updates - logging: rename log() to log_warning() @@ -746,6 +793,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - reporter-s-journal: add count to default logs - augeas: trim spaces on eol, around value separator - reporter-s-journal: add journal default entries +- Resolves: #1481205 * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.9.1-6 - Python 3 binary package renamed to python3-libreport @@ -940,859 +988,3 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : * Wed Jul 22 2015 Matej Habrnal 2.6.2-2 - Use a dgettext function returning strings instead of bytes - -* Fri Jul 17 2015 Jakub Filak 2.6.2-1 -- avoid starvation in processes concurrently accessing a dump directory -- bugzilla: Add check for extra-cc file - -* Fri Jul 03 2015 Matej Habrnal 2.6.1-1 -- add functionality to use consumer certificate -- improve client.h documentation -- support new dump dir element 'tid' -- reportclient: minor python style fixes -- fix dnf logging -- don't log attempts to load non-existent files -- fix in dialog ask_yes_no_save_result - -* Wed Jun 17 2015 Fedora Release Engineering - 2.6.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu Jun 11 2015 Jakub Filak 2.6.0-2 -- remove pygobject3 from Requires of libreport-gtk -- Resolves: #1230420 - -* Tue Jun 09 2015 Jakub Filak 2.6.0-1 -- harden the code against directory traversal, symbolic and hard link attacks -- fix a bug causing that the first value of AlwaysExcludedElements was ignored -- fix missing icon for the "Stop" button icon name -- switch the default dump dir mode to 0640 -- fix races in dump directory handling code -- improve development documentation -- translations updates - -* Wed May 20 2015 Matej Habrnal 2.5.1-2 -- reporter-mantisbt: switch from 'analyzer' to 'type' -- report client: provide cpio log when unpacking fails -- report client: check owner of /var/cache/abrt-di when unpacking fails -- reporter-mantisbt: add event for reporting AVCs -- translations updates -- bugzilla: Spell Bugzilla, not BZ in UI - -* Thu Apr 09 2015 Jakub Filak 2.5.1-1 -- Translation updates -- problem_data: cache problem_item size - -* Sat Mar 21 2015 Jakub Filak 2.5.0-2 -- remove libreport-python from libreport's Requires - -* Wed Mar 18 2015 Jakub Filak 2.5.0-1 -- spec: require dnf instead of yum -- Port reportclient to python3 -- reportclient: introduce DNF debug info downloader -- Python 3 compatibility -- report-python: fix getVersion_fromOSRELEASE -- ignored words: ignore lxqt-openssh-askpass -- spec: don't pull libreport-python with libreport -- Resolves: #1156485, #1168494 - -* Sat Feb 21 2015 Till Maas - 2.4.0-3 -- Rebuilt for Fedora 23 Change - https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code - -* Fri Feb 20 2015 Jakub Filak 2.4.0-2 -- bump required satyr verion - -* Fri Feb 20 2015 Jakub Filak 2.4.0-1 -- introduce reporter-mantisbt -- introduce global configuration -- gui: try to reduce false positive sensitive words -- lib: add Problem Format API -- Resolves: #1168494 - -* Mon Dec 08 2014 Jakub Filak 2.3.0-8 -- fix several python3 incompatibilities -- switch back from FAF2 to FAF - -* Fri Nov 28 2014 Jakub Filak 2.3.0-7 -- anaconda: filter out rootpw lines -- highglit OpenStack related strings -- ureport: do not bother user with the configuration window - -* Thu Nov 13 2014 Jakub Filak 2.3.0-6 -- ureport: do not use 'rhsm' SSL auth by default - -* Thu Nov 06 2014 Jakub Filak 2.3.0-5 -- Prevent duplicate values for CODE_* fields being logged to journal -- ureport and rhtsupport bug fixes -- update Package URL - -* Fri Oct 17 2014 Jakub Filak 2.3.0-4 -- ureport: use FAF2 server - -* Mon Oct 13 2014 Jakub Filak 2.3.0-3 -- ureport: fix a bug in the response parser -- upload: don't ask for password if the env var is empty string - -* Wed Oct 08 2014 Jakub Filak 2.3.0-2 -- Require satyr-0.15 - -* Mon Oct 06 2014 Jakub Filak 2.3.0-1 -- Translation updates -- uploader: correct capitalization of the event name -- uploader: read credentials from environment variables -- uploader: handle access denials and ask for updated credentials -- ureport: polish public API -- bugzilla: add comment to closed bugs too -- corrected man pages -- augeas: exclude bugzilla format configurations -- add new workflows for Uploader, Mailx and Logger -- make_desc: add reason to the list -- lib: use userfriendly order in the make_description -- fix bugzilla bug formating for libreport analyzer -- lib: make_description show not-reportable - -* Tue Sep 09 2014 Jakub Filak 2.2.3-7 -- reporting GUI: allow users to run it multiple times -- Resolves: #1134407 - -* Mon Sep 01 2014 Jakub Filak 2.2.3-6 -- add "Details" button on the screen with comment -- terminate reporting after the emergency analysis -- reduce the amount of log messages -- use symbolic icons -- parse release version from os-release (Python) -- Resolves: #1133549 - -* Tue Aug 19 2014 Jakub Filak 2.2.3-5 -- add the "Repeat" button to the reporting wizard -- a bunch of GUI improvements -- fix a bug in logging causing reporter-ureport to crash - -* Sun Aug 17 2014 Fedora Release Engineering - 2.2.3-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Fri Jul 25 2014 Jakub Filak 2.2.3-3 -- fix build with json-c-0.12 - -* Wed Jul 23 2014 Jakub Filak 2.2.3-2 -- reporter-ureport: attach anonymous comment -- gui: close dialogues on Enter key -- gui: support Enter & 2Click in Preferences list -- gui: fix help text for screencasting -- gui: wrap lines for human readable files on Data review page -- gui: select the first item in the configuration list -- gui: make the preferences dialogue modal for parents - -* Tue Jul 08 2014 Jakub Filak 2.2.3-1 -- wizard: Do not highlight sensitive words in user's comment -- bugzilla: show description for all configuration options -- wizard: use a tab for Advanced opts instead of an expander -- mailx: improve notification e-mail format -- configure: Support cross compiling with python3 -- ignored words: add well known SELinux messages -- Resolves: #974746, #1111729, #1111734 - -* Sat Jun 07 2014 Fedora Release Engineering - 2.2.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Tue May 27 2014 Kalev Lember - 2.2.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 - -* Wed Apr 30 2014 Jakub Filak - 2.2.2-3 -- improve User Experience in Anaconda - -* Thu Apr 24 2014 Jakub Filak - 2.2.2-2 -- Bugzilla: pass Bugzilla_token in every XML RPC call - -* Sun Apr 20 2014 Jakub Filak 2.2.2-1 -- stop using deprecated json-c functions -- bugzilla: try to avoid usage of 'private' group -- spec: install ignored_words.conf manual page -- wizard: extended the manual pages -- localization: fix gettext -- wizard: make the custom search case insensitive -- use a better label for the forbidden words button - -* Mon Apr 07 2014 Jakub Filak 2.2.1-2 -- include 'package' in AVC bugzilla bug reports - -* Fri Apr 04 2014 Jakub Filak 2.2.1-1 -- update the list of ignored words -- wizard: introduce the searched words list -- report-gtk: confirm the ask dialogs on 'Enter' -- spec: provide default config for reporter-upload -- Provide default config for reporter-upload -- config: do not export empty environment variables -- spec: byte-compile py files with rpm scripts - -* Wed Mar 05 2014 Jakub Filak 2.2.0-1 -- python: build python api for py3 -- Bugzilla: fedora_contrib_private group ID for the private bugs -- remove invalid bytes from 'sv' strings -- client API: return empty string instead of NULL -- introduce 'watch_Bugzilla' event -- ignored words: add SSH_ASKPASS words -- introduce import-event-options in xml event definitions -- correct name of RH Customer Portal -- Fix typos in error messages -- Translation updates - -* Wed Mar 05 2014 Karsten Hopp 2.1.12-4 -- don't run tests on ppc* until rhbz 1070892 is fixed - -* Tue Feb 18 2014 Jakub Filak 2.1.12-3 -- fix a pair of typos in error messages -- add libpciaccess.so to the list of ignored keywords -- translation updates -- Resolves: #1064209 - -* Mon Feb 10 2014 Jakub Filak 2.1.12-2 -- fix loading of localized strings from XML files -- fix loading of default event configuration files -- provide SYSLOG_FACILITY when logging through journal - -* Thu Jan 30 2014 Jakub Filak 2.1.12-1 -- fix loading of the user list of ignored words -- report-cli: use the Client API for communication to user -- add more forbidden words -- a better message for invalid data in backtrace_rating -- ureport: add support for client-side authentication -- Export plugin config dir in pkg-config -- add Java reporting workflows -- define DBus config interfaces for all plugins -- add a workflow for libreport type problems - -* Wed Jan 8 2014 Peter Robinson 2.1.11-3 -- Don't use deprecated GTK3 API -- Fix unit tests - -* Wed Jan 8 2014 Peter Robinson 2.1.11-2 -- Build latest version on F-21/rawhide -- Fix descriptions - -* Wed Jan 08 2014 Jakub Filak 2.1.11-1 -- Update translations -- add type agnostic functions for map_string_t -- %%description spelling fix. -- update titles of RHTS workflows -- add Anaconda Bugzilla reporting workflows for RHEL -- add Bugzilla reporting workflows for RHEL - -* Wed Dec 11 2013 Jakub Filak 2.1.10-1 -- bugzilla: no extra email notification on URL addition -- Make make_description() output less confusing -- Ensure 'long long unsigned' in printf format args -- make_description: add an option for URLs from reported_to -- add accountsservice into ignored words -- Put back VERBn prefixes for few logging calls -- debuginfo: fix clean_up function call -- augeas: trim spaces arround '=' -- spec: add augeas-devel to build requires -- load/save configuration via augeas -- create augeas lens for libreport -- Fix typo in a string -- spec: install ureport conf file and man page -- Update reporter-ureport manual pages -- ureport: add the configuration file -- anaconda: use workflow in the report-cli event -- report-cli: add support for workflows -- wizard: do not show 'show log' expander if log is empty -- ureport: print the error response body only in verbose mode -- Load a config file from several directories -- Export EXIT_STOP_EVENT_RUN in python modules -- reporter-bugzilla: if adding to existing BZ, clearly flag comment as a dup. -- Fix a small mistake in "Use log_ family instead of VERBn log calls" commit -- ureport: implement attaching of contact email -- Do not load "always editable" files if they are HUGE. Fixes rhbz1010167. -- shorten default Bugzilla bug summary format -- Update translations -- XML parser: keep region specific translation texts -- Resolves: #1009730 - -* Sat Oct 26 2013 Jakub Filak 2.1.9-1 -- rephrase a message for missing configuration -- ask for missing configuration instead of dying -- Client API: introduce non-iteractive mode -- spec: add systemd-devel to BuildRequires -- Use log_ family instead of VERBn log calls -- Add journald support -- Modify logging to use various logging levels -- Include hostname in mailx notification -- enable reporting to Red Hat Support tool for anaconda bugs -- bugzilla: set URL field -- fix an overflow condition in parse time fn for x32 arch -- add a short explanation of private tickets - related rhbz#1011916 -- don't use popup to ask for a private ticket - related rhbz#1011916 - -* Fri Oct 04 2013 Jakub Filak 2.1.8-1 -- disable rhel/fedora workflows for anaconda -- added whitelist for sensitive data - rhbz#1009730 rhbz#896246 -- ureport: always add BTHASH link to a report -- reprot-gtk: underline tab titles with sensitive information -- introduce FILENAME_EXPLOITABLE; related to abrt/abrt#703 - -* Wed Sep 11 2013 Jakub Filak 2.1.7-1 -- Fix problem_item_format() to work properly after 2038 on x32. #691 -- Use proper json-c requirement in libreport-web.pc. -- abrt-cli info: even -s 10 should show one-liners. #690 -- add checks for existing dumpdir items - closes #164 -- Create helper functions for sha1-hashing strings. #694 -- can now use custom repo filters for enabling repos, related abrt/abrt#688 -- add docstrings, remove global variable - related #171 -- fixed exception handling - closes #173 -- added checks for locked dump directory to dd_* functions, closes #133 -- fixed the symlinks handling in get_file_list abrt/abrt#686 -- make the build in the the build directory to not pollute the source tree -- fixed debugInfoDownload so that it can process local repos - closes #48 -- Increase text size limit from 1Mb to 8 MB. rhbz#887570. -- print warning when there is not engough free space for debuginfos, closes #170 -- autogen.sh: improve dependency parser -- ignore directories without type element - rhbz#958968 -- abrt_xmlrpc: increase XML_SIZE_LIMIT to 4 mbytes. rhbz#961520. -- ask user to create a private report if it contains sensitive data - rhbz#960549 -- updated translation rhbz#860555 -- updated transifex url -- do not leak file rhbz#997871 -- in KDE session open URLs in kde-open -- report-gtk: use wrapped text for warning labels -- spec: remove abrt-screencast -- remove obsoleted abrt-screencast -- Fix create_symlink_lockfile() to not emit ENOENT when asked not to. -- do not store potentially big data in /tmp -- New public function create_symlink_lockfile() - -* Mon Jul 29 2013 Jakub Filak 2.1.6-2 -- link with gobject libraries -- use RHTSupport in RHEL workflows - -* Fri Jul 26 2013 Jakub Filak 2.1.6-1 -- add related packages version in emergency event -- replace functions deprecated in Gtk-3.10 with their substitutes -- fixed the bugzilla private group names rhbz#985881 -- workflows: add Anaconda work flow for RHEL -- add missing manual pages for configuration files, binaries and scripts -- added options to create private bz tickets rhbz#803772 -- skip the workflow selection if there is only 1 available closes #167 -- added missing workflows for Fedora rhbz#866027 -- spec: double up percent signs in chagelog entries -- spec: make anaconda package description more generic -- spec: install RHEL anaconda work flow -- spec: added new workflow files rhbz#866027 -- spec: build only workflow subpkg relevant for host's OS -- spec: install all manual pages -- spec: install only documentation files -- spec: drop unnecessary Obsoletes and Provides -- spec: add manual pages to packages -- spec: specify all config files -- spec: replace btparser with satyr -- move non-conf XML files from /etc/libreport/ to /usr/share/libreport/ -- Update satyr support, drop btparser compatibility -- fixed typo in config file related #866027 -- resize the config window upon collapsing Advanced section -- rhbz: test xmlrpc env for errors in abrt_xmlrpc_call_params() -- rhbz: test rhbz_new_bug() return value for errors -- wizard: show accurate messages -- spec: add dependency on fros rhbz#958979 -- use fros instead of hard dependency on recordmydesktop rhbz#958979 - -* Tue Jul 02 2013 Jakub Filak 2.1.5-2 -- reporter-bugzilla: test return values for errors -- Resolves: #980228 - -* Fri Jun 14 2013 Jakub Filak 2.1.5-1 -- make the uploader event available for all report types -- ureport: add conversion from abrt vmcore type to ureport KERNELOOPS type -- fixed relro flags rhbz#812283 -- rhbz: don't pass NULL in platform argument -- add function getting information about dump dir for uid -- anaconda: add proper configuration -- rhbz: do not try to attach empty files -- try to delete dump dirs using abrtd in the first step -- workflow config: use scrollbars instead of enormous window size -- Resolves: #963020 - -* Fri May 10 2013 Jiri Moskovcak 2.1.4-5 -- removed dependency on recordmydesktop rhbz#959475 - -* Mon May 06 2013 Jakub Filak 2.1.4-4 -- create last_occurrence at the time of the first crash - -* Fri May 03 2013 Jakub Filak 2.1.4-2 -- update translation -- reporter-bugzilla: provide version of libreport - -* Mon Apr 29 2013 Jakub Filak 2.1.4-1 -- support /etc/os-release -- added flag to not retry locking the incomplete problem dir -- ureport: save solutions in not-reportable item -- wizard: make value column click-sortable too -- wizard: fix clickability of the item list column header -- wizard: eliminate evd->error_msg member -- wizard: remove a bunch of evd->foo members -- debuginfo downloader should enable repos matching *debug* closes #138 -- Replace "THANKYOU" with EXIT_STOP_EVENT_RUN exit code (70) -- debuginfo downloader: fix DebugInfoDownload::download() error paths. -- report-gtk: handle user cancellation gracefully -- logging: refine errors reporting -- emit a message when searching bugzilla for duplicates closes #151 -- reporter-upload: create tarball with the name based on directory's name -- reporter-rhtsupport: generate archive name from problem dir name -- added report-cli event for anaconda should help with rhbz#950544 -- ss: skip option holding NULL values -- spec: added new event for anaconda reporting rhbz#926916 -- distinguish the event configuration by problem type in the UI closes #149 -- report-gtk: show Next Step btn at workflow start -- curl upload helper: upload data with "application/octet-stream" content type -- reporter-rhtsupport: fix hint query to use correct URL - -* Thu Apr 4 2013 Jiri Moskovcak 2.1.3-2 -- fixed reporting from anaconda -- Resolves: #926916 - -* Wed Mar 27 2013 Jakub Filak 2.1.3-1 -- rhbz: get id of duplicate from correct field -- change the "exited with" message with something less technical closes #143 -- Integration with satyr -- dump_dir_accessible_by_uid(): clear errno if error didn't occur -- reporter-rhtsupport: improve logging -- reporter-rhtsupport: upload file to BigFileURL if it is large -- dd: document used errno values in dump_dir_accessible_by_uid() -- add rhel package with appropriate workflow definitions -- add workflow definitions for RHEL -- improve is_text_file() to not treat valid Unicode as bad_chars -- reporter-rhtsupport: fix double-free error -- reporter-upload: move file upload function to lib/ -- reporter-upload: factor out HTTP PUT upload -- reporter-rhtsupport: skip hints check if uploaded data is really large -- reporter-rhtsupport: make -t[CASE_ID] work without FILEs. Closes #140 -- reporter-rhtsupport: factor out tarball creation -- RHTS support: regularize order of functions and comments -- fread_with_reporting: make progress indicator less noisy -- report-gtk: update excluded elements check boxes before emergency analysis event -- Resolves: #921941 - -* Fri Mar 22 2013 Jakub Filak 2.1.2-2 -- add a patch which fixes a problem with empty archives in emergency analysis - -* Tue Mar 19 2013 Jakub Filak 2.1.2-1 -- always treat os-release as textual related to rhbz#922433 -- is_text_file(): bump allowable non-ASCII chars from 2%% to 10%%. Closes rhbz#922433 -- report-gtk: don't clear warnings after reporting is finished -- report-gtk: show tabs only in verbose expert mode -- report-gtk: prettify the workflow buttons rhbz#917694 -- report-gtk: add a button to report reporting failures -- uReport: do not show URL twice in error output -- uReport: detect missing type field at client side -- uReport: add more explanatory message when upload fails -- uReport: improve messages. Closes #579 -- workflows: a less confusing event name for reporting to Fedora infrastructure -- workflows: correct an event name for reporting to Fedora in anaconda config -- fixed workflow localization closes #137 -- run_event_state: expose children_count in python wrapper -- add the proxy options to the addvanced section of event configurations -- don't suid before running yum related to rhbz#759443 -- update translation -- ss: stop reconnecting to the session bus -- ss: destroy all timeout GSources attached to the main context -- ss: add a timeout to the waiting for the Completed signal -- dd: convert time at lock time -- spawn_next_command: make process group creation optional -- fork_execv_on_steroids: fix close/move order of fds, move getpwuid out of fork -- problem API: generate UUID if is missing instead of DUPHASH -- fix logic of 'Dont ask me again' dialogues (stop returning true for all options) -- make [p]error_msg[_and_die] more fork-in-multithreaded-app safe -- Make forking code paths more robust. -- curl_debug: fix use of "%%.*s" (need to pass an int, not size_t) -- curl_debug: prettify debug output -- Resolves: #871126, #885055, #890778, #901467, #916389, #917684, #917694, #919536, #922433, #923117 - -* Thu Feb 07 2013 Jakub Filak 2.1.1-1 -- move 'reporter-mailx' from post-create event to notify(-dup) event -- reporter-bugzilla: use base64 XMLRPC type for encoded data instead of string type -- ureport: fix extra quoting when reporting error messages -- Resolves: #908210 - -* Tue Feb 05 2013 Jakub Filak 2.1.0-2 -- configure libreport to be in conflict with abrt < 2.1.0 - -* Mon Feb 04 2013 Jakub Filak 2.1.0-1 -- dd: unify error handling in save_binary_file() -- dd_sanitize: don't sanitize symlinks -- rpm: preserve old configuration for 2.0.20-2 -- don't require recordmydesktop on rhel - -* Wed Dec 19 2012 Jiri Moskovcak 2.0.20-1 -- New version 2.0.20 -- updated po files -- add abrt-screencast to POTFILES.in -- added screen casting support to the wizard -- fix memory leaks in workflow code -- report_problem_in_dir(): make LIBREPORT_DEL_DIR work -- add Yes/No dialog saving answer -- refactor: move ask_yes_no_save_result from wizard to libreport-gtk -- added anaconda workflows rhbz#885690 -- report-python: export dd_delete_item too -- report-python: export DD_OPEN_READONLY too -- strtrimch: optimize it a bit -- show only workflows applicable to actual problem directory -- report-gtk: destroy global text cache only once -- change rules for FILENAME_NOT_REPORTABLE to always include trailing period. -- ask for BZ login/BZ pwd if Login attempt failed -- ask for BZ login/BZ password if not provided by conf -- remove new line from ask/ask_password responses -- add ask_yes_no_yesforever() to Python client API -- make client API independent on translation -- run_event: use client functions for the communication callbacks -- clean the workflow buttons when refreshing the event page -- Fix a bug - inverted check for failed rename() call -- wrap the not_reportable label .trac#908 -- don't show events without configuration in preferences .trac#881 -- - implemented saving/loading configuratio for workflows - related to trac#822 -- reporter-bz: add AVC's description added to BZ comment -- add microseconds to dump dir name (problem ID) -- teach reporter-bugzilla to read BZ ID from reported_to element -- teach reporter-bugzilla to add reporter to CC -- introduce a function deleting dd's element -- introduce a function getting no. of Bytes of dd's element -- make event config name immutable -- fixed segv in the last commit -- made struct workflow private related to trac#822 -- don't show the spinner if the problem is not reportable trac#852 -- made the config_item_info structure private -- added workflows trac#822 -- added x,--expert cmdline option to enable expert mode -- switch comment and event selector page -- use get_ and set_ functions to access event_config_t -- reporter-bz: don't return NULL on %%non_existing_item%% - use "" instead -- refactoring the xml and conf loader code related to trac#822 -- reporter-bugzilla: add a --debug option -- reporter-bz: fix a summary line formatting bug -- let logging_callback and post_run_callback members be None -- expose make_run_event_state_forwarding() in Python API -- reporter-bz: change syntax of bugzilla_format_*.conf to require "text::", not "text:" -- reporter-bz: add support for line continuation and simple text in bugzilla_format*.conf - -* Mon Dec 03 2012 Jakub Filak 2.0.19-3 -- add a description of AVC to bugzilla comment 0 - -* Mon Nov 26 2012 Jakub Filak 2.0.19-2 -- fix bugzilla summary formatting -- Resolves: #879846 - -* Wed Nov 14 2012 Jakub Filak 2.0.19-1 -- introduce a new formating feature for Bugzilla plugin -- use gtk_show_uri() instead of own launcher -- update kerneloops urls -- don't force the minimal rating trac#854 -- add support for forwarding of report client requests -- fix i18n in event client communication protocol -- add event name to the error message - can't get secret item -- switch all load_conf_file() calls to use skipKeysWithoutValue=false -- hide the spinner when the event processing is finishes trac#852 -- add a method for loading of configuration of a single event -- unlock secret collection only on meaningful demand -- fix secret item look up for gnome-keyring - -* Thu Nov 01 2012 Jakub Filak 2.0.18-1 -- reporter-bz: tighten up checking that BZ server gave us its version; fix recently broken settings parsing -- reporter-bz: make selinux-policy special case controllable from config file -- reporter-bz: if we create a new bug but cross-version dup exists, add a note -- reporter-bz: make rhbz_search_duphash static, use it more widely - -* Wed Oct 24 2012 Jakub Filak 2.0.17-1 -- update CWD after stealing of a dump directory -- get product/version from system configuration -- shorten bz summary if its length exceeds 255 chars -- add full kerneloops to the uReport -- reporter-bz: require bz version match when searching for dups. Closes rhbz#849833 -- reporter-bz: eliminate bugzilla_struct::b_product - use auto var instead -- Move struct bugzilla_struct to its only user, reporter-bugzilla.c -- reporter-bz: do not needlessly open dd if -f; assorted small fixes -- added relro to reportclient.so and _pyreport.so rhbz#812283 -- bz reporter: include ROOTDIR, OS_RELEASE_IN_ROOTDIR, EXECUTABLE elements -- Fix report-newt segfault -- Resolves: #741647, #812283, #849833, #867118, #869032 - -* Thu Oct 11 2012 Jakub Filak 2.0.16-1 -- expand events from a chain and process expanded events separately -- report-gtk: move selection of event to a right place -- fix a crash while report-gtk startup (use the correct variable) -- wizard: allow "non-reportable" reporting for experts; disallow it for non-experts -- fix typo in function name, remove unnecessary forward declaratioins -- wizard: fix a thinko in last commit (thanks Jakub) -- wizard: check for NON_REPORTABLE file, stop if it exists.FILE -- wizard: remove unnecessary if (1) {...} block. No code changes -- don't update the selected event while processing it -- check D-Bus err name without leaking nor crashing -- ureport: always include offset -- add Makefile target release-fix -- Resolves: #864803, #864803, #863595 - -* Fri Oct 05 2012 Jakub Filak 2.0.15-1 -- remove unnecessary flag from words highlighting functions -- report-gtk: rework forbidden words highlighting -- add xmalloc_fopen_fgetline_fclose helper for reading one-line files -- update GUI before highlighting of forbidden words -- clear warnings after switching to a next page -- tweak conditions in show next forbidden word functions -- reporter-ureport: respect chrooted os_release -- Fix typos. -- rhbz#861679: report-gtk: immediately release dump directory lock -- add a few helpers for reading files as one malloced block - -* Fri Sep 21 2012 Jiri Moskovcak 2.0.14-1 -- added error callback to get notification about download failure rhbz#786640 -- rhbz#767186: show a link to a page describing the ABRT configuration -- spec: silence rpmdiff rhbz#857425 -- don't show the credential in logs rhbz#856960 -- rhbz#852165: warn if adding commands without any rule condition -- rhbz#851855: process ureport server errors correctly -- reporter-bugzilla: fix adding users to CC. (Partially?) closes rhbz#841338 -- Resolves: #786640, #767186, #857425, #856960, #852165, #851855, #841338 - -* Wed Aug 29 2012 Jakub Filak 2.0.13-2 -- increment the release number due to rebuild for F17 package - -* Tue Aug 21 2012 Jakub Filak 2.0.13-1 -- rhbz#741255: don't autodetect executable for sealert reports -- reporter-ureport: save backtrace hash to reported_to -- trac#683: show the description file in bugzilla comment 0 -- trac#684: report-gtk saves only loaded files -- reporter-ureport: allow sending attachments -- event_config_dialog: make it resizable; tweak Uploader hint -- add python binding for problem_data_send_to_abrt -- reporter-ureport: attach bug ID from reported_to -- reporter-ureport: make configurable only URL to a server -- Resolves: #741255 - -* Wed Aug 15 2012 Jakub Filak 2.0.12-5 -- rhbz#741255: don't autodetect executable for sealert reports -- show message from the server for known uReports -- trac#678: reporter-bugzilla: do not attach empty files -- Resolves: #741255 - -* Tue Aug 14 2012 Jakub Filak 2.0.12-4 -- rhbz#846389: generate koops description according to rhbz std template -- trac#556: skip not provided bz bug description template fields -- report-gtk: don't log THANKYOU message -- added internal_libreport.h into POTFILES.in rhbz#801255 -- updated po files -- Resolves: #801255, #846389 - -* Fri Aug 10 2012 Jakub Filak 2.0.12-3 -- wizard: small changes to message texts and one function name -- trac#623: dd_opendir() fails if time file doesn't contain valid time stamp -- trac#660: report-cli asks for premission to send sensitive data -- trac#660: report-gtk asks for permission to send sensitive data -- trac#660: report-gtk: introduce generic ask_yes_no() function for options -- trac#660: add support for sendining-sensitive-data event option -- Do not check for analyzer == "Kerneloops" when appending "TAINTED" msg -- fix leaks in list_possible_events() - -* Tue Aug 7 2012 Jakub Filak 2.0.12-2 -- report-gtk: fixed bug in automatic running of next event -- don't try to delete dump dir which doesn't exist rhbz#799909 -- Resolves: #799909 - -* Fri Aug 3 2012 Jakub Filak 2.0.12-1 -- new upstream release -- trac#642: run the next event if the current one finished without errors -- trac#641: don't allow event chain to continue, if user don't want to steal a directory -- trac#640: report-gtk replaces 'Forward' button with 'Close' button on finished reporting -- Fix bugs uncovered by Coverity. Closes rhbz#809416 -- Resolves: #809416 - -* Tue Jul 31 2012 Jiri Moskovcak 2.0.11-1 -- new upstream release - -* Thu Jul 19 2012 Fedora Release Engineering - 2.0.10-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jun 01 2012 Jiri Moskovcak 2.0.10-4 -- fixed build on rhel7 - -* Mon May 14 2012 Jiri Moskovcak 2.0.10-3 -- fixed compatibility with bugzilla 4.2 -- Resolved: #820985, #795548 - -* Mon Apr 02 2012 Jiri Moskovcak 2.0.10-2 -- added cgroups filename define - -* Mon Mar 26 2012 Jiri Moskovcak 2.0.10-1 -- updated to latest upstream - -* Mon Jan 23 2012 Dan Horák - 2.0.8-6 -- rebuilt for json-c-0.9-4.fc17 - -* Fri Jan 13 2012 Fedora Release Engineering - 2.0.8-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Dec 20 2011 Nikola Pajkovsky 2.0.8-4 -- 768647 - [abrt] libreport-plugin-bugzilla-2.0.8-3.fc16: libreport_xatou: - Process /usr/bin/reporter-bugzilla was killed by signal 11 (SIGSEGV) - -* Fri Dec 09 2011 Jiri Moskovcak 2.0.8-3 -- fixed few crashes in bodhi plugin - -* Thu Dec 08 2011 Jiri Moskovcak 2.0.8-2 -- fixed crash in bodhi plugin -- re-upload better backtrace if available -- fixed dupe finding for selinux -- don't duplicate comments in bugzilla -- fixed problem with empty release - -* Tue Dec 06 2011 Jiri Moskovcak 2.0.8-1 -- new version -- added bodhi plugin rhbz#655783 -- one tab per file on details page rhbz#751833 -- search box search thru all data (should help with privacy) rhbz#748457 -- fixed close button position rhbz#741230 -- rise the attachment limit to 4kb rhbz#712602 -- fixed make check (rpath problem) -- save chnages in editable lines rhbz#710100 -- ignore backup files rhbz#707959 -- added support for proxies rhbz#533652 -- Resolves: 753183 748457 737991 723219 712602 711986 692274 636000 631856 655783 741257 748457 741230 712602 753183 748457 741230 712602 710100 707959 533652 - -* Sat Nov 05 2011 Jiri Moskovcak 2.0.7-2 -- bumped release - -* Fri Nov 04 2011 Jiri Moskovcak 2.0.7-1 -- new version -- added support for bodhi (preview) -- dropped unused patches -- reporter-bugzilla/rhts: add code to prevent duplicate reporting. Closes rhbz#727494 (dvlasenk@redhat.com) -- wizard: search thru all items + tabbed details rhbz#748457 (jmoskovc@redhat.com) -- wizard: add "I don't know what caused this problem" checkbox. Closes rhbz#712508 (dvlasenk@redhat.com) -- reporter-bugzilla: add optional 'Product' parameter. Closes rhbz#665210 (dvlasenk@redhat.com) -- rhbz#728190 - man pages contain suspicious version string (npajkovs@redhat.com) -- reporter-print: expand leading ~/ if present. Closes rhbz#737991 (dvlasenk@redhat.com) -- reporter-rhtsupport: ask rs/problems endpoint before creating new case. (working on rhbz#677052) (dvlasenk@redhat.com) -- reporter-mailx: use Bugzilla's output format. Closes rhbz#717321. (dvlasenk@redhat.com) -- report-newt: add option to display version (rhbz#741590) (mlichvar@redhat.com) -- Resolves: #727494 #748457 #712508 #665210 rhbz#728190 #737991 #677052 #717321 #741590 - -* Fri Oct 07 2011 Nikola Pajkovsky 2.0.6-2 -- refuse reporting when not reportable file exist - -* Mon Oct 03 2011 Jiri Moskovcak 2.0.6-1 -- updated to the latest upstrem -- just a bug fixing release - -* Mon Sep 26 2011 Jiri Moskovcak 2.0.5.982-1 -- re-fix rhbz#730887 -- re-fixed prgname (nice icons in gnome3) rhbz#741231 -- Resolves: #741231 #730887 - -* Thu Sep 22 2011 Jiri Moskovcak 2.0.5-9 -- don't allow sending reports with bad rating rhbz#672023 -- don't allow reporting without duphash rhbz#739182 -- tell users to fill out reports in English rhbz#734037 -- fixed config for kerneloops reporter rhbz#731189 -- Resolves: #672023 #739182 #734037 #731189 - -* Fri Sep 09 2011 Jiri Moskovcak 2.0.5-8 -- allow bugzilla to send binary files -- Related: #733448 - -* Tue Aug 30 2011 Jiri Moskovcak 2.0.5-7 -- added glob support to event xml files -- changed handling of long text files -- added a simple editor as a fallback when no editor is installed (i.e in anaconda) rhbz#728479 -- Resolves: #733448 #728479 - -* Tue Aug 16 2011 Jiri Moskovcak 2.0.5-6 -- improved release parsing rhbz#730887 -- Resolves: #730887 - -* Fri Aug 12 2011 Jiri Moskovcak 2.0.5-5 -- more anaconda fixes -- Resolves: #729537 - -* Tue Aug 02 2011 Jiri Moskovcak 2.0.5-4 -- silent keyring warning rhbz#692433 -- further improvements to Anaconda compatibility - -* Fri Jul 29 2011 Jiri Moskovcak 2.0.5-3 -- enable bugzilla reporter for analyzer=libreport rhbz#725970 -- improved compatibility with anaconda - -* Thu Jul 21 2011 Jiri Moskovcak 2.0.5-2 -- obsolete report in rawhide properly rhbz#723320 -- added button to add attachments -- ignore backup files -- improved support for interactive plugins -- added description text for logger -- added python bindings for interactive plugins -- Resolves: #723320 - -* Mon Jul 18 2011 Jiri Moskovcak 2.0.5-1 -- move reporter plugins from abrt to libreport -- fixed provides/obsolete to properly obsolete report package -- wizard: make more fields editable - -* Mon Jul 11 2011 Jiri Moskovcak 2.0.4-3 -- bump release - -* Mon Jun 27 2011 Jiri Moskovcak 2.0.4-2 -- removed Provides/Obsoletes: report-gtk - -* Mon Jun 20 2011 Jiri Moskovcak 2.0.4-1 -- new upstream release -- cleaned some header files - -* Thu Jun 16 2011 Jiri Moskovcak 2.0.3-1 -- added report-cli -- updated translation - -* Wed Jun 01 2011 Jiri Moskovcak 2.0.2-1 -- initial packaging diff --git a/sources b/sources index 8a41c1d..be9654e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libreport-2.9.2.tar.gz) = 2438a9f994a66d2f207d421ddc7bc45be5a803e5527967d8a79a06a5361e935caa106f69883b822664175df561a39bed33a744590bd9341173802972ab942085 +SHA512 (libreport-2.9.3.tar.gz) = f4cdf6a0ffb18db224f47391e0e8ac26491ac105051ec511e575b10a1ffbbbaa2290827ad27cc622ece5d5291141cf1083dce0d3b778657d309aa8d5d8799473 From 932ab8a598aac46ee0108d6eb9360fb85e7e38af Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Thu, 1 Mar 2018 11:14:12 +0100 Subject: [PATCH 3/4] Add report and reportclient directories to rpm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: #1548805, #1548807 Thanks to Ralf Corsépius Signed-off-by: Matej Habrnal --- libreport.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libreport.spec b/libreport.spec index 73c05e0..d2676f4 100644 --- a/libreport.spec +++ b/libreport.spec @@ -7,7 +7,7 @@ Summary: Generic library for reporting various problems Name: libreport Version: 2.9.3 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -521,12 +521,12 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_libdir}/pkgconfig/libreport-web.pc %files -n python2-libreport -%{python_sitearch}/report/* -%{python_sitearch}/reportclient/* +%{python_sitearch}/report +%{python_sitearch}/reportclient %files -n python3-libreport -%{python3_sitearch}/report/* -%{python3_sitearch}/reportclient/* +%{python3_sitearch}/report +%{python3_sitearch}/reportclient %files cli %{_bindir}/report-cli @@ -759,6 +759,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Mar 01 2018 Matej Habrnal 2.9.3-2 +- Add report and reportclient directories to rpm +- Resolves: #1548805, #1548807 + * Thu Nov 02 2017 Julius Milan 2.9.3-1 - Translation updates - commit to delete From 0c5c2d902237010656fc23f975bcac269797faed Mon Sep 17 00:00:00 2001 From: Martin Kutlak Date: Tue, 27 Mar 2018 18:54:57 +0200 Subject: [PATCH 4/4] New upstream release - Translation updates - Modernize spec file - reporter-{mantisbt,rhtsupport,bugzilla}: read configuration from user's home - reporter-bugzilla: ask concrete bz when requiring login - reporter-mailx: rely on configured email - ureport: remove json-c is_error() usage - doc: update to contain newly added user's local config Signed-off-by: Martin Kutlak --- 0001-makefile-fix-make-release.patch | 27 + ...a-ask-concrete-bz-when-requiring-log.patch | 64 ++ ...a-read-configuration-from-user-s-hom.patch | 96 +++ ...ort-read-configuration-from-user-s-h.patch | 115 +++ ...t-read-configuration-from-user-s-hom.patch | 89 ++ ...ntain-newly-added-user-s-local-confi.patch | 104 +++ 0007-augeas-include-local-config-path.patch | 24 + 0008-spec-fix-unowned-directories.patch | 48 ++ ...orter-mailx-rely-on-configured-email.patch | 73 ++ ...ugzilla-mantisbt-rhtsupport-fix-free.patch | 101 +++ ...s-names-with-ambiguous-python-prefix.patch | 37 + ...ecific-items-and-accomodate-to-rhel7.patch | 50 ++ ..._sitearch-is-always-defined-on-rhel7.patch | 23 + 0014-use-usr-sbin.patch | 51 ++ ...ove-defattr-which-match-the-defaults.patch | 24 + 0016-do-not-expand-macro-in-changelog.patch | 34 + ...ort-Remove-dependency-on-redhat-acce.patch | 157 ++++ ...-update-icon-cache-is-not-needed-in-.patch | 41 + ...ureport-remove-json-c-is_error-usage.patch | 26 + 0020-Revert-use-usr-sbin.patch | 56 ++ 0021-Translation-updates.patch | 797 ++++++++++++++++++ libreport.spec | 64 +- 22 files changed, 2086 insertions(+), 15 deletions(-) create mode 100644 0001-makefile-fix-make-release.patch create mode 100644 0002-reporter-bugzilla-ask-concrete-bz-when-requiring-log.patch create mode 100644 0003-reporter-bugzilla-read-configuration-from-user-s-hom.patch create mode 100644 0004-reporter-rhtsupport-read-configuration-from-user-s-h.patch create mode 100644 0005-reporter-mantisbt-read-configuration-from-user-s-hom.patch create mode 100644 0006-doc-update-to-contain-newly-added-user-s-local-confi.patch create mode 100644 0007-augeas-include-local-config-path.patch create mode 100644 0008-spec-fix-unowned-directories.patch create mode 100644 0009-reporter-mailx-rely-on-configured-email.patch create mode 100644 0010-reporter-bugzilla-mantisbt-rhtsupport-fix-free.patch create mode 100644 0011-This-package-uses-names-with-ambiguous-python-prefix.patch create mode 100644 0012-remove-rhel6-specific-items-and-accomodate-to-rhel7.patch create mode 100644 0013-macro-python_sitearch-is-always-defined-on-rhel7.patch create mode 100644 0014-use-usr-sbin.patch create mode 100644 0015-move-defattr-which-match-the-defaults.patch create mode 100644 0016-do-not-expand-macro-in-changelog.patch create mode 100644 0017-reporter-rhtsupport-Remove-dependency-on-redhat-acce.patch create mode 100644 0018-ldconfig-and-gtk-update-icon-cache-is-not-needed-in-.patch create mode 100644 0019-ureport-remove-json-c-is_error-usage.patch create mode 100644 0020-Revert-use-usr-sbin.patch create mode 100644 0021-Translation-updates.patch diff --git a/0001-makefile-fix-make-release.patch b/0001-makefile-fix-make-release.patch new file mode 100644 index 0000000..e5c7209 --- /dev/null +++ b/0001-makefile-fix-make-release.patch @@ -0,0 +1,27 @@ +From 6ead0462968aa5ef798c8455e0ce30c8efbaad4d Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Thu, 2 Nov 2017 09:27:04 +0100 +Subject: [PATCH 01/22] makefile: fix make release + +make release-* commands failed to update changelog in spec when it +contained more than one "changelog" string +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index f7f9c1a6..9ad827c6 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -74,7 +74,7 @@ release: + maint/pull-translations; \ + echo "* $$(LANG='en_US.UTF-8' date +'%a %b %d %Y') $$(git config --get user.name) <$$(git config --get user.email)> $$NEW_VER-1" | sort > /tmp/changelog.tmp; \ + git log --oneline $$OLD_VER..HEAD | awk '{$$1=""; if (a[$$0]++ == 0) print "-" $$0} END {print ""}' | grep -v -e "- Merge" -e "- testsuite:" -e "- make:" >> /tmp/changelog.tmp; \ +- sed "$$(grep -n changelog libreport.spec.in | cut -f1 -d:)"'r /tmp/changelog.tmp' -i libreport.spec.in; \ ++ sed "$$(grep -n %changelog libreport.spec.in | cut -f1 -d: | head -1)"'r /tmp/changelog.tmp' -i libreport.spec.in; \ + sed -e "s/^## \[Unreleased\]/## [Unreleased]\n\n## [$$NEW_VER] - $$(date +'%F')/" \ + -e "s/^\[Unreleased\]: \(https:\/\/.*\/compare\)\(\/.*\)\.\.\.HEAD/[Unreleased]: \1\/$$NEW_VER...HEAD\n[$$NEW_VER]: \1\2...$$NEW_VER/" \ + -i CHANGELOG.md; \ +-- +2.14.3 + diff --git a/0002-reporter-bugzilla-ask-concrete-bz-when-requiring-log.patch b/0002-reporter-bugzilla-ask-concrete-bz-when-requiring-log.patch new file mode 100644 index 0000000..cbb2b43 --- /dev/null +++ b/0002-reporter-bugzilla-ask-concrete-bz-when-requiring-log.patch @@ -0,0 +1,64 @@ +From f2fbf556597b1c8d132d3d0fbeeae5d12fad0f44 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 5 Dec 2017 10:17:58 +0100 +Subject: [PATCH 02/22] reporter-bugzilla: ask concrete bz when requiring login + +previous message: +"Please enter your Bugzilla login:" +now: +"Please enter your %s login:" +where %s is configured BugzillaURL, so by default: +"Please enter your https://bugzilla.redhat.com login:" + +Related to rhbz#1229439 +--- + src/plugins/reporter-bugzilla.c | 16 +++++++++++----- + 1 file changed, 11 insertions(+), 5 deletions(-) + +diff --git a/src/plugins/reporter-bugzilla.c b/src/plugins/reporter-bugzilla.c +index 514fb659..67ac4d11 100644 +--- a/src/plugins/reporter-bugzilla.c ++++ b/src/plugins/reporter-bugzilla.c +@@ -216,11 +216,15 @@ void login(struct abrt_xmlrpc *client, struct bugzilla_struct *rhbz) + log_warning(_("Logging into Bugzilla at %s"), rhbz->b_bugzilla_url); + while (!rhbz_login(client, rhbz->b_login, rhbz->b_password)) + { ++ char *question; ++ + free(rhbz->b_login); +- rhbz->b_login = ask_bz_login(_("Invalid password or login. Please enter your Bugzilla login:")); ++ question = xasprintf(_("Invalid password or login. Please enter your %s login:"), rhbz->b_bugzilla_url); ++ rhbz->b_login = ask_bz_login(question); ++ free(question); + + free(rhbz->b_password); +- char *question = xasprintf(_("Invalid password or login. Please enter the password for '%s':"), rhbz->b_login); ++ question = xasprintf(_("Invalid password or login. Please enter the password for '%s':"), rhbz->b_login); + rhbz->b_password = ask_bz_password(question); + free(question); + } +@@ -451,7 +455,9 @@ int main(int argc, char **argv) + if (rhbz.b_login[0] == '\0') + { + free(rhbz.b_login); +- rhbz.b_login = ask_bz_login(_("Login is not provided by configuration. Please enter your Bugzilla login:")); ++ char *question = xasprintf(_("Login is not provided by configuration. Please enter your %s login:"), rhbz.b_bugzilla_url); ++ rhbz.b_login = ask_bz_login(question); ++ free(question); + } + + if (rhbz.b_password[0] == '\0') +@@ -546,8 +552,8 @@ int main(int argc, char **argv) + + if (reported_to && reported_to->url) + { +- char *msg = xasprintf("This problem was already reported to Bugzilla (see '%s')." +- " Do you still want to create a new bug?", ++ char *msg = xasprintf(_("This problem was already reported to Bugzilla (see '%s')." ++ " Do you still want to create a new bug?"), + reported_to->url); + int yes = ask_yes_no(msg); + free(msg); +-- +2.14.3 + diff --git a/0003-reporter-bugzilla-read-configuration-from-user-s-hom.patch b/0003-reporter-bugzilla-read-configuration-from-user-s-hom.patch new file mode 100644 index 0000000..072cf7d --- /dev/null +++ b/0003-reporter-bugzilla-read-configuration-from-user-s-hom.patch @@ -0,0 +1,96 @@ +From 7df9283b307c11134faf1135a6ced3839e8e0d20 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 14 Nov 2017 16:13:58 +0100 +Subject: [PATCH 03/22] reporter-bugzilla: read configuration from user's home + +Problem was, that /etc/libreport/plugins/bugzilla.conf has read +permissions set also for others and passwords are stored there as +plain text. + +As solution, bugzilla.conf can be newly placed in users home: +$HOME/.config/libreport/bugzilla.conf +where users can safely store their credentials, also credentials provided +on first run of reporter-bugzilla are stored there. + +Added warning to /etc/libreport/plugins/bugzilla.conf for system admin +to be aware that file is readable by everyone and should not contain +confidential credentials. + +Related to rhbz#1008994, rhbz#1008977 +--- + src/include/internal_libreport.h | 3 +++ + src/plugins/bugzilla.conf | 5 +++++ + src/plugins/reporter-bugzilla.c | 8 ++++++++ + 3 files changed, 16 insertions(+) + +diff --git a/src/include/internal_libreport.h b/src/include/internal_libreport.h +index 1df4cba3..b3c7584b 100644 +--- a/src/include/internal_libreport.h ++++ b/src/include/internal_libreport.h +@@ -89,6 +89,9 @@ int vdprintf(int d, const char *format, va_list ap); + #define CREATE_PRIVATE_TICKET "ABRT_CREATE_PRIVATE_TICKET" + #define STOP_ON_NOT_REPORTABLE "ABRT_STOP_ON_NOT_REPORTABLE" + ++/* path of user's local config, path is relative to user's home */ ++#define USER_HOME_CONFIG_PATH "/.config/libreport" ++ + /* Pull in entire public libreport API */ + #include "global_configuration.h" + #include "dump_dir.h" +diff --git a/src/plugins/bugzilla.conf b/src/plugins/bugzilla.conf +index faa3ab2e..a7727392 100644 +--- a/src/plugins/bugzilla.conf ++++ b/src/plugins/bugzilla.conf +@@ -1,7 +1,12 @@ ++# NOTE this file is readable by everyone, do NOT store here sensitive data, ++# for such cases should be used config file in user's home, ++# i.e.: $HOME/.config/libreport/bugzilla.conf ++ + # Bugzilla URL, defaults to BUG_REPORT_URL from /etc/os-release + # BugzillaURL = https://bugzilla.example.com/ + # yes means that ssl certificates will be checked + SSLVerify = yes ++ + # your login has to exist, if you don't have any, please create one + Login = + # your password +diff --git a/src/plugins/reporter-bugzilla.c b/src/plugins/reporter-bugzilla.c +index 67ac4d11..1571b752 100644 +--- a/src/plugins/reporter-bugzilla.c ++++ b/src/plugins/reporter-bugzilla.c +@@ -214,6 +214,7 @@ static + void login(struct abrt_xmlrpc *client, struct bugzilla_struct *rhbz) + { + log_warning(_("Logging into Bugzilla at %s"), rhbz->b_bugzilla_url); ++ + while (!rhbz_login(client, rhbz->b_login, rhbz->b_password)) + { + char *question; +@@ -281,9 +282,11 @@ int main(int argc, char **argv) + "\nfiled. The default value is 'ABRT Server'" + "\n" + "\nIf not specified, CONFFILE defaults to "CONF_DIR"/plugins/bugzilla.conf" ++ "\nand user's local ~"USER_HOME_CONFIG_PATH"/bugzilla.conf." + "\nIts lines should have 'PARAM = VALUE' format." + "\nRecognized string parameters: BugzillaURL, Login, Password, OSRelease." + "\nRecognized boolean parameter (VALUE should be 1/0, yes/no): SSLVerify." ++ "\nUser's local configuration overrides the system wide configuration." + "\nParameters can be overridden via $Bugzilla_PARAM environment variables." + "\n" + "\nFMTFILE and FMTFILE2 default to "CONF_DIR"/plugins/bugzilla_format.conf" +@@ -357,7 +360,12 @@ int main(int argc, char **argv) + + { + if (!conf_file) ++ { + conf_file = g_list_append(conf_file, (char*) CONF_DIR"/plugins/bugzilla.conf"); ++ char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/bugzilla.conf", getenv("HOME")); ++ conf_file = g_list_append(conf_file, local_conf); ++ free(local_conf); ++ } + while (conf_file) + { + char *fn = (char *)conf_file->data; +-- +2.14.3 + diff --git a/0004-reporter-rhtsupport-read-configuration-from-user-s-h.patch b/0004-reporter-rhtsupport-read-configuration-from-user-s-h.patch new file mode 100644 index 0000000..224bc59 --- /dev/null +++ b/0004-reporter-rhtsupport-read-configuration-from-user-s-h.patch @@ -0,0 +1,115 @@ +From cf09831f97308534a6d66a5cd1e99ec5ea646226 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 5 Dec 2017 17:05:49 +0100 +Subject: [PATCH 04/22] reporter-rhtsupport: read configuration from user's + home + +Problem was, that /etc/libreport/plugins/rhtsupport.conf has read +permissions set also for others and passwords are stored there as +plain text. + +As solution, rhtsupport.conf can be newly placed in users home: +$HOME/.config/libreport/rhtsupport.conf +where users can safely store their credentials, also credentials provided +on first run of reporter-rhtsupport are stored there. + +Added warning to /etc/libreport/plugins/rhtsupport.conf for system admin +to be aware that file is readable by everyone and should not contain +confidential credentials. + +Related to rhbz#1008994, rhbz#1008977 +--- + src/lib/ureport.c | 6 +++++- + src/plugins/report.c | 4 ++-- + src/plugins/reporter-rhtsupport.c | 10 +++++++++- + src/plugins/rhtsupport.conf | 4 ++++ + 4 files changed, 20 insertions(+), 4 deletions(-) + +diff --git a/src/lib/ureport.c b/src/lib/ureport.c +index 9e8bbd6a..a595015c 100644 +--- a/src/lib/ureport.c ++++ b/src/lib/ureport.c +@@ -245,8 +245,12 @@ ureport_server_config_load_basic_auth(struct ureport_server_config *config, + { + settings = new_map_string(); + +- if (!load_plugin_conf_file("rhtsupport.conf", settings, /*skip key w/o values:*/ false)) ++ char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/rhtsupport.conf", getenv("HOME")); ++ ++ if (!load_plugin_conf_file("rhtsupport.conf", settings, /*skip key w/o values:*/ false) && ++ !load_conf_file(local_conf, settings, /*skip key w/o values:*/ false)) + error_msg_and_die("Could not get RHTSupport credentials"); ++ free(local_conf); + + username = get_map_string_item_or_NULL(settings, "Login"); + password = get_map_string_item_or_NULL(settings, "Password"); +diff --git a/src/plugins/report.c b/src/plugins/report.c +index e6e976bf..3a5d52ca 100644 +--- a/src/plugins/report.c ++++ b/src/plugins/report.c +@@ -43,8 +43,8 @@ int main(int argc, char **argv) + "first one invokes upload to RHTSupport and second - to Bugzilla.\n" + "\n" + "Configuration (such as login data) can be supplied via files\n" +- CONF_DIR"/plugins/bugzilla.conf and\n" +- CONF_DIR"/plugins/rhtsupport.conf,\n" ++ CONF_DIR"/plugins/bugzilla.conf and $HOME"USER_HOME_CONFIG_PATH"/bugzilla.conf and\n" ++ CONF_DIR"/plugins/rhtsupport.conf and $HOME"USER_HOME_CONFIG_PATH"/rhtsupport.conf,\n" + "or via environment variables - read documentation of\n" + "reporter-bugzilla and reporter-rhtsupport tools." + ); +diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c +index 0ab06618..6ea92523 100644 +--- a/src/plugins/reporter-rhtsupport.c ++++ b/src/plugins/reporter-rhtsupport.c +@@ -509,10 +509,12 @@ int main(int argc, char **argv) + "Reports a problem to RHTSupport.\n" + "\n" + "If not specified, CONFFILE defaults to "CONF_DIR"/plugins/rhtsupport.conf\n" ++ "and user's local ~"USER_HOME_CONFIG_PATH"/rhtsupport.conf.\n" + "Its lines should have 'PARAM = VALUE' format.\n" + "Recognized string parameters: URL, Login, Password, BigFileURL.\n" + "Recognized numeric parameter: BigSizeMB.\n" + "Recognized boolean parameter (VALUE should be 1/0, yes/no): SSLVerify.\n" ++ "User's local configuration overrides the system wide configuration.\n" + "Parameters can be overridden via $RHTSupport_PARAM environment variables.\n" + "\n" + "Option -t uploads FILEs to the already created case on RHTSupport site.\n" +@@ -521,7 +523,7 @@ int main(int argc, char **argv) + "to enter case ID to which you want to upload the FILEs.\n" + "\n" + "Option -tCASE uploads FILEs to the case CASE on RHTSupport site.\n" +- "-d DIR is ignored." ++ "-d DIR is ignored.\n" + "\n" + "Option -u sends ABRT crash statistics data (uReport) before creating a new case.\n" + "uReport configuration is loaded from UR_CONFFILE which defaults to\n" +@@ -559,7 +561,13 @@ int main(int argc, char **argv) + /* Parse config, extract necessary params */ + map_string_t *settings = new_map_string(); + if (!conf_file) ++ { + conf_file = g_list_append(conf_file, (char*) CONF_DIR"/plugins/rhtsupport.conf"); ++ char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/rhtsupport.conf", getenv("HOME")); ++ conf_file = g_list_append(conf_file, local_conf); ++ free(local_conf); ++ ++ } + while (conf_file) + { + const char *fn = (char *)conf_file->data; +diff --git a/src/plugins/rhtsupport.conf b/src/plugins/rhtsupport.conf +index 325be92d..91baa90a 100644 +--- a/src/plugins/rhtsupport.conf ++++ b/src/plugins/rhtsupport.conf +@@ -1,3 +1,7 @@ ++# NOTE this file is readable by everyone, do NOT store here sensitive data, ++# for such cases should be used config file in user's home, ++# i.e.: $HOME/.config/libreport/rhtsupport.conf ++ + # Uncomment and specify these parameters if you want to use + # reporter-rhtsupport and/or "report --target strata" tools + # outside of libreport's GUI (i.e. from command line +-- +2.14.3 + diff --git a/0005-reporter-mantisbt-read-configuration-from-user-s-hom.patch b/0005-reporter-mantisbt-read-configuration-from-user-s-hom.patch new file mode 100644 index 0000000..b2a56d4 --- /dev/null +++ b/0005-reporter-mantisbt-read-configuration-from-user-s-hom.patch @@ -0,0 +1,89 @@ +From 80f063738ec40e2f6354e4f58b2d59a53d33eeb4 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 5 Dec 2017 17:16:54 +0100 +Subject: [PATCH 05/22] reporter-mantisbt: read configuration from user's home + +mantisbt.conf can be placed also in $HOME/.config/libreport/mantisbt.conf +for security reasons +--- + src/plugins/centos_report_event.conf | 4 ---- + src/plugins/mantisbt.conf | 4 ++++ + src/plugins/reporter-mantisbt.c | 7 +++++++ + 3 files changed, 11 insertions(+), 4 deletions(-) + +diff --git a/src/plugins/centos_report_event.conf b/src/plugins/centos_report_event.conf +index 8cf2a502..eb634b91 100644 +--- a/src/plugins/centos_report_event.conf ++++ b/src/plugins/centos_report_event.conf +@@ -10,14 +10,12 @@ EVENT=report_CentOSBugTracker type=vmcore + EVENT=report_CentOSBugTracker type=Python component!=anaconda + test -f component || abrt-action-save-package-data + reporter-mantisbt \ +- -c /etc/libreport/plugins/mantisbt.conf \ + -F /etc/libreport/plugins/mantisbt_format.conf \ + -A /etc/libreport/plugins/mantisbt_formatdup.conf + + EVENT=report_CentOSBugTracker type=Python3 component!=anaconda + test -f component || abrt-action-save-package-data + reporter-mantisbt \ +- -c /etc/libreport/plugins/mantisbt.conf \ + -F /etc/libreport/plugins/mantisbt_format.conf \ + -A /etc/libreport/plugins/mantisbt_formatdup.conf + +@@ -31,12 +29,10 @@ EVENT=report_CentOSBugTracker type=CCpp duphash!= + test -f "/etc/libreport/plugins/mantisbt_formatdup_$component.conf" \ + && formatdup="mantisbt_formatdup_$component.conf" + reporter-mantisbt \ +- -c /etc/libreport/plugins/mantisbt.conf \ + -F "/etc/libreport/plugins/$format" \ + -A "/etc/libreport/plugins/$formatdup" + + EVENT=report_CentOSBugTracker analyzer=libreport + reporter-mantisbt \ +- -c /etc/libreport/plugins/mantisbt.conf \ + -F /etc/libreport/plugins/mantisbt_format_analyzer_libreport.conf \ + -A /etc/libreport/plugins/mantisbt_formatdup_analyzer_libreport.conf +diff --git a/src/plugins/mantisbt.conf b/src/plugins/mantisbt.conf +index 025b9101..24f7f48e 100644 +--- a/src/plugins/mantisbt.conf ++++ b/src/plugins/mantisbt.conf +@@ -1,3 +1,7 @@ ++# NOTE this file is readable by everyone, do NOT store here sensitive data, ++# for such cases should be used config file in user's home, ++# i.e.: $HOME/.config/libreport/mantisbt.conf ++ + # MantisBT URL + MantisbtURL = http://localhost/mantisbt/ + # yes means that ssl certificates will be checked +diff --git a/src/plugins/reporter-mantisbt.c b/src/plugins/reporter-mantisbt.c +index e8afa7db..bef7a45e 100644 +--- a/src/plugins/reporter-mantisbt.c ++++ b/src/plugins/reporter-mantisbt.c +@@ -244,9 +244,11 @@ int main(int argc, char **argv) + "\nfiled. The default value is 'ABRT Server'" + "\n" + "\nIf not specified, CONFFILE defaults to "CONF_DIR"/plugins/mantisbt.conf" ++ "\nand user's local ~"USER_HOME_CONFIG_PATH"/mantisbt.conf." + "\nIts lines should have 'PARAM = VALUE' format." + "\nRecognized string parameters: MantisbtURL, Login, Password, Project, ProjectVersion." + "\nRecognized boolean parameter (VALUE should be 1/0, yes/no): SSLVerify, CreatePrivate." ++ "\nUser's local configuration overrides the system wide configuration." + "\nParameters can be overridden via $Mantisbt_PARAM environment variables." + "\n" + "\nFMTFILE default to "CONF_DIR"/plugins/mantisbt_format.conf." +@@ -300,7 +302,12 @@ int main(int argc, char **argv) + + { + if (!conf_file) ++ { + conf_file = g_list_append(conf_file, (char*) CONF_DIR"/plugins/mantisbt.conf"); ++ char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/mantisbt.conf", getenv("HOME")); ++ conf_file = g_list_append(conf_file, local_conf); ++ free(local_conf); ++ } + while (conf_file) + { + char *fn = (char *)conf_file->data; +-- +2.14.3 + diff --git a/0006-doc-update-to-contain-newly-added-user-s-local-confi.patch b/0006-doc-update-to-contain-newly-added-user-s-local-confi.patch new file mode 100644 index 0000000..a51611e --- /dev/null +++ b/0006-doc-update-to-contain-newly-added-user-s-local-confi.patch @@ -0,0 +1,104 @@ +From c8a11eb8a66e6cd0650411304572500fabb77b07 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 5 Dec 2017 17:18:07 +0100 +Subject: [PATCH 06/22] doc: update to contain newly added user's local config + +--- + doc/reporter-bugzilla.txt | 7 ++++++- + doc/reporter-mantisbt.txt | 5 +++++ + doc/reporter-rhtsupport.txt | 7 ++++++- + doc/reporter-ureport.txt | 3 ++- + 4 files changed, 19 insertions(+), 3 deletions(-) + +diff --git a/doc/reporter-bugzilla.txt b/doc/reporter-bugzilla.txt +index 2d769802..2aee41e1 100644 +--- a/doc/reporter-bugzilla.txt ++++ b/doc/reporter-bugzilla.txt +@@ -52,8 +52,10 @@ filed. The default value is 'ABRT Server'" + + Configuration file + ~~~~~~~~~~~~~~~~~~ +-If not specified, CONFFILE defaults to /etc/libreport/plugins/bugzilla.conf. ++If not specified, CONFFILE defaults to /etc/libreport/plugins/bugzilla.conf ++and to user's local ~/.config/libreport/bugzilla.conf. + Configuration file lines should have 'PARAM = VALUE' format. The parameters are: ++User's local configuration overrides the system wide configuration. + + 'Login':: + Login to Bugzilla account. +@@ -214,6 +216,9 @@ FILES + /etc/libreport/plugins/bugzilla.conf:: + Configuration file. + ++~/.config/libreport/bugzilla.conf:: ++ User's local configuration file. ++ + /etc/libreport/plugins/bugzilla_format.conf:: + Configure formating for reporting. + +diff --git a/doc/reporter-mantisbt.txt b/doc/reporter-mantisbt.txt +index 92255b08..074aa4e9 100644 +--- a/doc/reporter-mantisbt.txt ++++ b/doc/reporter-mantisbt.txt +@@ -47,7 +47,9 @@ filed. The default value is 'ABRT Server'" + Configuration file + ~~~~~~~~~~~~~~~~~~ + If not specified, CONFFILE defaults to /etc/libreport/plugins/mantisbt.conf. ++and to user's local ~/.config/libreport/mantisbt.conf. + Configuration file lines should have 'PARAM = VALUE' format. The parameters are: ++User's local configuration overrides the system wide configuration. + + 'Login':: + Login to MantisBT account. +@@ -204,6 +206,9 @@ FILES + /etc/libreport/plugins/mantisbt.conf:: + Configuration file. + ++~/.config/libreport/mantisbt.conf:: ++ User's local configuration file. ++ + /etc/libreport/plugins/mantisbt_format.conf:: + Configure formating for reporting. + +diff --git a/doc/reporter-rhtsupport.txt b/doc/reporter-rhtsupport.txt +index 2e779bc9..e52a1525 100644 +--- a/doc/reporter-rhtsupport.txt ++++ b/doc/reporter-rhtsupport.txt +@@ -24,7 +24,9 @@ creating a new case. + The URL to new case is printed to stdout and recorded in 'reported_to' + element in DIR. + +-If not specified, CONFFILE defaults to /etc/libreport/plugins/rhtsupport.conf. ++If not specified, CONFFILE defaults to /etc/libreport/plugins/rhtsupport.conf ++and to user's local ~/.config/libreport/rhtsupport.conf. ++User's local configuration overrides the system wide configuration. + + Option -t uploads FILEs to the already created case on RHTSupport site. + The case ID is retrieved from directory specified by -d DIR. +@@ -99,6 +101,9 @@ FILES + /etc/libreport/plugins/rhtsupport.conf:: + Configuration file. + ++~/.config/libreport/rhtsupport.conf:: ++ User's local configuration file. ++ + SEE ALSO + -------- + abrt_event.conf(5), rhtsupport.conf(5), rhtsupport_event.conf(5) +diff --git a/doc/reporter-ureport.txt b/doc/reporter-ureport.txt +index ced48b01..7deb9117 100644 +--- a/doc/reporter-ureport.txt ++++ b/doc/reporter-ureport.txt +@@ -52,7 +52,8 @@ Configuration file lines should have 'PARAM = VALUE' format. The parameters are: + Possible values are:: + + 'rhts-credentials';; +- Uses Login= and Password= values from /etc/libreport/plugins/rhtsupport.conf. ++ Uses Login= and Password= values from /etc/libreport/plugins/rhtsupport.conf and ++ user's local ~/.config/libreport/rhtsupport.conf. + + ':';; + Manually supply credentials. +-- +2.14.3 + diff --git a/0007-augeas-include-local-config-path.patch b/0007-augeas-include-local-config-path.patch new file mode 100644 index 0000000..f7f8446 --- /dev/null +++ b/0007-augeas-include-local-config-path.patch @@ -0,0 +1,24 @@ +From e084cc0f6df7ee8d9e43592120f818755fc2d144 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 5 Dec 2017 17:19:43 +0100 +Subject: [PATCH 07/22] augeas: include local config path + +--- + augeas/libreport.aug | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/augeas/libreport.aug b/augeas/libreport.aug +index dd4252e6..7e89faca 100644 +--- a/augeas/libreport.aug ++++ b/augeas/libreport.aug +@@ -29,6 +29,7 @@ module Libreport = + . (incl (Sys.getenv("HOME") . "/.config/abrt/settings/*")) + . (incl (Sys.getenv("XDG_CACHE_HOME") . "/abrt/events/*")) + . (incl (Sys.getenv("HOME") . "/.cache/abrt/events/*")) ++ . (incl (Sys.getenv("HOME") . "/.config/libreport/*")) + . (excl "/etc/libreport/plugins/bugzilla_format*") + . (excl "/etc/libreport/plugins/mantisbt_format*") + . (excl "/etc/libreport/plugins/catalog*") +-- +2.14.3 + diff --git a/0008-spec-fix-unowned-directories.patch b/0008-spec-fix-unowned-directories.patch new file mode 100644 index 0000000..30f8378 --- /dev/null +++ b/0008-spec-fix-unowned-directories.patch @@ -0,0 +1,48 @@ +From aabecaa542bc4c5a7b230441690600981f6021bf Mon Sep 17 00:00:00 2001 +From: Martin Kutlak +Date: Thu, 7 Dec 2017 11:02:12 +0100 +Subject: [PATCH 08/22] spec: fix unowned directories + +Unistalling python{2,3}-libreport, libreport-filesystem leaves behind these directories in the system. + +Resolves #514 + +Signed-off-by: Martin Kutlak +--- + libreport.spec.in | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index 9589c8f0..056586e2 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -472,6 +472,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %dir %{_sysconfdir}/%{name}/events.d/ + %dir %{_sysconfdir}/%{name}/events/ + %dir %{_sysconfdir}/%{name}/workflows.d/ ++%dir %{_datadir}/%{name}/ ++%dir %{_datadir}/%{name}/conf.d/ ++%dir %{_datadir}/%{name}/conf.d/plugins/ + %dir %{_datadir}/%{name}/events/ + %dir %{_datadir}/%{name}/workflows/ + %dir %{_sysconfdir}/%{name}/plugins/ +@@ -515,12 +518,12 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %{_libdir}/pkgconfig/libreport-web.pc + + %files -n python2-libreport +-%{python_sitearch}/report/* +-%{python_sitearch}/reportclient/* ++%{python_sitearch}/report/ ++%{python_sitearch}/reportclient/ + + %files -n python3-libreport +-%{python3_sitearch}/report/* +-%{python3_sitearch}/reportclient/* ++%{python3_sitearch}/report/ ++%{python3_sitearch}/reportclient/ + + %files cli + %{_bindir}/report-cli +-- +2.14.3 + diff --git a/0009-reporter-mailx-rely-on-configured-email.patch b/0009-reporter-mailx-rely-on-configured-email.patch new file mode 100644 index 0000000..90529e9 --- /dev/null +++ b/0009-reporter-mailx-rely-on-configured-email.patch @@ -0,0 +1,73 @@ +From 1394000e8d06f37509bb7120fbe9231a89cb46c0 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Fri, 8 Dec 2017 16:58:13 +0100 +Subject: [PATCH 09/22] reporter-mailx: rely on configured email + +As a side effect of the fix of rhbz#1093375, the users loosed the control +over their reporter-mailx via configuration file: +/etc/libreport/plugins/mailx.conf + +This fix retains this option for the user, but still solves +rhbz#1093375. + +Related to rhbz#1523689, rhbz#1093375. +--- + src/plugins/mailx.conf | 8 ++++---- + src/plugins/mailx_event.conf | 8 -------- + src/plugins/reporter-mailx.c | 2 +- + 3 files changed, 5 insertions(+), 13 deletions(-) + +diff --git a/src/plugins/mailx.conf b/src/plugins/mailx.conf +index 3b23583a..7c8fcae2 100644 +--- a/src/plugins/mailx.conf ++++ b/src/plugins/mailx.conf +@@ -4,9 +4,9 @@ + # and you don't want to specify parameters in every tool invocation. + # + # String parameters: +-# Subject= +-# EmailFrom= +-# EmailTo= +-# ++Subject="[abrt] a crash has been detected" ++EmailFrom="ABRT Daemon " ++EmailTo="root@localhost" ++ + # Boolean parameter: + # SendBinaryData=yes/no +diff --git a/src/plugins/mailx_event.conf b/src/plugins/mailx_event.conf +index c138b89f..16068352 100644 +--- a/src/plugins/mailx_event.conf ++++ b/src/plugins/mailx_event.conf +@@ -1,15 +1,7 @@ + EVENT=notify +- # do not rely on the default config nor on the config file +- Mailx_Subject="[abrt] a crash has been detected" \ +- Mailx_EmailFrom="ABRT Daemon " \ +- Mailx_EmailTo="root@localhost" \ + reporter-mailx --notify-only + + EVENT=notify-dup +- # do not rely on the default config nor on the config file +- Mailx_Subject="[abrt] a crash has been detected again" \ +- Mailx_EmailFrom="ABRT Daemon " \ +- Mailx_EmailTo="root@localhost" \ + reporter-mailx --notify-only + + EVENT=report_Mailx reporter-mailx +diff --git a/src/plugins/reporter-mailx.c b/src/plugins/reporter-mailx.c +index 05fa1e52..2c88836f 100644 +--- a/src/plugins/reporter-mailx.c ++++ b/src/plugins/reporter-mailx.c +@@ -112,7 +112,7 @@ static void create_and_send_email( + + char* env; + env = getenv("Mailx_EmailFrom"); +- char *email_from = (env ? xstrdup(env) : xstrdup(get_map_string_item_or_NULL(settings, "EmailFrom")) ? : ask_email_address("sender", "user@localhost")); ++ char *email_from = (env ? xstrdup(env) : xstrdup(get_map_string_item_or_NULL(settings, "EmailFrom")) ? : ask_email_address("sender", "ABRT Daemon ")); + env = getenv("Mailx_EmailTo"); + char *email_to = (env ? xstrdup(env) : xstrdup(get_map_string_item_or_NULL(settings, "EmailTo")) ? : ask_email_address("receiver", "root@localhost")); + env = getenv("Mailx_SendBinaryData"); +-- +2.14.3 + diff --git a/0010-reporter-bugzilla-mantisbt-rhtsupport-fix-free.patch b/0010-reporter-bugzilla-mantisbt-rhtsupport-fix-free.patch new file mode 100644 index 0000000..4f0cedc --- /dev/null +++ b/0010-reporter-bugzilla-mantisbt-rhtsupport-fix-free.patch @@ -0,0 +1,101 @@ +From 288ddc7af962ace63990a3a95c9616e693b4f411 Mon Sep 17 00:00:00 2001 +From: Julius Milan +Date: Tue, 2 Jan 2018 17:20:33 +0100 +Subject: [PATCH 10/22] reporter-{bugzilla,mantisbt,rhtsupport}: fix free + +There was an incorrect free of string local_conf right after addition to +the list conf_file, which caused that presence of the pointed string in +the memory was undeterministic. As a result, local config was sometimes +used and sometimes not. +--- + src/plugins/reporter-bugzilla.c | 6 ++++-- + src/plugins/reporter-mantisbt.c | 5 +++-- + src/plugins/reporter-rhtsupport.c | 6 ++++-- + 3 files changed, 11 insertions(+), 6 deletions(-) + +diff --git a/src/plugins/reporter-bugzilla.c b/src/plugins/reporter-bugzilla.c +index 1571b752..2922e8ac 100644 +--- a/src/plugins/reporter-bugzilla.c ++++ b/src/plugins/reporter-bugzilla.c +@@ -359,12 +359,12 @@ int main(int argc, char **argv) + } + + { ++ char *local_conf = NULL; + if (!conf_file) + { + conf_file = g_list_append(conf_file, (char*) CONF_DIR"/plugins/bugzilla.conf"); +- char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/bugzilla.conf", getenv("HOME")); ++ local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/bugzilla.conf", getenv("HOME")); + conf_file = g_list_append(conf_file, local_conf); +- free(local_conf); + } + while (conf_file) + { +@@ -374,6 +374,8 @@ int main(int argc, char **argv) + log_debug("Loaded '%s'", fn); + conf_file = g_list_delete_link(conf_file, conf_file); + } ++ free(local_conf); ++ + set_settings(&rhbz, settings); + /* WRONG! set_settings() does not copy the strings, it merely sets up pointers + * to settings[] dictionary: +diff --git a/src/plugins/reporter-mantisbt.c b/src/plugins/reporter-mantisbt.c +index bef7a45e..c2b0d0b4 100644 +--- a/src/plugins/reporter-mantisbt.c ++++ b/src/plugins/reporter-mantisbt.c +@@ -301,12 +301,12 @@ int main(int argc, char **argv) + map_string_t *settings = new_map_string(); + + { ++ char *local_conf = NULL; + if (!conf_file) + { + conf_file = g_list_append(conf_file, (char*) CONF_DIR"/plugins/mantisbt.conf"); +- char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/mantisbt.conf", getenv("HOME")); ++ local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/mantisbt.conf", getenv("HOME")); + conf_file = g_list_append(conf_file, local_conf); +- free(local_conf); + } + while (conf_file) + { +@@ -316,6 +316,7 @@ int main(int argc, char **argv) + log_debug("Loaded '%s'", fn); + conf_file = g_list_delete_link(conf_file, conf_file); + } ++ free(local_conf); + + struct dump_dir *dd = NULL; + if (abrt_hash == NULL) +diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c +index 6ea92523..d11b4bd0 100644 +--- a/src/plugins/reporter-rhtsupport.c ++++ b/src/plugins/reporter-rhtsupport.c +@@ -560,12 +560,12 @@ int main(int argc, char **argv) + + /* Parse config, extract necessary params */ + map_string_t *settings = new_map_string(); ++ char *local_conf = NULL; + if (!conf_file) + { + conf_file = g_list_append(conf_file, (char*) CONF_DIR"/plugins/rhtsupport.conf"); +- char *local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/rhtsupport.conf", getenv("HOME")); ++ local_conf = xasprintf("%s"USER_HOME_CONFIG_PATH"/rhtsupport.conf", getenv("HOME")); + conf_file = g_list_append(conf_file, local_conf); +- free(local_conf); + + } + while (conf_file) +@@ -576,6 +576,8 @@ int main(int argc, char **argv) + log_debug("Loaded '%s'", fn); + conf_file = g_list_remove(conf_file, fn); + } ++ free(local_conf); ++ + char *url = get_param_string("URL" , settings, "https://api.access.redhat.com/rs"); + char *login = get_param_string("Login" , settings, ""); + char *password = get_param_string("Password" , settings, ""); +-- +2.14.3 + diff --git a/0011-This-package-uses-names-with-ambiguous-python-prefix.patch b/0011-This-package-uses-names-with-ambiguous-python-prefix.patch new file mode 100644 index 0000000..4ec6449 --- /dev/null +++ b/0011-This-package-uses-names-with-ambiguous-python-prefix.patch @@ -0,0 +1,37 @@ +From 26baccf32610d94944faa7eb29a8f530ddd3e2db Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 10 Jan 2018 09:01:26 +0100 +Subject: [PATCH 11/22] This package uses names with ambiguous `python-` prefix + in requirements. + +According to [Fedora Packaging guidelines for Python](https://fedoraproject.org/wiki/Packaging:Python#Dependencies), packages must use names with either `python2-` or `python3-` prefix in requirements where available. +We are aiming to rename `python-*` dependencies to `python2-*`, so we can later switch the `python-*` namespace to Python 3. + +This PR is part of [Fedora's Switch to Python 3 effort](https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3). + +Note that, although this PR was created automatically, we will respond to any comments or issues which you might find with it. We will keep the PR open for review for a week, and if there's no feedback we'll merge it. +The local mock build passed, for Koji scratch build please see simple-koji-ci result. + +*This PR was opened automatically, for source code see [here](https://pagure.io/python-fixrequires)* + +This commit have been migrated from src.fedoraproject.org +--- + libreport.spec.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index 056586e2..ae69d65f 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -26,7 +26,7 @@ BuildRequires: %{dbus_devel} + BuildRequires: gtk3-devel + BuildRequires: curl-devel + BuildRequires: desktop-file-utils +-BuildRequires: python-devel ++BuildRequires: python2-devel + BuildRequires: python3-devel + BuildRequires: gettext + BuildRequires: libxml2-devel +-- +2.14.3 + diff --git a/0012-remove-rhel6-specific-items-and-accomodate-to-rhel7.patch b/0012-remove-rhel6-specific-items-and-accomodate-to-rhel7.patch new file mode 100644 index 0000000..cc8db14 --- /dev/null +++ b/0012-remove-rhel6-specific-items-and-accomodate-to-rhel7.patch @@ -0,0 +1,50 @@ +From 4833e53ab69811559855a725069315b04ba7246d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 10 Jan 2018 09:06:05 +0100 +Subject: [PATCH 12/22] remove rhel6 specific items and accomodate to rhel7+ + +--- + libreport.spec.in | 12 +----------- + 1 file changed, 1 insertion(+), 11 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index ae69d65f..63f5114a 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -41,7 +41,7 @@ BuildRequires: libproxy-devel + BuildRequires: satyr-devel >= 0.24 + BuildRequires: glib2-devel >= %{glib_ver} + +-%if 0%{?fedora} >= 24 ++%if 0%{?fedora} >= 24 || 0%{?rhel} > 7 + # A test case uses zh_CN locale to verify XML event translations + BuildRequires: glibc-all-langpacks + %endif +@@ -96,11 +96,6 @@ Development headers for libreport-web + Summary: Python bindings for report-libs + Requires: libreport = %{version}-%{release} + Requires: python2-dnf +-# in report the rhtsupport is in the main package, so we need to install it too +-# report is only in RHEL6, we do not need to carry the dependency to newer RHELs +-%if 0%{?rhel} == 6 +-Requires: libreport-plugin-rhtsupport = %{version}-%{release} +-%endif + %{?python_provide:%python_provide python2-libreport} + # Remove before F30 + Provides: %{name}-python = %{version}-%{release} +@@ -330,12 +325,7 @@ CFLAGS="%{optflags} -Werror" %configure \ + %if %{without bugzilla} + --without-bugzilla \ + %endif +-%if 0%{?rhel} == 6 +- --with-defaultdumpdirmode=0640 \ +- --disable-userownsdumpdir \ +-%else + --enable-doxygen-docs \ +-%endif + --disable-silent-rules + + make %{?_smp_mflags} +-- +2.14.3 + diff --git a/0013-macro-python_sitearch-is-always-defined-on-rhel7.patch b/0013-macro-python_sitearch-is-always-defined-on-rhel7.patch new file mode 100644 index 0000000..c6e0283 --- /dev/null +++ b/0013-macro-python_sitearch-is-always-defined-on-rhel7.patch @@ -0,0 +1,23 @@ +From d38ef3a3a93c1b4b623b40945fec73aff51ce0cf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 10 Jan 2018 09:07:29 +0100 +Subject: [PATCH 13/22] macro python_sitearch is always defined on rhel7+ + +--- + libreport.spec.in | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index 63f5114a..bccaa78c 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -1,6 +1,3 @@ +-# platform-dependent +-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +- + %if 0%{?suse_version} + %bcond_with bugzilla + +-- +2.14.3 + diff --git a/0014-use-usr-sbin.patch b/0014-use-usr-sbin.patch new file mode 100644 index 0000000..6fe4be4 --- /dev/null +++ b/0014-use-usr-sbin.patch @@ -0,0 +1,51 @@ +From 801b3ec7f6e8c4f932796786e5dd8fa8a72817b8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 10 Jan 2018 09:10:59 +0100 +Subject: [PATCH 14/22] use /usr/sbin/ + +everything rhel7+ has been moved to /usr +--- + libreport.spec.in | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index bccaa78c..aceffa83 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -413,16 +413,16 @@ make check|| { + } + + %post gtk +-/sbin/ldconfig ++/usr/sbin/ldconfig + # update icon cache + touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +-%post -p /sbin/ldconfig ++%post -p /usr/sbin/ldconfig + +-%postun -p /sbin/ldconfig ++%postun -p /usr/sbin/ldconfig + + %postun gtk +-/sbin/ldconfig ++/usr/sbin/ldconfig + if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +@@ -432,10 +432,10 @@ fi + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +-%post web -p /sbin/ldconfig ++%post web -p /usr/sbin/ldconfig + + +-%postun web -p /sbin/ldconfig ++%postun web -p /usr/sbin/ldconfig + + %files -f %{name}.lang + %doc README.md +-- +2.14.3 + diff --git a/0015-move-defattr-which-match-the-defaults.patch b/0015-move-defattr-which-match-the-defaults.patch new file mode 100644 index 0000000..4546165 --- /dev/null +++ b/0015-move-defattr-which-match-the-defaults.patch @@ -0,0 +1,24 @@ +From ed12ae25790361aac42427983f78896cef0f16e9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 10 Jan 2018 09:11:38 +0100 +Subject: [PATCH 15/22] move defattr which match the defaults + +--- + libreport.spec.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index aceffa83..35daae72 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -552,7 +552,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %{_mandir}/man*/reporter-print.* + + %files plugin-systemd-journal +-%defattr(-,root,root,-) + %{_bindir}/reporter-systemd-journal + %{_mandir}/man*/reporter-systemd-journal.* + +-- +2.14.3 + diff --git a/0016-do-not-expand-macro-in-changelog.patch b/0016-do-not-expand-macro-in-changelog.patch new file mode 100644 index 0000000..6ee18bd --- /dev/null +++ b/0016-do-not-expand-macro-in-changelog.patch @@ -0,0 +1,34 @@ +From 14adfc002f06a595f9fb112f9c2afc074ebaffc7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 10 Jan 2018 09:13:18 +0100 +Subject: [PATCH 16/22] do not expand macro in changelog + +--- + libreport.spec.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index 35daae72..970e772f 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -816,7 +816,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + - build: add gettext-devel to sysdeps + - dd: add check for validity of new file FD + - build: configure tree for debugging by default +-- spec: use %buildroot macro ++- spec: use %%buildroot macro + - spec: remove defattr which match the defaults + - spec: do not clean buildroot + - spec: remove Groups +@@ -876,7 +876,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + * Fri Apr 08 2016 Matej Habrnal 2.7.0-1 + - ignored words: update ignored words + - mailx: introduce debug parameter -D +-- mailx: mail formatting: add comment right after %oneline ++- mailx: mail formatting: add comment right after %%oneline + - mailx: use problem report api to define an emais' content + - lib: remove unused function make_description_bz + - augeas: trim spaces before key value +-- +2.14.3 + diff --git a/0017-reporter-rhtsupport-Remove-dependency-on-redhat-acce.patch b/0017-reporter-rhtsupport-Remove-dependency-on-redhat-acce.patch new file mode 100644 index 0000000..373ba6b --- /dev/null +++ b/0017-reporter-rhtsupport-Remove-dependency-on-redhat-acce.patch @@ -0,0 +1,157 @@ +From 8fddcea966d381ffb3003dbde088e6fdafe57c04 Mon Sep 17 00:00:00 2001 +From: Martin Kutlak +Date: Thu, 11 Jan 2018 15:51:19 +0100 +Subject: [PATCH 17/22] reporter-rhtsupport: Remove dependency on + redhat-access-insights + +The package is going away/will no longer include the certificate. + +Libreport will package the certificate directly. + +Related to #1524481 + +Signed-off-by: Martin Kutlak +--- + configure.ac | 11 +++++ + libreport.spec.in | 9 ++-- + src/lib/ureport.c | 2 +- + src/plugins/Makefile.am | 6 +++ + src/plugins/cert-api.access.redhat.com.pem | 74 ++++++++++++++++++++++++++++++ + 5 files changed, 98 insertions(+), 4 deletions(-) + create mode 100644 src/plugins/cert-api.access.redhat.com.pem + +diff --git a/configure.ac b/configure.ac +index 73ebe3a9..5717248a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -172,6 +172,17 @@ do + done + fi dnl end NO_MANTISBT + ++dnl enable import of certificate for rhtsupport plugin ++AC_ARG_ENABLE([import-rhtsupport-cert], ++AS_HELP_STRING([--enable-import-rhtsupport-cert], ++ [import certificate needed for rhtsupport plugin (default is NO)]), ++[], [enable_import_rhtsupport_cert="no"]) ++ ++AS_IF([test "x$enable_import_rhtsupport_cert" != "xno"], ++AM_CONDITIONAL(ENABLE_IMPORT_RHTSUPPORT_CERT, true), ++AM_CONDITIONAL(ENABLE_IMPORT_RHTSUPPORT_CERT, false)) ++ ++ + AC_ARG_WITH(python2, + AS_HELP_STRING([--with-python2],[use python2 (default is YES)]), + LIBREPORT_PARSE_WITH([python2])) +diff --git a/src/lib/ureport.c b/src/lib/ureport.c +index a595015c..6f1c05a3 100644 +--- a/src/lib/ureport.c ++++ b/src/lib/ureport.c +@@ -40,7 +40,7 @@ + * macro for cert name. Cert path can be easily modified for example by reading + * an environment variable LIBREPORT_DEBUG_AUTHORITY_CERT_DIR_PATH + */ +-#define CERT_AUTHORITY_CERT_PATH "/etc/redhat-access-insights" ++#define CERT_AUTHORITY_CERT_PATH "/etc/libreport" + #define CERT_AUTHORITY_CERT_NAME "cert-api.access.redhat.com.pem" + + static char * +diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am +index f73e7dce..b228602a 100644 +--- a/src/plugins/Makefile.am ++++ b/src/plugins/Makefile.am +@@ -28,6 +28,12 @@ pluginsconfdir = $(PLUGINS_CONF_DIR) + + reportpluginsconfdir = $(REPORT_PLUGINS_CONF_DIR) + ++if ENABLE_IMPORT_RHTSUPPORT_CERT ++libreportconfdir = $(CONF_DIR) ++dist_libreportconf_DATA = \ ++ cert-api.access.redhat.com.pem ++endif ++ + reporters_plugin_conf = + reporters_plugin_format_conf = + if BUILD_BUGZILLA +diff --git a/src/plugins/cert-api.access.redhat.com.pem b/src/plugins/cert-api.access.redhat.com.pem +new file mode 100644 +index 00000000..20ef8c00 +--- /dev/null ++++ b/src/plugins/cert-api.access.redhat.com.pem +@@ -0,0 +1,74 @@ ++-----BEGIN CERTIFICATE----- ++MIIHZDCCBUygAwIBAgIJAOb+QiglyeZeMA0GCSqGSIb3DQEBBQUAMIGwMQswCQYD ++VQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp ++Z2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0 ++d29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN ++AQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTAwMzE3MTkwMDQ0WhcNMzAw ++MzEyMTkwMDQ0WjCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9s ++aW5hMRAwDgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgw ++FgYDVQQLDA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1h ++c3RlciBDQTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMIIC ++IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2Z+mW7OYcBcGxWS+RSKG2GJ2 ++csMXiGGfEp36vKVsIvypmNS60SkicKENMYREalbdSjrgfXxPJygZWsVWJ5lHPfBV ++o3WkFrFHTIXd/R6LxnaHD1m8Cx3GwEeuSlE/ASjc1ePtMnsHH7xqZ9wdl85b1C8O ++scgO7fwuM192kvv/veI/BogIqUQugtG6szXpV8dp4ml029LXFoNIy2lfFoa2wKYw ++MiUHwtYgAz7TDY63e8qGhd5PoqTv9XKQogo2ze9sF9y/npZjliNy5qf6bFE+24oW ++E8pGsp3zqz8h5mvw4v+tfIx5uj7dwjDteFrrWD1tcT7UmNrBDWXjKMG81zchq3h4 ++etgF0iwMHEuYuixiJWNzKrLNVQbDmcLGNOvyJfq60tM8AUAd72OUQzivBegnWMit ++CLcT5viCT1AIkYXt7l5zc/duQWLeAAR2FmpZFylSukknzzeiZpPclRziYTboDYHq ++revM97eER1xsfoSYp4mJkBHfdlqMnf3CWPcNgru8NbEPeUGMI6+C0YvknPlqDDtU ++ojfl4qNdf6nWL+YNXpR1YGKgWGWgTU6uaG8Sc6qGfAoLHh6oGwbuz102j84OgjAJ ++DGv/S86svmZWSqZ5UoJOIEqFYrONcOSgztZ5tU+gP4fwRIkTRbTEWSgudVREOXhs ++bfN1YGP7HYvS0OiBKZUCAwEAAaOCAX0wggF5MB0GA1UdDgQWBBSIS6ZFxEbsj9bP ++pvYazyY8kMx/FzCB5QYDVR0jBIHdMIHagBSIS6ZFxEbsj9bPpvYazyY8kMx/F6GB ++tqSBszCBsDELMAkGA1UEBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAw ++DgYDVQQHDAdSYWxlaWdoMRYwFAYDVQQKDA1SZWQgSGF0LCBJbmMuMRgwFgYDVQQL ++DA9SZWQgSGF0IE5ldHdvcmsxHjAcBgNVBAMMFUVudGl0bGVtZW50IE1hc3RlciBD ++QTEkMCIGCSqGSIb3DQEJARYVY2Etc3VwcG9ydEByZWRoYXQuY29tggkA5v5CKCXJ ++5l4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgEG ++MCAGA1UdEQQZMBeBFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTAgBgNVHRIEGTAXgRVj ++YS1zdXBwb3J0QHJlZGhhdC5jb20wDQYJKoZIhvcNAQEFBQADggIBAJ1hEdNBDTRr ++6kI6W6stoogSUwjuiWPDY8DptwGhdpyIfbCoxvBR7F52DlwyXOpCunogfKMRklnE ++gH1Wt66RYkgNuJcenKHAhR5xgSLoPCOVF9rDjMunyyBuxjIbctM21R7BswVpsEIE ++OpV5nlJ6wkHsrn0/E+Zk5UJdCzM+Fp4hqHtEn/c97nvRspQcpWeDg6oUvaJSZTGM ++8yFpzR90X8ZO4rOgpoERukvYutUfJUzZuDyS3LLc6ysamemH93rZXr52zc4B+C9G ++Em8zemDgIPaH42ce3C3TdVysiq/yk+ir7pxW8toeavFv75l1UojFSjND+Q2AlNQn ++pYkmRznbD5TZ3yDuPFQG2xYKnMPACepGgKZPyErtOIljQKCdgcvb9EqNdZaJFz1+ ++/iWKYBL077Y0CKwb+HGIDeYdzrYxbEd95YuVU0aStnf2Yii2tLcpQtK9cC2+DXjL ++Yf3kQs4xzH4ZejhG9wzv8PGXOS8wHYnfVNA3+fclDEQ1mEBKWHHmenGI6QKZUP8f ++g0SQ3PNRnSZu8R+rhABOEuVFIBRlaYijg2Pxe0NgL9FlHsNyRfo6EUrB2QFRKACW ++3Mo6pZyDjQt7O8J7l9B9IIURoJ1niwygf7VSJTMl2w3fFleNJlZTGgdXw0V+5g+9 ++Kg6Ay0rrsi4nw1JHue2GvdjdfVOaWSWC ++-----END CERTIFICATE----- ++-----BEGIN CERTIFICATE----- ++MIIFfTCCA2WgAwIBAgIJAJGKz8qFAAADMA0GCSqGSIb3DQEBBQUAMIGwMQswCQYD ++VQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp ++Z2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0 ++d29yazEeMBwGA1UEAwwVRW50aXRsZW1lbnQgTWFzdGVyIENBMSQwIgYJKoZIhvcN ++AQkBFhVjYS1zdXBwb3J0QHJlZGhhdC5jb20wHhcNMTUwNTA1MTMwMzQ4WhcNMjUw ++NTAyMTMwMzQ4WjCBiTELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5PUlRIIENBUk9M ++SU5BMRAwDgYDVQQHEwdSYWxlaWdoMRAwDgYDVQQKEwdSZWQgSGF0MRgwFgYDVQQL ++Ew9SZWQgSGF0IE5ldHdvcmsxIzAhBgNVBAMTGmNlcnQtYXBpLmFjY2Vzcy5yZWRo ++YXQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9hTNMtZMa7Kg ++Jlux6pnuUinP0Rv0aiiPFr7qNHFore4loGrPlpzUvQbUByy3xm7lhf4R4qbINCls ++veWg6HDidvQr174RXb5YLMXuBrYAiPWQTrRRLNuvXFHKzREghRWTv48IXTIDEo0G ++fZJUO+myY2RfwqugZKic5dR6ZakHSSpQO70O6H5R0eHlKa13k4eEpG2fVY/xqFto ++WkfZyEmSacZpqxp7gIjZqreLc4MFwpiVjGFrK3Jk+Px1Z6J94LTLx2SxrYzWIeUs ++5j+lceQOvpV4/pkClnRCW1pkCKTccjFKQkpNPGwdIusRXUGl9IYc20Fa/7g9iUQc ++5fXu9EAzfwIDAQABo4G+MIG7MAkGA1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZA ++MAsGA1UdDwQEAwIF4DATBgNVHSUEDDAKBggrBgEFBQcDATA5BglghkgBhvhCAQ0E ++LBYqTWFuYWdlZCBieSBSZWQgSGF0IChjYS1zdXBwb3J0QHJlZGhhdC5jb20pMB0G ++A1UdDgQWBBRfgCjd8aXf0U4VX8DKTVIn+paGBzAfBgNVHSMEGDAWgBSIS6ZFxEbs ++j9bPpvYazyY8kMx/FzANBgkqhkiG9w0BAQUFAAOCAgEAlC+r6UEEp5BUkI0Rj2T+ ++1PH7oUCaGQeQoyVbGddz/WUcBk/lMMtyCEoxU+3tTwNWmCWWjYXtjoL9MlSAC/q+ ++NZfBi1iq0uuSus9JI/Uu8aRhoxTK56qGRed/JNixOHEmFn891cahIPpF0exWwtYD ++ThwXo7Z6PI7t8EMKdSrGTOowp58yho8xYFL/Z7JmjL55Pf85GIrdiniNZd4i178J ++07R9zsiLvdXq9mT33iJwkm+uhO+FA9d8OE3ji21pBbGUAQSWOdkemvUCsy8zANW9 ++fT+dBrMr5Buk7eaBBJ2PxECNiWLCRQJWmyff1O5zMT0daS2lBdEGUNhBZ0hnX13Q ++kabUp0bxRrNRq+WkomP7onZhfZS6SjKm0UmwoV6o3V1ED6y7muQNRmgDpA5PcbvO ++gl7OexNL4zcpyfMdAmTYf5yTRSvB42Yg5hVfuzPEnOIqupwES3mWkEHRlqbMUkHw ++qIQAxIwQqZd5PdPpElQ/6j/ZT9DwW/I6zgndX2rsS0oGYcwFTkSj0/rKKkC13hk7 ++LchXMZu5ckdustM79U6OZIBairrJaL2OpR08un2nwIjgEGqhVFYc44UK1VpkE8mr ++qvqJS6OHVlTlKcEDnhVkPS3i5qjuS/PtSq0CwH8bzYKFJayLDY/z36Zv6PdttzmU ++Yb1NSDcJejHJ80pMINutyYQ= ++-----END CERTIFICATE----- +-- +2.14.3 + diff --git a/0018-ldconfig-and-gtk-update-icon-cache-is-not-needed-in-.patch b/0018-ldconfig-and-gtk-update-icon-cache-is-not-needed-in-.patch new file mode 100644 index 0000000..819726b --- /dev/null +++ b/0018-ldconfig-and-gtk-update-icon-cache-is-not-needed-in-.patch @@ -0,0 +1,41 @@ +From 3059c9fe871c8f1779588e2763d4ed8e9ce4f61d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Wed, 31 Jan 2018 10:14:49 +0100 +Subject: [PATCH 18/22] ldconfig and gtk-update-icon-cache is not needed in + rawhide + +see https://pagure.io/packaging-committee/issue/736 +--- + libreport.spec.in | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index 970e772f..b6302414 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -412,6 +412,9 @@ make check|| { + exit 1 + } + ++%if 0%{?fedora} > 27 ++# ldconfig and gtk-update-icon-cache is not needed ++%else + %post gtk + /usr/sbin/ldconfig + # update icon cache +@@ -431,11 +434,10 @@ fi + %posttrans gtk + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +- + %post web -p /usr/sbin/ldconfig + +- + %postun web -p /usr/sbin/ldconfig ++%endif + + %files -f %{name}.lang + %doc README.md +-- +2.14.3 + diff --git a/0019-ureport-remove-json-c-is_error-usage.patch b/0019-ureport-remove-json-c-is_error-usage.patch new file mode 100644 index 0000000..2fb298e --- /dev/null +++ b/0019-ureport-remove-json-c-is_error-usage.patch @@ -0,0 +1,26 @@ +From e5a8fb6dfe5276fbd55235298bb3fd008b62d0ae Mon Sep 17 00:00:00 2001 +From: Kyle Russell +Date: Wed, 7 Feb 2018 16:01:11 -0500 +Subject: [PATCH 19/22] ureport: remove json-c is_error() usage + +This macro has been deprecated and removed from json-c/bits.h. +--- + src/lib/ureport.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib/ureport.c b/src/lib/ureport.c +index 6f1c05a3..c32c948a 100644 +--- a/src/lib/ureport.c ++++ b/src/lib/ureport.c +@@ -613,7 +613,7 @@ ureport_server_response_from_reply(post_state_t *post_state, + + json_object *const json = json_tokener_parse(post_state->body); + +- if (is_error(json)) ++ if (json == NULL) + { + error_msg(_("Unable to parse response from ureport server at '%s'"), config->ur_url); + log_notice("%s", post_state->body); +-- +2.14.3 + diff --git a/0020-Revert-use-usr-sbin.patch b/0020-Revert-use-usr-sbin.patch new file mode 100644 index 0000000..162f05c --- /dev/null +++ b/0020-Revert-use-usr-sbin.patch @@ -0,0 +1,56 @@ +From a8a1121df0ab0fff04755f50cd85e30595ec8381 Mon Sep 17 00:00:00 2001 +From: Martin Kutlak +Date: Mon, 26 Mar 2018 16:44:26 +0200 +Subject: [PATCH 20/22] Revert "use /usr/sbin/" + +This reverts commit 801b3ec7f6e8c4f932796786e5dd8fa8a72817b8. + +Reverting because ldconfig is still in /sbin. + +See https://bugzilla.redhat.com/show_bug.cgi?id=1063607 +--- + libreport.spec.in | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) + +diff --git a/libreport.spec.in b/libreport.spec.in +index 0ddb7d27..1ba007cc 100644 +--- a/libreport.spec.in ++++ b/libreport.spec.in +@@ -416,16 +416,16 @@ make check|| { + # ldconfig and gtk-update-icon-cache is not needed + %else + %post gtk +-/usr/sbin/ldconfig ++/sbin/ldconfig + # update icon cache + touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +-%post -p /usr/sbin/ldconfig ++%post -p /sbin/ldconfig + +-%postun -p /usr/sbin/ldconfig ++%postun -p /sbin/ldconfig + + %postun gtk +-/usr/sbin/ldconfig ++/sbin/ldconfig + if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +@@ -434,9 +434,11 @@ fi + %posttrans gtk + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +-%post web -p /usr/sbin/ldconfig + +-%postun web -p /usr/sbin/ldconfig ++%post web -p /sbin/ldconfig ++ ++ ++%postun web -p /sbin/ldconfig + %endif + + %files -f %{name}.lang +-- +2.14.3 + diff --git a/0021-Translation-updates.patch b/0021-Translation-updates.patch new file mode 100644 index 0000000..682b002 --- /dev/null +++ b/0021-Translation-updates.patch @@ -0,0 +1,797 @@ +From 05ab224c2faf1b9e4777af159a9b65f7e5c28918 Mon Sep 17 00:00:00 2001 +From: Martin Kutlak +Date: Tue, 27 Mar 2018 17:10:22 +0200 +Subject: [PATCH 21/22] Translation updates + +Signed-off-by: Martin Kutlak +--- + po/ca.po | 26 +++++------- + po/cs.po | 7 ++-- + po/da.po | 137 +++++++++++++++++++++++++++++++++------------------------------ + po/de.po | 4 +- + po/ta.po | 39 ++++++++++++------ + 5 files changed, 113 insertions(+), 100 deletions(-) + +diff --git a/po/ca.po b/po/ca.po +index f6ede694..5af9c199 100644 +--- a/po/ca.po ++++ b/po/ca.po +@@ -9,6 +9,7 @@ + # Robert Antoni Buj Gelonch , 2015. #zanata + # Robert Antoni Buj Gelonch , 2016. #zanata + # Robert Antoni Buj Gelonch , 2017. #zanata ++# Robert Antoni Buj Gelonch , 2018. #zanata + msgid "" + msgstr "" + "Project-Id-Version: PACKAGE VERSION\n" +@@ -17,7 +18,7 @@ msgstr "" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"PO-Revision-Date: 2017-08-22 11:33-0400\n" ++"PO-Revision-Date: 2018-02-24 11:09-0500\n" + "Last-Translator: Robert Antoni Buj Gelonch \n" + "Language-Team: Catalan (http://www.transifex.com/projects/p/libreport/" + "language/ca/)\n" +@@ -111,7 +112,7 @@ msgstr "# Executable" + + #: ../src/cli/cli-report.c:161 + msgid "# Kernel version" +-msgstr "# Versió del nucli del sistema operatiu" ++msgstr "# Versió del kernel" + + #: ../src/cli/cli-report.c:162 + msgid "# Package" +@@ -643,7 +644,7 @@ msgid "" + "passwords. The uploaded data are stored in a protected storage and only a " + "limited number of persons can read them." + msgstr "" +-"Si esteu segurs que aquest problema no ha estat provocat per problemes a la " ++"Si esteu segur que aquest problema no ha estat provocat per problemes a la " + "xarxa ni per una configuració no vàlida i voleu ajudar-nos, feu clic al botó " + "de pujar i proporcioneu totes les dades del problema per una anàlisi " + "profunda.\n" +@@ -1904,7 +1905,7 @@ msgstr "S'estan afegint els adjunts a l'error de programari %i" + #, c-format + msgid "Closing bug %i as duplicate of bug %i" + msgstr "" +-"S'està tancatnt l'error de programari %i com a duplicat de l'error de " ++"S'està tancant l'error de programari %i com a duplicat de l'error de " + "programari %i" + + #: ../src/plugins/reporter-bugzilla.c:780 +@@ -1959,8 +1960,7 @@ msgid "" + msgstr "" + "& [-v] [-c FITXERCONF]... -d DIR\n" + "\n" +-"Informa dels oops del nucli del sistema operatiu al lloc kerneloops.org (o " +-"similar).\n" ++"Informa dels oops del kernel al lloc kerneloops.org (o similar).\n" + "\n" + "Els fitxers amb els noms llistats a $EXCLUDE_FROM_REPORT no estan inclosos\n" + "a l'arxiu tar.\n" +@@ -2612,7 +2612,7 @@ msgstr "Kerneloops.org" + + #: ../src/plugins/report_Kerneloops.xml.in.h:2 + msgid "Send to kernel oops tracker" +-msgstr "Envia-ho a un rastrejador oops del nucli del sistema operatiu" ++msgstr "Envia-ho a un rastrejador oops del kernel" + + #: ../src/plugins/report_Kerneloops.xml.in.h:3 + msgid "Kerneloops URL" +@@ -3379,9 +3379,7 @@ msgstr "" + + #: ../src/workflows/workflow_CentOSVmcore.xml.in.h:2 + msgid "Process the kernel crash using the CentOS infrastructure" +-msgstr "" +-"Processa la pana del nucli del sistema operatiu mitjançant la " +-"infraestructura de CentOS" ++msgstr "Processa la pana del kernel mitjançant la infraestructura de CentOS" + + #: ../src/workflows/workflow_CentOSXorg.xml.in.h:2 + msgid "Process the X Server problem using the CentOS infrastructure" +@@ -3420,9 +3418,7 @@ msgstr "" + + #: ../src/workflows/workflow_FedoraVmcore.xml.in.h:2 + msgid "Process the kernel crash using the Fedora infrastructure" +-msgstr "" +-"Processa la pana del nucli del sistema operatiu mitjançant la " +-"infraestructura de Fedora" ++msgstr "Processa la pana del kernel mitjançant la infraestructura de Fedora" + + #: ../src/workflows/workflow_FedoraXorg.xml.in.h:2 + msgid "Process the X Server problem using the Fedora infrastructure" +@@ -3541,9 +3537,7 @@ msgstr "" + + #: ../src/workflows/workflow_RHELBugzillaVmcore.xml.in.h:2 + msgid "Process the kernel crash using the Red Hat infrastructure" +-msgstr "" +-"Processa la pana del nucli del sistema operatiu mitjançant la " +-"infraestructura de Red Hat" ++msgstr "Processa la pana del kernel mitjançant la infraestructura de Red Hat" + + #: ../src/workflows/workflow_RHELBugzillaXorg.xml.in.h:2 + msgid "Process the X Server problem using the Red Hat infrastructure" +diff --git a/po/cs.po b/po/cs.po +index 1f482a03..9df4dbd9 100644 +--- a/po/cs.po ++++ b/po/cs.po +@@ -14,6 +14,7 @@ + # Daniel Rusek , 2017. #zanata + # Miroslav Suchý , 2017. #zanata + # Zdenek , 2017. #zanata ++# Zdenek , 2018. #zanata + msgid "" + msgstr "" + "Project-Id-Version: PACKAGE VERSION\n" +@@ -22,8 +23,8 @@ msgstr "" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"PO-Revision-Date: 2017-08-07 10:36-0400\n" +-"Last-Translator: Daniel Rusek \n" ++"PO-Revision-Date: 2018-02-20 04:46-0500\n" ++"Last-Translator: Zdenek \n" + "Language-Team: Czech (http://www.transifex.com/projects/p/libreport/language/" + "cs/)\n" + "Language: cs\n" +@@ -982,7 +983,7 @@ msgstr "" + + #: ../src/include/internal_libreport.h:1228 + msgid "Be verbose" +-msgstr "Více upovídaný" ++msgstr "Podrobnější výstup" + + #: ../src/include/internal_libreport.h:1229 + #: ../src/plugins/reporter-bugzilla.c:295 +diff --git a/po/da.po b/po/da.po +index 28e0a235..e2bffb61 100644 +--- a/po/da.po ++++ b/po/da.po +@@ -3,6 +3,7 @@ + # This file is distributed under the same license as the PACKAGE package. + # + # Translators: ++# scootergrisen , 2018. #zanata + msgid "" + msgstr "" + "Project-Id-Version: PACKAGE VERSION\n" +@@ -11,7 +12,7 @@ msgstr "" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"PO-Revision-Date: 2015-01-08 06:51-0500\n" ++"PO-Revision-Date: 2018-01-30 03:31-0500\n" + "Last-Translator: Copied by Zanata \n" + "Language-Team: Danish (http://www.transifex.com/projects/p/libreport/" + "language/da/)\n" +@@ -26,44 +27,48 @@ msgid "" + " or: & [-vspy] -d PROBLEM_DIR\n" + " or: & [-vspy] -x PROBLEM_DIR" + msgstr "" ++"& [-vsp] -L[PRÆFIKS] [PROBLEMMAPPE]\n" ++" eller: & [-vspy] -e BEGIVENHED PROBLEMMAPPE\n" ++" eller: & [-vspy] -d PROBLEMMAPPE\n" ++" eller: & [-vspy] -x PROBLEMMAPPE" + + #. short_name long_name value parameter_name help + #: ../src/cli/cli.c:86 + msgid "List possible events [which start with PREFIX]" +-msgstr "" ++msgstr "Oplist mulige begivenheder [som starter med PRÆFIKS]" + + #: ../src/cli/cli.c:87 ../src/gui-wizard-gtk/main.c:172 + msgid "Run only these events" +-msgstr "" ++msgstr "Kør kun disse begivenheder" + + #: ../src/cli/cli.c:88 ../src/gui-wizard-gtk/main.c:171 + msgid "Remove PROBLEM_DIR after reporting" +-msgstr "" ++msgstr "Fjern PROBLEMMAPPE efter rapportering" + + #: ../src/cli/cli.c:89 ../src/gui-wizard-gtk/main.c:173 + msgid "Expert mode" +-msgstr "" ++msgstr "Eksperttilstand" + + #: ../src/cli/cli.c:90 ../src/report-newt/report-newt.c:395 + msgid "Display version and exit" +-msgstr "" ++msgstr "Vis version og afslut" + + #: ../src/cli/cli.c:91 + msgid "Noninteractive: don't ask questions, assume 'yes'" +-msgstr "" ++msgstr "Ikke interaktiv: stil ikke spørgsmål, antag 'ja'" + + #: ../src/cli/cli.c:93 + msgid "Log to syslog" +-msgstr "Skriv til syslog" ++msgstr "Log til syslog" + + #: ../src/cli/cli.c:94 ../src/gui-wizard-gtk/main.c:170 + msgid "Add program names to log" +-msgstr "Føj programnavne til log" ++msgstr "Tilføj programnavne til log" + + #: ../src/cli/cli-report.c:132 + #, c-format + msgid "# This field is read only\n" +-msgstr "# Dette felt er skrivebeskyttet\n" ++msgstr "# Feltet er skrivebeskyttet\n" + + #: ../src/cli/cli-report.c:152 + msgid "# Describe the circumstances of this crash below" +@@ -107,7 +112,7 @@ msgstr "# Pakke" + + #: ../src/cli/cli-report.c:163 + msgid "# Reason of crash" +-msgstr "# Grund til nedbrud" ++msgstr "# Årsagen til nedbrudet" + + #: ../src/cli/cli-report.c:170 + msgid "# os-release configuration file from root dir" +@@ -123,7 +128,7 @@ msgstr "" + + #: ../src/cli/cli-report.c:188 + msgid "# Release string of the operating system" +-msgstr "# Operativsystemets udgivelsesstreng" ++msgstr "# Styresystemets udgivelsesstreng" + + #: ../src/cli/cli-report.c:319 + msgid "Cannot run vi: $TERM, $VISUAL and $EDITOR are not set" +@@ -345,24 +350,24 @@ msgstr "" + #. + #: ../src/gtk-helpers/ask_dialogs.c:87 + msgid "_No" +-msgstr "" ++msgstr "_Nej" + + #: ../src/gtk-helpers/ask_dialogs.c:88 + msgid "_Yes" +-msgstr "" ++msgstr "_Ja" + + #: ../src/gtk-helpers/ask_dialogs.c:94 + msgid "Don't ask me again" +-msgstr "" ++msgstr "Spørg mig ikke igen" + + #. if event has no xml description + #: ../src/gtk-helpers/config_dialog.c:182 + msgid "No description available" +-msgstr "" ++msgstr "Ingen beskrivelse tilgængelig" + + #: ../src/gtk-helpers/config_dialog.c:345 + msgid "Configuration" +-msgstr "" ++msgstr "Konfiguration" + + #. we can't use this, because we want the workflows first and hashtable + #. * doesn't return the items in the order they were added +@@ -378,15 +383,15 @@ msgstr "" + #: ../src/gtk-helpers/config_dialog.c:369 + #: ../src/gtk-helpers/config_dialog.c:433 + msgid "Events" +-msgstr "" ++msgstr "Begivenheder" + + #: ../src/gtk-helpers/config_dialog.c:373 + msgid "C_onfigure" +-msgstr "" ++msgstr "_Konfigurer" + + #: ../src/gtk-helpers/config_dialog.c:375 ../src/gui-wizard-gtk/wizard.c:3702 + msgid "_Close" +-msgstr "" ++msgstr "_Luk" + + #: ../src/gtk-helpers/event_config_dialog.c:144 + msgid "Show password" +@@ -394,15 +399,15 @@ msgstr "Vis adgangskode" + + #: ../src/gtk-helpers/event_config_dialog.c:275 + msgid "Don't store passwords" +-msgstr "" ++msgstr "Gem ikke adgangskoder" + + #: ../src/gtk-helpers/event_config_dialog.c:285 + msgid "Basic" +-msgstr "" ++msgstr "Grundlæggende" + + #: ../src/gtk-helpers/event_config_dialog.c:293 + msgid "Advanced" +-msgstr "" ++msgstr "Avanceret" + + #: ../src/gtk-helpers/event_config_dialog.c:309 + msgid "Secret Service is not available, your settings won't be saved!" +@@ -412,12 +417,12 @@ msgstr "" + #: ../src/gtk-helpers/workflow_config_dialog.c:94 + #: ../src/gui-wizard-gtk/wizard.c:783 ../src/gui-wizard-gtk/wizard.c:3302 + msgid "_Cancel" +-msgstr "" ++msgstr "_Annuller" + + #: ../src/gtk-helpers/event_config_dialog.c:351 + #: ../src/gtk-helpers/workflow_config_dialog.c:96 + msgid "_OK" +-msgstr "" ++msgstr "_OK" + + #: ../src/gtk-helpers/secrets.c:171 + #, c-format +@@ -464,19 +469,19 @@ msgstr "" + + #: ../src/gtk-helpers/problem_details_dialog.c:30 + msgid "Problem details" +-msgstr "" ++msgstr "Probelmdetaljer" + + #: ../src/gtk-helpers/problem_details_dialog.c:33 + msgid "OK" +-msgstr "" ++msgstr "OK" + + #: ../src/gui-wizard-gtk/main.c:107 + msgid "Preferences" +-msgstr "" ++msgstr "Præferencer" + + #: ../src/gui-wizard-gtk/main.c:110 + msgid "Quit" +-msgstr "" ++msgstr "Afslut" + + #: ../src/gui-wizard-gtk/main.c:154 + msgid "" +@@ -498,11 +503,11 @@ msgstr "" + + #: ../src/gui-wizard-gtk/wizard.c:774 + msgid "View/edit a text file" +-msgstr "" ++msgstr "Vis/rediger en tekstfil" + + #: ../src/gui-wizard-gtk/wizard.c:782 + msgid "_Save" +-msgstr "" ++msgstr "_Gem" + + #: ../src/gui-wizard-gtk/wizard.c:1004 + msgid "" +@@ -513,12 +518,12 @@ msgstr "" + #: ../src/gui-wizard-gtk/wizard.c:1046 + #, c-format + msgid "(requires: %s)" +-msgstr "" ++msgstr "(kræver: %s)" + + #: ../src/gui-wizard-gtk/wizard.c:1060 + #, c-format + msgid "(not needed, data already exist: %s)" +-msgstr "" ++msgstr "(behøves ikke, data findes allerede: %s)" + + #: ../src/gui-wizard-gtk/wizard.c:1159 + msgid "" +@@ -557,7 +562,7 @@ msgstr "%llu byte, %u filer" + + #: ../src/gui-wizard-gtk/wizard.c:1703 + msgid "Processing was canceled" +-msgstr "" ++msgstr "Behandling blev annulleret" + + #: ../src/gui-wizard-gtk/wizard.c:1914 + msgid "" +@@ -648,12 +653,12 @@ msgstr "" + + #: ../src/gui-wizard-gtk/wizard.c:3303 + msgid "_Open" +-msgstr "" ++msgstr "_Åbn" + + #: ../src/gui-wizard-gtk/wizard.c:3325 + #, c-format + msgid "'%s' is not an ordinary file" +-msgstr "" ++msgstr "'%s' er ikke en almindelig fil" + + #: ../src/gui-wizard-gtk/wizard.c:3339 + msgid "You are trying to copy a file onto itself" +@@ -662,7 +667,7 @@ msgstr "" + #: ../src/gui-wizard-gtk/wizard.c:3346 + #, c-format + msgid "Can't copy '%s': %s" +-msgstr "" ++msgstr "Kan ikke kopiere '%s': %s" + + #: ../src/gui-wizard-gtk/wizard.c:3361 + #, c-format +@@ -683,7 +688,7 @@ msgstr "" + + #: ../src/gui-wizard-gtk/wizard.c:3544 + msgid "Include" +-msgstr "" ++msgstr "Inkluder" + + #: ../src/gui-wizard-gtk/wizard.c:3555 + msgid "Name" +@@ -695,7 +700,7 @@ msgstr "Værdi" + + #: ../src/gui-wizard-gtk/wizard.c:3599 + msgid "Problem description" +-msgstr "" ++msgstr "Problembeskrivelse" + + #: ../src/gui-wizard-gtk/wizard.c:3600 + msgid "Select how to report this problem" +@@ -723,7 +728,7 @@ msgstr "" + + #: ../src/gui-wizard-gtk/wizard.c:3704 + msgid "_Stop" +-msgstr "" ++msgstr "_Stop" + + #. else gtk_widget_hide won't work + #: ../src/gui-wizard-gtk/wizard.c:3707 +@@ -733,7 +738,7 @@ msgstr "" + #. else gtk_widget_hide won't work + #: ../src/gui-wizard-gtk/wizard.c:3710 + msgid "Repeat" +-msgstr "" ++msgstr "Gentag" + + #. else gtk_widget_hide won't work + #: ../src/gui-wizard-gtk/wizard.c:3712 +@@ -790,15 +795,15 @@ msgstr "" + + #: ../src/gui-wizard-gtk/wizard.glade.h:6 + msgid "file" +-msgstr "" ++msgstr "fil" + + #: ../src/gui-wizard-gtk/wizard.glade.h:7 + msgid "data" +-msgstr "" ++msgstr "data" + + #: ../src/gui-wizard-gtk/wizard.glade.h:8 + msgid "Search" +-msgstr "" ++msgstr "Søg" + + #: ../src/gui-wizard-gtk/wizard.glade.h:9 + msgid "" +@@ -878,7 +883,7 @@ msgstr "" + + #: ../src/gui-wizard-gtk/wizard.glade.h:25 + msgid "Show log" +-msgstr "" ++msgstr "Vis log" + + #: ../src/gui-wizard-gtk/wizard.glade.h:26 + msgid "Reporting has finished. You can close this window now." +@@ -893,7 +898,7 @@ msgstr "" + + #: ../src/include/internal_libreport.h:1228 + msgid "Be verbose" +-msgstr "" ++msgstr "Vær uddybende" + + #: ../src/include/internal_libreport.h:1229 + #: ../src/plugins/reporter-bugzilla.c:295 +@@ -902,12 +907,12 @@ msgstr "" + #: ../src/plugins/reporter-systemd-journal.c:245 + #: ../src/plugins/reporter-upload.c:186 ../src/plugins/reporter-mantisbt.c:283 + msgid "Problem directory" +-msgstr "" ++msgstr "Problemmappe" + + #: ../src/lib/abrt_sock.c:160 + #, c-format + msgid "Can't delete: '%s'" +-msgstr "" ++msgstr "Kan ikke slette: '%s'" + + #: ../src/lib/abrt_sock.c:196 + msgid "locked by another process" +@@ -924,7 +929,7 @@ msgstr "" + #: ../src/lib/abrt_sock.c:217 + #, c-format + msgid "Can't delete '%s': %s" +-msgstr "" ++msgstr "Kan ikke slette '%s': %s" + + #: ../src/lib/client.c:55 ../src/lib/client.c:87 ../src/lib/client.c:144 + msgid "y" +@@ -1166,15 +1171,15 @@ msgstr "" + + #: ../src/lib/make_descr.c:149 ../src/lib/make_descr.c:160 + msgid "Reported:" +-msgstr "" ++msgstr "Rapporteret:" + + #: ../src/lib/make_descr.c:149 + msgid "cannot be reported" +-msgstr "" ++msgstr "kan ikke rapporteres" + + #: ../src/lib/parse_options.c:63 + msgid "Usage: " +-msgstr "" ++msgstr "Anvendelse: " + + #: ../src/lib/problem_data.c:252 + #, c-format +@@ -1220,7 +1225,7 @@ msgstr "" + #: ../src/lib/run_event.c:880 + #, c-format + msgid "('%s' exited with %u)\n" +-msgstr "" ++msgstr "('%s' afsluttede med %u)\n" + + #: ../src/plugins/abrt_rh_support.c:356 + #, c-format +@@ -1264,7 +1269,7 @@ msgstr "" + + #: ../src/plugins/report_Bugzilla.xml.in.h:1 + msgid "Bugzilla" +-msgstr "" ++msgstr "Bugzilla" + + #: ../src/plugins/report_Bugzilla.xml.in.h:2 + msgid "Report to Bugzilla bug tracker" +@@ -1274,7 +1279,7 @@ msgstr "" + #: ../src/plugins/report_CentOSBugTracker.xml.in.h:3 + #: ../src/plugins/report_Uploader.xml.in.h:6 + msgid "User name" +-msgstr "" ++msgstr "Brugernavn" + + #: ../src/plugins/report_Bugzilla.xml.in.h:4 + msgid "Bugzilla account user name" +@@ -1291,7 +1296,7 @@ msgstr "" + #: ../src/plugins/report_RHTSupport.xml.in.h:5 + #: ../src/plugins/report_Uploader.xml.in.h:8 + msgid "Password" +-msgstr "" ++msgstr "Adgangskode" + + #: ../src/plugins/report_Bugzilla.xml.in.h:7 + msgid "Bugzilla account password" +@@ -1310,7 +1315,7 @@ msgstr "" + + #: ../src/plugins/report_Bugzilla.xml.in.h:10 + msgid "Groups" +-msgstr "" ++msgstr "Grupper" + + #: ../src/plugins/report_Bugzilla.xml.in.h:11 + msgid "" +@@ -1320,7 +1325,7 @@ msgstr "" + + #: ../src/plugins/report_Bugzilla.xml.in.h:12 + msgid "Bugzilla URL" +-msgstr "" ++msgstr "Bugzilla-URL" + + #: ../src/plugins/report_Bugzilla.xml.in.h:13 + msgid "Address of Bugzilla server" +@@ -1331,7 +1336,7 @@ msgstr "" + #: ../src/plugins/report_RHTSupport.xml.in.h:11 + #: ../src/plugins/report_uReport.xml.in.h:9 + msgid "Verify SSL" +-msgstr "" ++msgstr "Bekræft SSL" + + #: ../src/plugins/report_Bugzilla.xml.in.h:15 + #: ../src/plugins/report_CentOSBugTracker.xml.in.h:13 +@@ -1342,7 +1347,7 @@ msgstr "" + + #: ../src/plugins/report_Bugzilla.xml.in.h:16 + msgid "Bugzilla product" +-msgstr "" ++msgstr "Bugzilla-produkt" + + #: ../src/plugins/report_Bugzilla.xml.in.h:17 + msgid "" +@@ -1388,7 +1393,7 @@ msgstr "" + #: ../src/plugins/report_uReport.xml.in.h:13 + #: ../src/plugins/report_EmergencyAnalysis.xml.in.h:6 + msgid "HTTPS Proxy" +-msgstr "" ++msgstr "HTTPS-proxy" + + #: ../src/plugins/report_Bugzilla.xml.in.h:23 + #: ../src/plugins/report_CentOSBugTracker.xml.in.h:21 +@@ -2842,24 +2847,24 @@ msgstr "" + #: ../src/report-newt/report-newt.c:169 ../src/report-newt/report-newt.c:259 + #: ../src/report-newt/report-newt.c:337 ../src/report-newt/report-newt.c:354 + msgid "Ok" +-msgstr "" ++msgstr "OK" + + #: ../src/report-newt/report-newt.c:68 ../src/report-newt/report-newt.c:146 + msgid "Cancel" +-msgstr "" ++msgstr "Annuller" + + #: ../src/report-newt/report-newt.c:169 ../src/report-newt/report-newt.c:337 + msgid "Error" +-msgstr "" ++msgstr "Fejl" + + #: ../src/report-newt/report-newt.c:256 + msgid "Reporting" +-msgstr "" ++msgstr "Rapportering" + + #: ../src/report-newt/report-newt.c:276 + #, c-format + msgid "--- Running %s ---" +-msgstr "" ++msgstr "--- Kører %s ---" + + #: ../src/report-newt/report-newt.c:354 + msgid "No reporters available" +diff --git a/po/de.po b/po/de.po +index ff679d4e..1c4942a8 100644 +--- a/po/de.po ++++ b/po/de.po +@@ -13,10 +13,10 @@ + # Roman Spirgi , 2011 + # DerDerwish , 2011 + # noxin , 2014 +-# Roman Spirgi , 2015. #zanata ++# Roman Spirgi , 2015. #zanata + # Georg Hasibether , 2016. #zanata + # Lisa Stemmler , 2016. #zanata +-# Roman Spirgi , 2016. #zanata ++# Roman Spirgi , 2016. #zanata + # Florian H. , 2017. #zanata + # Miroslav Suchý , 2017. #zanata + # Tobias Weise , 2017. #zanata +diff --git a/po/ta.po b/po/ta.po +index fcda6fb5..8e8d921f 100644 +--- a/po/ta.po ++++ b/po/ta.po +@@ -8,6 +8,7 @@ + # I Felix , 2011 + # shkumar , 2014 + # shkumar , 2014 ++# Kirthanaa Indumathi , 2018. #zanata + msgid "" + msgstr "" + "Project-Id-Version: PACKAGE VERSION\n" +@@ -16,8 +17,8 @@ msgstr "" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"PO-Revision-Date: 2015-01-08 07:02-0500\n" +-"Last-Translator: Copied by Zanata \n" ++"PO-Revision-Date: 2018-03-14 09:38-0400\n" ++"Last-Translator: Kirthanaa Indumathi \n" + "Language-Team: Tamil (http://www.transifex.com/projects/p/libreport/language/" + "ta/)\n" + "Language: ta\n" +@@ -308,7 +309,7 @@ msgstr "{0} நீக்குகிறது" + #: ../src/client-python/reportclient/debuginfo.py:413 + #, python-brace-format + msgid "Can't remove {0}, probably contains an error log" +-msgstr "" ++msgstr "{0} ஐ நீக்க முடியாது, அநேகமாய் ஒரு பிழை பதிவை கொண்டுள்ளது" + + #: ../src/client-python/reportclient/dnfdebuginfo.py:89 + msgid "Error reading repository configuration: '{0!s}'" +@@ -420,7 +421,7 @@ msgstr "கடவுச்சொற்களை சேமிக்க வேண + + #: ../src/gtk-helpers/event_config_dialog.c:285 + msgid "Basic" +-msgstr "" ++msgstr "அடிப்படை விவரங்கள்" + + #: ../src/gtk-helpers/event_config_dialog.c:293 + msgid "Advanced" +@@ -492,19 +493,19 @@ msgstr "" + + #: ../src/gtk-helpers/problem_details_dialog.c:30 + msgid "Problem details" +-msgstr "" ++msgstr "பிரச்சனை விவரங்கள்" + + #: ../src/gtk-helpers/problem_details_dialog.c:33 + msgid "OK" +-msgstr "" ++msgstr "சரி" + + #: ../src/gui-wizard-gtk/main.c:107 + msgid "Preferences" +-msgstr "" ++msgstr "முன்னுரிமைகள்" + + #: ../src/gui-wizard-gtk/main.c:110 + msgid "Quit" +-msgstr "" ++msgstr "வெளியேறு" + + #: ../src/gui-wizard-gtk/main.c:154 + msgid "" +@@ -562,16 +563,23 @@ msgid "" + "please provide a comprehensive description of the problem you have " + "encountered." + msgstr "" ++"அறியப்பட்ட சிக்கல் இல்லாமல் அது விபத்துக்குள்ளானது என்பதால், அதைக் கண்டறிய " ++"கடினமாக இருக்கலாம். நீங்கள் சந்தித்த பிரச்சினையின் விரிவான விளக்கத்தை " ++"அளிக்கவும்." + + #: ../src/gui-wizard-gtk/wizard.c:1166 + msgid "" + "Please provide a short description of the problem and please include the " + "steps you have used to reproduce the problem." + msgstr "" ++"பிரச்சனைக்கு ஒரு சிறிய விளக்கத்தை வழங்கவும், தயவுசெய்து பிரச்சனை " ++"இனப்பெருக்கம் செய்ய நீங்கள் பயன்படுத்திய வழிமுறைகளை சேர்க்கவும்." + + #: ../src/gui-wizard-gtk/wizard.c:1173 + msgid "Please provide the steps you have used to reproduce the problem." + msgstr "" ++"தயவுசெய்து பிரச்சனை இனப்பெருக்கம் செய்ய நீங்கள் பயன்படுத்திய வழிமுறைகளை " ++"சேர்க்கவும்." + + #: ../src/gui-wizard-gtk/wizard.c:1295 + msgid "(click here to view/edit)" +@@ -603,6 +611,11 @@ msgid "" + "\t▫ corrupted problem data\n" + "\t▫ invalid configuration" + msgstr "" ++"சிக்கலைச் செயல்படுத்த முடியவில்லை. இதற்கு பல காரணங்கள் இருக்கலாம் ஆனால் " ++"மூன்று பொதுவானவை இவை\n" ++"நெட்வொர்க் இணைப்பு சிக்கல்கள்\n" ++"சிதைந்த சிக்கல் தரவு\n" ++"தவறான உள்ளமைவு" + + #: ../src/gui-wizard-gtk/wizard.c:1923 + msgid "" +@@ -670,7 +683,7 @@ msgstr "" + #: ../src/gui-wizard-gtk/wizard.c:2852 + #, c-format + msgid "Failed to save file '%s'" +-msgstr "" ++msgstr "'%s' கோப்பைச் சேமிக்க முடியவில்லை " + + #: ../src/gui-wizard-gtk/wizard.c:3035 + #, c-format +@@ -714,15 +727,15 @@ msgstr "உருப்படி '%s' ஏற்கனவே உள்ளது + + #: ../src/gui-wizard-gtk/wizard.c:3525 + msgid "I have experienced this problem for the first time" +-msgstr "" ++msgstr "நான் முதன்முறையாக இந்த சிக்கலை அனுபவித்திருக்கிறேன்" + + #: ../src/gui-wizard-gtk/wizard.c:3528 + msgid "I can reproduce this problem" +-msgstr "" ++msgstr "நான் இந்த பிரச்சனையை மீண்டும் ஏற்படுத்த முடியும்" + + #: ../src/gui-wizard-gtk/wizard.c:3531 + msgid "This problem occurs repeatedly" +-msgstr "" ++msgstr "இந்த பிரச்சனை மீண்டும் மீண்டும் நிகழ்கிறது" + + #: ../src/gui-wizard-gtk/wizard.c:3544 + msgid "Include" +@@ -776,7 +789,7 @@ msgstr "பகுப்பாய்வுக்காக பதிவேற் + #. else gtk_widget_hide won't work + #: ../src/gui-wizard-gtk/wizard.c:3710 + msgid "Repeat" +-msgstr "" ++msgstr "மீண்டும் முயற்சி செய்யவும்" + + #. else gtk_widget_hide won't work + #: ../src/gui-wizard-gtk/wizard.c:3712 +-- +2.14.3 + diff --git a/libreport.spec b/libreport.spec index d2676f4..7220094 100644 --- a/libreport.spec +++ b/libreport.spec @@ -1,18 +1,37 @@ -# platform-dependent -%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - %define satyr_ver 0.24 %define glib_ver 2.43 Summary: Generic library for reporting various problems Name: libreport Version: 2.9.3 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source1: autogen.sh +#Patch0001: 0001-makefile-fix-make-release.patch +Patch0002: 0002-reporter-bugzilla-ask-concrete-bz-when-requiring-log.patch +Patch0003: 0003-reporter-bugzilla-read-configuration-from-user-s-hom.patch +Patch0004: 0004-reporter-rhtsupport-read-configuration-from-user-s-h.patch +Patch0005: 0005-reporter-mantisbt-read-configuration-from-user-s-hom.patch +Patch0006: 0006-doc-update-to-contain-newly-added-user-s-local-confi.patch +Patch0007: 0007-augeas-include-local-config-path.patch +#Patch0008: 0008-spec-fix-unowned-directories.patch +Patch0009: 0009-reporter-mailx-rely-on-configured-email.patch +Patch0010: 0010-reporter-bugzilla-mantisbt-rhtsupport-fix-free.patch +#Patch0011: 0011-This-package-uses-names-with-ambiguous-python-prefix.patch +#Patch0012: 0012-remove-rhel6-specific-items-and-accomodate-to-rhel7.patch +#Patch0013: 0013-macro-python_sitearch-is-always-defined-on-rhel7.patch +#Patch0014: 0014-use-usr-sbin.patch +#Patch0015: 0015-move-defattr-which-match-the-defaults.patch +#Patch0016: 0016-do-not-expand-macro-in-changelog.patch +Patch0017: 0017-reporter-rhtsupport-Remove-dependency-on-redhat-acce.patch +#Patch0018: 0018-ldconfig-and-gtk-update-icon-cache-is-not-needed-in-.patch +Patch0019: 0019-ureport-remove-json-c-is_error-usage.patch +#Patch0020: 0020-Revert-use-usr-sbin.patch +Patch0021: 0021-Translation-updates.patch + # git format-patch %%{Version} -N -M --topo-order # i=0; for p in `ls 0*.patch`; do printf "Patch%04d: %s\n" $i $p; ((i++)); done @@ -95,11 +114,6 @@ Development headers for libreport-web Summary: Python bindings for report-libs Requires: libreport = %{version}-%{release} Requires: python2-dnf -# in report the rhtsupport is in the main package, so we need to install it too -# report is only in RHEL6, we do not need to carry the dependency to newer RHELs -%if 0%{?rhel} == 6 -Requires: libreport-plugin-rhtsupport = %{version}-%{release} -%endif %{?python_provide:%python_provide python2-libreport} # Remove before F30 Provides: %{name}-python = %{version}-%{release} @@ -339,7 +353,11 @@ cp %SOURCE1 %_builddir/%{name}-%{version} %build # Commented because of deprecated GTK API #CFLAGS="%%{optflags} -Werror" %%configure --disable-silent-rules -CFLAGS="%{optflags}" %configure --enable-doxygen-docs --disable-silent-rules +CFLAGS="%{optflags}" %configure --enable-doxygen-docs \ +%if 0%{?rhel} + --enable-import-rhtsupport-cert \ +%endif + --disable-silent-rules make %{?_smp_mflags} %install @@ -456,7 +474,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang -%defattr(-,root,root,-) %doc README.md %license COPYING %config(noreplace) %{_sysconfdir}/%{name}/libreport.conf @@ -478,6 +495,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %dir %{_sysconfdir}/%{name}/events.d/ %dir %{_sysconfdir}/%{name}/events/ %dir %{_sysconfdir}/%{name}/workflows.d/ +%dir %{_datadir}/%{name}/ +%dir %{_datadir}/%{name}/conf.d/ +%dir %{_datadir}/%{name}/conf.d/plugins/ %dir %{_datadir}/%{name}/events/ %dir %{_datadir}/%{name}/workflows/ %dir %{_sysconfdir}/%{name}/plugins/ @@ -521,12 +541,12 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_libdir}/pkgconfig/libreport-web.pc %files -n python2-libreport -%{python_sitearch}/report -%{python_sitearch}/reportclient +%{python_sitearch}/report/ +%{python_sitearch}/reportclient/ %files -n python3-libreport -%{python3_sitearch}/report -%{python3_sitearch}/reportclient +%{python3_sitearch}/report/ +%{python3_sitearch}/reportclient/ %files cli %{_bindir}/report-cli @@ -658,6 +678,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/%{name}/events/report_RHTSupport.xml %{_datadir}/%{name}/events/report_RHTSupport_AddData.xml %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml +%if 0%{?rhel} +%attr(600,root,root)%{_sysconfdir}/%{name}/cert-api.access.redhat.com.pem +%endif %config(noreplace) %{_sysconfdir}/libreport/events.d/rhtsupport_event.conf %{_mandir}/man1/reporter-rhtsupport.1.gz %{_mandir}/man5/rhtsupport.conf.5.* @@ -759,6 +782,17 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Tue Mar 27 2018 Martin Kutlak - 2.9.3-3 +- Translation updates +- ureport: remove json-c is_error() usage +- reporter-rhtsupport: Remove dependency on redhat-access-insights +- reporter-mailx: rely on configured email +- Modernize spec file +- augeas: include local config path +- doc: update to contain newly added user's local config +- reporter-{mantisbt,rhtsupport,bugzilla}: read configuration from user's home +- reporter-bugzilla: ask concrete bz when requiring login + * Thu Mar 01 2018 Matej Habrnal 2.9.3-2 - Add report and reportclient directories to rpm - Resolves: #1548805, #1548807