Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libproxy for openSUSE:Factory checked in at 2024-04-30 17:26:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libproxy (Old) and /work/SRC/openSUSE:Factory/.libproxy.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libproxy" Tue Apr 30 17:26:12 2024 rev:90 rq:1170725 version:0.5.6 Changes: -------- --- /work/SRC/openSUSE:Factory/libproxy/libproxy.changes 2024-04-09 16:46:25.818310424 +0200 +++ /work/SRC/openSUSE:Factory/.libproxy.new.1880/libproxy.changes 2024-04-30 17:27:03.425510620 +0200 @@ -1,0 +2,6 @@ +Mon Apr 29 09:32:19 UTC 2024 - Dominique Leuenberger <dims...@opensuse.org> + +- Update to version 0.5.6: + + Support XDP Desktop Portal proxy resolver. + +------------------------------------------------------------------- Old: ---- libproxy-0.5.5.obscpio New: ---- libproxy-0.5.6.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libproxy.spec ++++++ --- /var/tmp/diff_new_pack.sRar2f/_old 2024-04-30 17:27:05.153573457 +0200 +++ /var/tmp/diff_new_pack.sRar2f/_new 2024-04-30 17:27:05.173574184 +0200 @@ -32,7 +32,7 @@ %define _name libproxy Name: libproxy%{?dash}%{?name_suffix} -Version: 0.5.5 +Version: 0.5.6 Release: 0 Summary: Automatic proxy configuration management for applications License: GPL-2.0-or-later AND LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.sRar2f/_old 2024-04-30 17:27:05.393582185 +0200 +++ /var/tmp/diff_new_pack.sRar2f/_new 2024-04-30 17:27:05.397582330 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://github.com/libproxy/libproxy.git</param> - <param name="revision">0.5.5</param> + <param name="revision">0.5.6</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">v?(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ libproxy-0.5.5.obscpio -> libproxy-0.5.6.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/.github/workflows/build.yml new/libproxy-0.5.6/.github/workflows/build.yml --- old/libproxy-0.5.5/.github/workflows/build.yml 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/.github/workflows/build.yml 2024-04-25 20:16:16.000000000 +0200 @@ -6,7 +6,7 @@ build-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Dependencies run: | sudo apt-get update @@ -29,28 +29,29 @@ ninja test -C build ninja coverage -C build - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./build/docs/libproxy-1.0/ - name: CodeCov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required build-osx: runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: | - 3.10 + 3.12 - name: Setup run: | pip install meson ninja - brew install icu4c gobject-introspection duktape gcovr gi-docgen curl vala gsettings-desktop-schemas - echo 'PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/gi-docgen/lib/pkgconfig' >> $GITHUB_ENV + brew install gobject-introspection duktape gcovr gi-docgen vala gsettings-desktop-schemas - name: Build and Test run: | - meson setup build + meson setup build -Ddocs=false ninja -C build ninja -C build test @@ -79,8 +80,8 @@ mingw-w64-x86_64-curl mingw-w64-x86_64-vala mingw-w64-x86_64-gsettings-desktop-schemas - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.9' - name: Build and Test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/.github/workflows/coverity.yml new/libproxy-0.5.6/.github/workflows/coverity.yml --- old/libproxy-0.5.5/.github/workflows/coverity.yml 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/.github/workflows/coverity.yml 2024-04-25 20:16:16.000000000 +0200 @@ -23,7 +23,7 @@ COVERITY_SCAN_NOTIFICATION_EMAIL: "${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}" steps: - name: Repository checkout - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + uses: actions/checkout@4 - name: Ubuntu Setup if: runner.os == 'Linux' run: | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/meson.build new/libproxy-0.5.6/meson.build --- old/libproxy-0.5.5/meson.build 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/meson.build 2024-04-25 20:16:16.000000000 +0200 @@ -1,5 +1,5 @@ project('libproxy', 'c', - version: '0.5.5', + version: '0.5.6', meson_version: '>= 0.59.0', default_options: [ 'warning_level=2', 'werror=false', 'c_std=gnu11', ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/meson_options.txt new/libproxy-0.5.6/meson_options.txt --- old/libproxy-0.5.5/meson_options.txt 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/meson_options.txt 2024-04-25 20:16:16.000000000 +0200 @@ -55,6 +55,13 @@ ) option( + 'config-xdp', + type: 'boolean', + value: true, + description: 'Whether to build support for XDG Desktop Portal (Flatpak)' +) + +option( 'pacrunner-duktape', type: 'boolean', value: true, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/meson.build new/libproxy-0.5.6/src/backend/meson.build --- old/libproxy-0.5.5/src/backend/meson.build 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/src/backend/meson.build 2024-04-25 20:16:16.000000000 +0200 @@ -5,6 +5,7 @@ backend_config_h.set('HAVE_CONFIG_OSX', get_option('config-osx') and with_platform_darwin) backend_config_h.set('HAVE_CONFIG_SYSCONFIG', get_option('config-sysconfig')) backend_config_h.set('HAVE_CONFIG_WINDOWS', get_option('config-windows') and with_platform_windows) +backend_config_h.set('HAVE_CONFIG_XDP', get_option('config-xdp')) backend_config_h.set('HAVE_PACRUNNER_DUKTAPE', get_option('pacrunner-duktape')) backend_config_h.set('HAVE_CURL', get_option('curl')) configure_file(output: 'px-backend-config.h', configuration: backend_config_h) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/plugins/config-sysconfig/config-sysconfig.c new/libproxy-0.5.6/src/backend/plugins/config-sysconfig/config-sysconfig.c --- old/libproxy-0.5.5/src/backend/plugins/config-sysconfig/config-sysconfig.c 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/src/backend/plugins/config-sysconfig/config-sysconfig.c 2024-04-25 20:16:16.000000000 +0200 @@ -73,7 +73,6 @@ px_config_sysconfig_set_config_file (PxConfigSysConfig *self, const char *config_file) { - g_autofree char *config = NULL; g_autoptr (GFile) file = NULL; g_autoptr (GError) error = NULL; g_autoptr (GFileInputStream) istr = NULL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/plugins/config-xdp/config-xdp.c new/libproxy-0.5.6/src/backend/plugins/config-xdp/config-xdp.c --- old/libproxy-0.5.5/src/backend/plugins/config-xdp/config-xdp.c 1970-01-01 01:00:00.000000000 +0100 +++ new/libproxy-0.5.6/src/backend/plugins/config-xdp/config-xdp.c 2024-04-25 20:16:16.000000000 +0200 @@ -0,0 +1,161 @@ +/* config-xdp.c + * + * Copyright 2024 The Libproxy Team + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#include <gio/gio.h> + +#include "config-xdp.h" + +#include "px-manager.h" +#include "px-plugin-config.h" + +static void px_config_iface_init (PxConfigInterface *iface); + +struct _PxConfigXdp { + GObject parent_instance; + gboolean available; + GDBusProxy *proxy_resolver; +}; + +G_DEFINE_FINAL_TYPE_WITH_CODE (PxConfigXdp, + px_config_xdp, + G_TYPE_OBJECT, + G_IMPLEMENT_INTERFACE (PX_TYPE_CONFIG, px_config_iface_init)) + +enum { + PROP_0, + PROP_CONFIG_OPTION +}; + +static void +px_config_xdp_init (PxConfigXdp *self) +{ + g_autoptr (GDBusConnection) connection = NULL; + g_autoptr (GError) error = NULL; + g_autofree char *path = g_build_filename (g_get_user_runtime_dir (), "flatpak-info", NULL); + + self->available = FALSE; + + /* Test for Flatpak or Snap Enivronments */ + if (!g_file_test (path, G_FILE_TEST_EXISTS) && !g_getenv ("SNAP_NAME")) + return; + + connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error); + if (error) { + g_warning ("Could not access dbus session: %s", error->message); + return; + } + + self->proxy_resolver = g_dbus_proxy_new_sync (connection, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop", "org.freedesktop.portal.ProxyResolver", NULL, &error); + if (error) { + g_warning ("Could not access proxy resolver: %s", error->message); + return; + } + + self->available = TRUE; +} + +static void +px_config_xdp_dispose (GObject *object) +{ + PxConfigXdp *self = PX_CONFIG_XDP (object); + + g_clear_object (&self->proxy_resolver); +} + +static void +px_config_xdp_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + switch (prop_id) { + case PROP_CONFIG_OPTION: + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +px_config_xdp_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + switch (prop_id) { + case PROP_CONFIG_OPTION: + break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +static void +px_config_xdp_class_init (PxConfigXdpClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = px_config_xdp_dispose; + object_class->set_property = px_config_xdp_set_property; + object_class->get_property = px_config_xdp_get_property; + + g_object_class_override_property (object_class, PROP_CONFIG_OPTION, "config-option"); +} + +static void +px_config_xdp_get_config (PxConfig *config, + GUri *uri, + GStrvBuilder *builder) +{ + g_autoptr (GVariant) var = NULL; + g_autoptr (GError) error = NULL; + g_autoptr (GVariantIter) iter = NULL; + PxConfigXdp *self = PX_CONFIG_XDP (config); + g_autofree char *uri_str = NULL; + const char *str; + + if (!self->available) + return; + + uri_str = g_uri_to_string (uri); + var = g_dbus_proxy_call_sync (self->proxy_resolver, "Lookup", g_variant_new ("(s)", uri_str), 0, -1, NULL, &error); + if (error) { + g_warning ("Could not query proxy: %s", error->message); + return; + } + + g_variant_get (var, "(as)", &iter); + while (g_variant_iter_loop (iter, "s", &str)) { + px_strv_builder_add_proxy (builder, str); + } +} + +static void +px_config_iface_init (PxConfigInterface *iface) +{ + iface->name = "config-xdp"; + iface->priority = PX_CONFIG_PRIORITY_DEFAULT; + iface->get_config = px_config_xdp_get_config; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/plugins/config-xdp/config-xdp.h new/libproxy-0.5.6/src/backend/plugins/config-xdp/config-xdp.h --- old/libproxy-0.5.5/src/backend/plugins/config-xdp/config-xdp.h 1970-01-01 01:00:00.000000000 +0100 +++ new/libproxy-0.5.6/src/backend/plugins/config-xdp/config-xdp.h 2024-04-25 20:16:16.000000000 +0200 @@ -0,0 +1,34 @@ +/* config-xdp.h + * + * Copyright 2024 The Libproxy Team + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#pragma once + +#include <glib.h> + +G_BEGIN_DECLS + +#define PX_CONFIG_TYPE_XDP (px_config_xdp_get_type ()) + +G_DECLARE_FINAL_TYPE (PxConfigXdp, px_config_xdp, PX, CONFIG_XDP, GObject) + +G_END_DECLS + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/plugins/config-xdp/meson.build new/libproxy-0.5.6/src/backend/plugins/config-xdp/meson.build --- old/libproxy-0.5.5/src/backend/plugins/config-xdp/meson.build 1970-01-01 01:00:00.000000000 +0100 +++ new/libproxy-0.5.6/src/backend/plugins/config-xdp/meson.build 2024-04-25 20:16:16.000000000 +0200 @@ -0,0 +1,9 @@ +plugin_name = 'config-xdp' + +if get_option(plugin_name) + +px_backend_sources += [ + 'plugins/@0@/@0@.c'.format(plugin_name), +] + +endif \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/plugins/meson.build new/libproxy-0.5.6/src/backend/plugins/meson.build --- old/libproxy-0.5.5/src/backend/plugins/meson.build 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/src/backend/plugins/meson.build 2024-04-25 20:16:16.000000000 +0200 @@ -3,6 +3,7 @@ subdir('config-kde') subdir('config-osx') subdir('config-sysconfig') +subdir('config-xdp') subdir('config-windows') subdir('pacrunner-duktape') @@ -14,5 +15,6 @@ 'Configuration Windows ' : get_option('config-windows'), 'Configuration sysconfig ' : get_option('config-sysconfig'), 'Configuration OS X ' : get_option('config-osx'), + 'Configuration XDP ' : get_option('config-xdp'), 'PAC Runner Duktape ' : get_option('pacrunner-duktape'), }, section: 'Plugins') \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libproxy-0.5.5/src/backend/px-manager.c new/libproxy-0.5.6/src/backend/px-manager.c --- old/libproxy-0.5.5/src/backend/px-manager.c 2024-04-05 10:56:42.000000000 +0200 +++ new/libproxy-0.5.6/src/backend/px-manager.c 2024-04-25 20:16:16.000000000 +0200 @@ -53,6 +53,10 @@ #include <plugins/config-windows/config-windows.h> #endif +#ifdef HAVE_CONFIG_XDP +#include <plugins/config-xdp/config-xdp.h> +#endif + #ifdef HAVE_PACRUNNER_DUKTAPE #include <plugins/pacrunner-duktape/pacrunner-duktape.h> #endif @@ -194,6 +198,9 @@ #ifdef HAVE_CONFIG_WINDOWS px_manager_add_config_plugin (self, PX_CONFIG_TYPE_WINDOWS); #endif +#ifdef HAVE_CONFIG_XDP + px_manager_add_config_plugin (self, PX_CONFIG_TYPE_XDP); +#endif g_debug ("Active config plugins:"); for (GList *list = self->config_plugins; list && list->data; list = list->next) { ++++++ libproxy.obsinfo ++++++ --- /var/tmp/diff_new_pack.sRar2f/_old 2024-04-30 17:27:05.561588293 +0200 +++ /var/tmp/diff_new_pack.sRar2f/_new 2024-04-30 17:27:05.593589457 +0200 @@ -1,5 +1,5 @@ name: libproxy -version: 0.5.5 -mtime: 1712307402 -commit: 184c32348edd530b7217b4f44b5a0080f50792fc +version: 0.5.6 +mtime: 1714068976 +commit: e7d18806575e21f94cf2f6024659386b129ca189