update to 2.17.10
This commit is contained in:
parent
6f5d3ba997
commit
d0feb59f28
File diff suppressed because it is too large
Load Diff
@ -1,48 +0,0 @@
|
|||||||
From f99578c04accb449f8922aea7d47b7d62fbf92b1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Mat=C4=9Bj=20Grabovsk=C3=BD?= <mgrabovs@redhat.com>
|
|
||||||
Date: Wed, 11 Aug 2021 14:11:55 +0200
|
|
||||||
Subject: [PATCH] changelog: Fix links to commits
|
|
||||||
|
|
||||||
Fix links to git commits in headings and add dates of last two releases.
|
|
||||||
|
|
||||||
Signed-off-by: guojin17 <guoj17@chinatelecom.cn>
|
|
||||||
---
|
|
||||||
CHANGELOG.md | 8 +++++---
|
|
||||||
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
|
||||||
index c3946a0..7b6b0f3 100644
|
|
||||||
--- a/CHANGELOG.md
|
|
||||||
+++ b/CHANGELOG.md
|
|
||||||
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
||||||
|
|
||||||
## [Unreleased]
|
|
||||||
|
|
||||||
-## [2.15.2]
|
|
||||||
+## [2.15.2] - 2021-06-02
|
|
||||||
### Changed
|
|
||||||
- Use GLib for computing SHA-1 digests
|
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
||||||
### Fixed
|
|
||||||
- Memory management issues
|
|
||||||
|
|
||||||
-## [2.15.1]
|
|
||||||
+## [2.15.1] - 2021-05-04
|
|
||||||
### Added
|
|
||||||
- ignored_words: add more "key" variations
|
|
||||||
- Add support for excluding whole elements from search for sensitive words
|
|
||||||
@@ -275,7 +275,9 @@ files.
|
|
||||||
functions reporting errors through errno.
|
|
||||||
|
|
||||||
|
|
||||||
-[Unreleased]: https://github.com/abrt/libreport/compare/2.15.0...HEAD
|
|
||||||
+[Unreleased]: https://github.com/abrt/libreport/compare/2.15.2...HEAD
|
|
||||||
+[2.15.2]: https://github.com/abrt/libreport/compare/2.15.1...2.15.2
|
|
||||||
+[2.15.1]: https://github.com/abrt/libreport/compare/2.15.0...2.15.1
|
|
||||||
[2.15.0]: https://github.com/abrt/libreport/compare/2.14.0...2.15.0
|
|
||||||
[2.14.0]: https://github.com/abrt/libreport/compare/2.13.1...2.14.0
|
|
||||||
[2.13.1]: https://github.com/abrt/libreport/compare/2.13.0...2.13.1
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
||||||
@ -1,121 +0,0 @@
|
|||||||
From dbcc94e02a88974967495303b69e487713d2cfdb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Michael Catanzaro <mcatanzaro@redhat.com>
|
|
||||||
Date: Wed, 18 Aug 2021 17:03:34 -0500
|
|
||||||
Subject: [PATCH] Avoid direct use of libproxy
|
|
||||||
|
|
||||||
GProxyResolver has been around since GLib 2.26. There's no reason to use
|
|
||||||
libproxy directly anymore. GProxyResolver will call into libproxy if
|
|
||||||
GLib thinks it's a good idea to do so, except in distributions that are
|
|
||||||
configured to build glib-networking without libproxy support.
|
|
||||||
|
|
||||||
Note that the existing code in get_proxy_list() was unsafely using
|
|
||||||
g_autofree and g_free() to free the memory allocated by libproxy. With
|
|
||||||
the switch to GProxyResolver, the memory is actually allocated by GLib
|
|
||||||
now, so this is now actually correct to do.
|
|
||||||
|
|
||||||
Let's also initialize l = NULL just in case some weird bug results in a
|
|
||||||
non-NULL strv of zero length being returned. It should never happen, but
|
|
||||||
we would wind up using l uninitialize did it did.
|
|
||||||
|
|
||||||
Signed-off-by: guojin17 <guoj17@chinatelecom.cn>
|
|
||||||
---
|
|
||||||
configure.ac | 3 ---
|
|
||||||
src/lib/curl.c | 2 +-
|
|
||||||
src/lib/proxies.c | 37 +++++++++++--------------------------
|
|
||||||
3 files changed, 12 insertions(+), 30 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index fa97fa7..3e761e9 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -224,9 +224,6 @@ PKG_CHECK_MODULES([GIO], [
|
|
||||||
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0])
|
|
||||||
PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
|
|
||||||
PKG_CHECK_MODULES([CURL], [libcurl])
|
|
||||||
-PKG_CHECK_MODULES([PROXY], [libproxy-1.0], [
|
|
||||||
- AC_DEFINE([HAVE_PROXY], [1], [Use libproxy])
|
|
||||||
-], [:])
|
|
||||||
PKG_CHECK_MODULES([SATYR], [satyr])
|
|
||||||
PKG_CHECK_MODULES([JOURNAL], [libsystemd])
|
|
||||||
PKG_CHECK_MODULES([AUGEAS], [augeas])
|
|
||||||
diff --git a/src/lib/curl.c b/src/lib/curl.c
|
|
||||||
index 9b7920a..78080bc 100644
|
|
||||||
--- a/src/lib/curl.c
|
|
||||||
+++ b/src/lib/curl.c
|
|
||||||
@@ -102,7 +102,7 @@ CURLcode curl_easy_perform_with_proxy(CURL *handle, const char *url)
|
|
||||||
curl_err = curl_easy_perform(handle);
|
|
||||||
}
|
|
||||||
|
|
||||||
- g_list_free_full(proxy_list, free);
|
|
||||||
+ g_list_free_full(proxy_list, g_free);
|
|
||||||
|
|
||||||
return curl_err;
|
|
||||||
}
|
|
||||||
diff --git a/src/lib/proxies.c b/src/lib/proxies.c
|
|
||||||
index 3b46d9d..e60ef46 100644
|
|
||||||
--- a/src/lib/proxies.c
|
|
||||||
+++ b/src/lib/proxies.c
|
|
||||||
@@ -19,49 +19,34 @@
|
|
||||||
#include "internal_libreport.h"
|
|
||||||
#include "proxies.h"
|
|
||||||
|
|
||||||
-#ifdef HAVE_PROXY
|
|
||||||
-#include <proxy.h>
|
|
||||||
-
|
|
||||||
-static pxProxyFactory *px_factory;
|
|
||||||
+#include <gio/gio.h>
|
|
||||||
|
|
||||||
GList *get_proxy_list(const char *url)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
- GList *l;
|
|
||||||
- g_autofree char **proxies = NULL;
|
|
||||||
+ GList *l = NULL;
|
|
||||||
+ GProxyResolver *resolver;
|
|
||||||
+ g_auto(GStrv) proxies = NULL;
|
|
||||||
+ g_autoptr(GError) error = NULL;
|
|
||||||
|
|
||||||
- if (!px_factory)
|
|
||||||
- {
|
|
||||||
- px_factory = px_proxy_factory_new();
|
|
||||||
- if (!px_factory)
|
|
||||||
- return NULL;
|
|
||||||
- }
|
|
||||||
+ resolver = g_proxy_resolver_get_default();
|
|
||||||
|
|
||||||
- /* Cast to char * is needed with libproxy versions before 0.4.0 */
|
|
||||||
- proxies = px_proxy_factory_get_proxies(px_factory, (char *)url);
|
|
||||||
+ proxies = g_proxy_resolver_lookup(resolver, url, NULL, &error);
|
|
||||||
if (!proxies)
|
|
||||||
+ {
|
|
||||||
+ log_warning("Failed to perform proxy lookup for %s: %s", url, error->message);
|
|
||||||
return NULL;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
for (i = 0, l = NULL; proxies[i]; i++)
|
|
||||||
- l = g_list_append(l, proxies[i]);
|
|
||||||
+ l = g_list_append(l, g_steal_pointer(&proxies[i]));
|
|
||||||
|
|
||||||
/* Don't set proxy if the list contains just "direct://" */
|
|
||||||
if (l && !g_list_next(l) && !strcmp(l->data, "direct://"))
|
|
||||||
{
|
|
||||||
- g_free(l->data);
|
|
||||||
g_list_free(l);
|
|
||||||
l = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return l;
|
|
||||||
}
|
|
||||||
-
|
|
||||||
-#else
|
|
||||||
-
|
|
||||||
-GList *get_proxy_list(const char *url)
|
|
||||||
-{
|
|
||||||
- /* Without libproxy just return an empty list */
|
|
||||||
- return NULL;
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-#endif
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
libreport-2.17.10.tar.gz
Normal file
BIN
libreport-2.17.10.tar.gz
Normal file
Binary file not shown.
@ -1,17 +1,14 @@
|
|||||||
%define _unpackaged_files_terminate_build 0
|
%define _unpackaged_files_terminate_build 0
|
||||||
|
|
||||||
Name: libreport
|
Name: libreport
|
||||||
Version: 2.15.2
|
Version: 2.17.10
|
||||||
Release: 7
|
Release: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Summary: Generic library for reporting various problems
|
Summary: Generic library for reporting various problems
|
||||||
URL: https://abrt.readthedocs.org/
|
URL: https://abrt.readthedocs.org/
|
||||||
Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch9000: fix-bug-delete-gtk-deprecation-warnings.patch
|
Patch9000: fix-bug-delete-gtk-deprecation-warnings.patch
|
||||||
Patch9001: 0001-Use-g_free-for-GLib-alloc-d-memory.patch
|
|
||||||
Patch9002: 0002-changelog-Fix-links-to-commits.patch
|
|
||||||
Patch9003: 0003-Avoid-direct-use-of-libproxy.patch
|
|
||||||
|
|
||||||
BuildRequires: dbus-devel gtk3-devel curl-devel desktop-file-utils python3-devel
|
BuildRequires: dbus-devel gtk3-devel curl-devel desktop-file-utils python3-devel
|
||||||
BuildRequires: gettext libxml2-devel libtar-devel intltool libtool texinfo asciidoc xmlto
|
BuildRequires: gettext libxml2-devel libtar-devel intltool libtool texinfo asciidoc xmlto
|
||||||
@ -337,6 +334,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
%{_mandir}/man5/bugzilla_formatdup_anaconda.conf.5.*
|
%{_mandir}/man5/bugzilla_formatdup_anaconda.conf.5.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 29 2023 dillon chen<dillon.chen@gmail.com> - 2.17.10-1
|
||||||
|
- update version to 2.17.10
|
||||||
|
|
||||||
* Tue Jun 27 2023 zhoupengcheng<zhoupengcheng11@huawei.com> - 2.15.2-7
|
* Tue Jun 27 2023 zhoupengcheng<zhoupengcheng11@huawei.com> - 2.15.2-7
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user