diff --git a/.gitignore b/.gitignore index 23c2ea8..88f39e4 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ /libreport-2.13.0.tar.gz /libreport-2.13.1.tar.gz /libreport-2.14.0.tar.gz +/libreport-2.15.1.tar.gz +/libreport-2.15.2.tar.gz diff --git a/.packit.yml b/.packit.yml new file mode 100644 index 0000000..b82be50 --- /dev/null +++ b/.packit.yml @@ -0,0 +1,17 @@ +specfile_path: libreport.spec +synced_files: + - .packit.yml + - libreport.spec +upstream_package_name: libreport +upstream_project_url: https://github.com/abrt/libreport +downstream_package_name: libreport +jobs: +- job: propose_downstream + trigger: release + metadata: + dist_git_branch: fedora-all +- job: copr_build + trigger: pull_request + metadata: + targets: + - fedora-all diff --git a/0001-gui-wizard-gtk-wizard-Remove-variable.patch b/0001-gui-wizard-gtk-wizard-Remove-variable.patch deleted file mode 100644 index 9537db0..0000000 --- a/0001-gui-wizard-gtk-wizard-Remove-variable.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 1c646a2948d287368ec1a82b444e8175ebfbf5b9 Mon Sep 17 00:00:00 2001 -From: Ernestas Kulik -Date: Tue, 25 Aug 2020 15:05:31 +0300 -Subject: [PATCH] gui-wizard-gtk: wizard: Remove variable - -cmd_output is no longer used since -440bcfa8526d50f122ec14e19f2bf2aa336f61e7 and trying to call -g_string_free() on it results in a critical warning. ---- - src/gui-wizard-gtk/wizard.c | 6 ------ - 1 file changed, 6 deletions(-) - -diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c -index 44900448..a4d7caa0 100644 ---- a/src/gui-wizard-gtk/wizard.c -+++ b/src/gui-wizard-gtk/wizard.c -@@ -231,8 +231,6 @@ typedef struct - - static page_obj_t pages[NUM_PAGES]; - --static GString *cmd_output = NULL; -- - /* Utility functions */ - - static void clear_warnings(void); -@@ -1667,10 +1665,6 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g - log_notice("done running event on '%s': %d", g_dump_dir_name, retval); - append_to_textview(g_tv_event_log, "\n"); - -- /* Free child output buffer */ -- g_string_free(cmd_output, TRUE); -- cmd_output = NULL; -- - /* Hide spinner and stop btn */ - gtk_widget_hide(GTK_WIDGET(g_spinner_event_log)); - gtk_widget_hide(g_btn_stop); --- -2.28.0 - diff --git a/0001-reporter-bugzilla-Use-API-key-for-authentication.patch b/0001-reporter-bugzilla-Use-API-key-for-authentication.patch new file mode 100644 index 0000000..00aedad --- /dev/null +++ b/0001-reporter-bugzilla-Use-API-key-for-authentication.patch @@ -0,0 +1,401 @@ +From 34fce86c0116ef2c888dfe7e474073b158bca8b3 Mon Sep 17 00:00:00 2001 +From: Michal Srb +Date: Mon, 21 Feb 2022 00:49:51 +0100 +Subject: [PATCH] [reporter-bugzilla] Use API key for authentication + +Following change will take effect on February 28 2022: + +""" +Applications making API calls to Bugzilla may no longer +authenticate using passwords or supplying API keys +in call parameters. Instead, API keys must be supplied +in the Authorization header. +""" + +See the announcement for more details: +https://listman.redhat.com/archives/bugzilla-announce-list/2022-February/msg00000.html + +Signed-off-by: Michal Srb +--- + doc/report_Bugzilla.conf.txt | 7 +-- + doc/reporter-bugzilla.txt | 14 ++--- + src/gtk-helpers/secrets.c | 2 +- + src/plugins/bugzilla.conf | 7 +-- + src/plugins/report_Bugzilla.conf | 3 +- + src/plugins/report_Bugzilla.xml.in.in | 13 ++-- + src/plugins/reporter-bugzilla.c | 87 ++++++++------------------- + src/plugins/rhbz.c | 15 +++++ + src/plugins/rhbz.h | 2 + + tests/bugzilla_plugin.at.in | 10 +-- + 10 files changed, 61 insertions(+), 99 deletions(-) + +diff --git a/doc/report_Bugzilla.conf.txt b/doc/report_Bugzilla.conf.txt +index ea500ae6..ce7df911 100644 +--- a/doc/report_Bugzilla.conf.txt ++++ b/doc/report_Bugzilla.conf.txt +@@ -12,11 +12,8 @@ This configuration file contains values for options defined in + + Configuration file lines should have 'PARAM = VALUE' format. The parameters are: + +-'Bugzilla_Login':: +- Login to Bugzilla account. +- +-'Bugzilla_Password':: +- Password to Bugzilla account. ++'Bugzilla_APIKey':: ++ API key for authentication to Bugzilla account. + + 'Bugzilla_BugzillaURL':: + Bugzilla HTTP(S) address. (default: https://bugzilla.redhat.com) +diff --git a/doc/reporter-bugzilla.txt b/doc/reporter-bugzilla.txt +index 2aee41e1..601d2a8f 100644 +--- a/doc/reporter-bugzilla.txt ++++ b/doc/reporter-bugzilla.txt +@@ -57,11 +57,8 @@ 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. +- +-'Password':: +- Password to Bugzilla account. ++'APIKey':: ++ API key for authentication to Bugzilla account. + + 'BugzillaURL':: + Bugzilla HTTP(S) address. (default: https://bugzilla.redhat.com) +@@ -175,11 +172,8 @@ ENVIRONMENT VARIABLES + Environment variables take precedence over values provided in + the configuration file. + +-'Bugzilla_Login':: +- Login to Bugzilla account. +- +-'Bugzilla_Password':: +- Password to Bugzilla account. ++'Bugzilla_APIKey':: ++ API key for authentication to Bugzilla account. + + 'Bugzilla_BugzillaURL':: + Bugzilla HTTP(S) address. (default: https://bugzilla.redhat.com) +diff --git a/src/gtk-helpers/secrets.c b/src/gtk-helpers/secrets.c +index 65decaad..55c6ee51 100644 +--- a/src/gtk-helpers/secrets.c ++++ b/src/gtk-helpers/secrets.c +@@ -66,7 +66,7 @@ + + For example, "report_Bugzilla" item will have the lookup attribute + like ("libreportEventConfig", "report_Bugzilla") and the secret value +- like ("Bugzilla_URL=https://bugzilla.redhat.com\0Bugzilla_Login=foo\0") ++ like ("Bugzilla_URL=https://bugzilla.redhat.com\0Bugzilla_APIKey=foo\0") + + + +diff --git a/src/plugins/bugzilla.conf b/src/plugins/bugzilla.conf +index a7727392..a81348f8 100644 +--- a/src/plugins/bugzilla.conf ++++ b/src/plugins/bugzilla.conf +@@ -7,10 +7,9 @@ + # 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 +-Password = ++# Bugzilla API key. ++# You can set up an API key by using the "API Key" tab in the Preferences pages. ++APIKey = + + # SELinux guys almost always move filed bugs from component + # selinux-policy to another component. +diff --git a/src/plugins/report_Bugzilla.conf b/src/plugins/report_Bugzilla.conf +index f1a77f50..c9bfdd11 100644 +--- a/src/plugins/report_Bugzilla.conf ++++ b/src/plugins/report_Bugzilla.conf +@@ -1,4 +1,3 @@ + Bugzilla_BugzillaURL = https://bugzilla.redhat.com +-Bugzilla_Login = +-Bugzilla_Password = ++Bugzilla_APIKey = + Bugzilla_SSLVerify = yes +diff --git a/src/plugins/report_Bugzilla.xml.in.in b/src/plugins/report_Bugzilla.xml.in.in +index d6078a18..966d97f6 100644 +--- a/src/plugins/report_Bugzilla.xml.in.in ++++ b/src/plugins/report_Bugzilla.xml.in.in +@@ -13,16 +13,11 @@ + yes + + +- +- +