[gnome-build-meta/mcatanzaro/fix-appstream-glib] sdk: add patch to fix appstream-validate command
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/mcatanzaro/fix-appstream-glib] sdk: add patch to fix appstream-validate command
- Date: Mon, 25 Jul 2022 17:09:43 +0000 (UTC)
commit 2bc3f664c4b554ba47fa6da5feb2a7e2d8ace082
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Mon Jul 25 12:09:17 2022 -0500
sdk: add patch to fix appstream-validate command
Fixes #524
elements/sdk/appstream-glib.bst | 2 ++
files/appstream-glib/fix-appstream-validate.patch | 24 +++++++++++++++++++++++
2 files changed, 26 insertions(+)
---
diff --git a/elements/sdk/appstream-glib.bst b/elements/sdk/appstream-glib.bst
index 338122319..2309a4b6b 100644
--- a/elements/sdk/appstream-glib.bst
+++ b/elements/sdk/appstream-glib.bst
@@ -3,6 +3,8 @@ kind: meson
sources:
- kind: tar
url: freedesktop_people:~hughsient/appstream-glib/releases/appstream-glib-0.8.0.tar.xz
+- kind: patch
+ path: files/appstream-glib/fix-appstream-validate.patch
build-depends:
- sdk/gobject-introspection.bst
diff --git a/files/appstream-glib/fix-appstream-validate.patch
b/files/appstream-glib/fix-appstream-validate.patch
new file mode 100644
index 000000000..baefab9db
--- /dev/null
+++ b/files/appstream-glib/fix-appstream-validate.patch
@@ -0,0 +1,24 @@
+From 323f4ea96f95d1522b951963a5d91e5320d38274 Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mcatanzaro redhat com>
+Date: Fri, 22 Jul 2022 08:32:14 -0500
+Subject: [PATCH] Initialize proxy resolver in appstream-validate
+
+Oops, trying to use it would just result in criticals.
+
+Fixes #449
+---
+ libappstream-glib/as-app-validate.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
+index f18d2453..85f4e45e 100644
+--- a/libappstream-glib/as-app-validate.c
++++ b/libappstream-glib/as-app-validate.c
+@@ -1330,6 +1330,7 @@ as_app_validate (AsApp *app, guint32 flags, GError **error)
+ helper->probs = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
+ helper->screenshot_urls = g_ptr_array_new_with_free_func (g_free);
+ helper->flags = flags;
++ helper->proxy_resolver = g_proxy_resolver_get_default ();
+ if (!as_app_validate_setup_networking (helper, error))
+ return NULL;
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]