From ac692eaa46801032bd7fcbde2ff4eed0ecb29eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 27 Jun 2019 13:45:13 +0200 Subject: media: Use libsoup for http:// & https:// requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As osinfo_media_create_from_location_with_flags_async() can handle non-local cases, they'd end up relying on GVFS under the hood, which would cause those APIs to not work when called from an app running as root. In order to avoid this situation, let's rely on libsoup for these cases. https://gitlab.com/libosinfo/libosinfo/issues/30 Signed-off-by: Fabiano FidĂȘncio Reviewed-by: Cole Robinson --- osinfo/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'osinfo/Makefile.am') diff --git a/osinfo/Makefile.am b/osinfo/Makefile.am index cb1df8f..7206c6d 100644 --- a/osinfo/Makefile.am +++ b/osinfo/Makefile.am @@ -50,6 +50,7 @@ libosinfo_impl_la_CFLAGS = \ $(GOBJECT_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ + $(LIBSOUP_CFLAGS) \ -DDATA_DIR='"$(datadir)"' \ -DPKG_DATA_DIR='"$(pkgdatadir)"' \ -DSYS_CONF_DIR='"$(sysconfdir)"' \ @@ -61,7 +62,9 @@ libosinfo_impl_la_LIBADD = \ $(LIBXSLT_LIBS) \ $(GOBJECT_LIBS) \ $(GLIB_LIBS) \ - $(GIO_LIBS) + $(GIO_LIBS) \ + $(LIBSOUP_LIBS) \ + $(NULL) libosinfo_impl_includedir = $(includedir)/libosinfo-1.0/osinfo @@ -153,6 +156,7 @@ libosinfo_c_files = \ osinfo_imagelist.c \ osinfo_db.c \ osinfo_loader.c \ + osinfo_util_private.c \ $(NULL) libosinfo_private_header_files = \ @@ -161,6 +165,7 @@ libosinfo_private_header_files = \ osinfo_product_private.h \ osinfo_media_private.h \ osinfo_resources_private.h \ + osinfo_util_private.h \ ignore-value.h \ $(NULL) -- cgit v1.2.1