Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gnome-browser-connector for openSUSE:Factory checked in at 2024-05-15 21:23:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnome-browser-connector (Old) and /work/SRC/openSUSE:Factory/.gnome-browser-connector.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-browser-connector" Wed May 15 21:23:50 2024 rev:5 rq:1173938 version:42.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gnome-browser-connector/gnome-browser-connector.changes 2024-05-01 14:55:30.283845662 +0200 +++ /work/SRC/openSUSE:Factory/.gnome-browser-connector.new.1880/gnome-browser-connector.changes 2024-05-15 21:23:52.471680282 +0200 @@ -1,0 +2,6 @@ +Mon May 6 08:24:37 UTC 2024 - Yifan Jiang <yfji...@suse.com> + +- Patch to support python 3.6 on SLE/Leap 15.6 (bsc#1223902): + python36.patch. + +------------------------------------------------------------------- New: ---- python36.patch BETA DEBUG BEGIN: New:- Patch to support python 3.6 on SLE/Leap 15.6 (bsc#1223902): python36.patch. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-browser-connector.spec ++++++ --- /var/tmp/diff_new_pack.DO2U3L/_old 2024-05-15 21:23:53.795728206 +0200 +++ /var/tmp/diff_new_pack.DO2U3L/_new 2024-05-15 21:23:53.799728351 +0200 @@ -24,6 +24,8 @@ Group: Productivity/Networking/Web/Browsers URL: https://wiki.gnome.org/action/show/Projects/GnomeShellIntegration Source: https://download.gnome.org/sources/%{name}/42/%{name}-%{version}.tar.xz +# PATCH-FIX-SLE python36.patch bsc#1223902 yfji...@suse.com -- Patch to support python 3.6 on SLE/Leap 15.6. +Patch0: python36.patch BuildRequires: hicolor-icon-theme BuildRequires: meson @@ -43,7 +45,10 @@ corresponding extensions repository https://extensions.gnome.org. %prep -%autosetup -p1 +%setup -q +%if 0%{?sle_version} && 0%{?sle_version} < 160000 +%autopatch -p1 +%endif %build %meson ++++++ python36.patch ++++++ Index: gnome-browser-connector-42.1/gnome_browser_connector/application.py =================================================================== --- gnome-browser-connector-42.1.orig/gnome_browser_connector/application.py +++ gnome-browser-connector-42.1/gnome_browser_connector/application.py @@ -1,6 +1,5 @@ # SPDX-License-Identifer: GPL-3.0-or-later -from __future__ import annotations import signal import sys @@ -120,9 +119,9 @@ class Application(BaseGioApplication): def default_exception_hook( self, - exception_type: type[BaseException], + exception_type: 'type[BaseException]', value: BaseException, - tb: TracebackType + tb: 'TracebackType' ) -> None: self._log.fatal("Uncaught exception of type %s occured", exception_type) traceback.print_tb(tb) Index: gnome-browser-connector-42.1/gnome_browser_connector/connector.py =================================================================== --- gnome-browser-connector-42.1.orig/gnome_browser_connector/connector.py +++ gnome-browser-connector-42.1/gnome_browser_connector/connector.py @@ -1,6 +1,5 @@ # SPDX-License-Identifer: GPL-3.0-or-later -from __future__ import annotations import json import struct @@ -24,7 +23,7 @@ class Connector(ApplicationHandler): # https://developer.chrome.com/extensions/nativeMessaging#native-messaging-host-protocol MESSAGE_LENGTH_SIZE = 4 - def __init__(self, application: BaseGioApplication) -> None: + def __init__(self, application: 'BaseGioApplication') -> None: super().__init__(application) self._log = get_logger(self) @@ -83,12 +82,12 @@ class Connector(ApplicationHandler): def on_dbus_signal( self, connection: Gio.DBusConnection, - sender_name: Optional[str], + sender_name: 'Optional[str]', object_path: str, interface_name: str, signal_name: str, parameters: GLib.Variant, - user_data: Optional[Any] + user_data: 'Optional[Any]' ) -> None: self._log.debug('Signal %s from %s', signal_name, interface_name) @@ -140,7 +139,7 @@ class Connector(ApplicationHandler): self, source: GLib.IOChannel, condition: GLib.IOCondition, - data: Optional[GObject.Object] + data: 'Optional[GObject.Object]' ) -> Optional[bool]: self._log.debug('On input') text_length_bytes: bytes = source.read(self.MESSAGE_LENGTH_SIZE) @@ -166,7 +165,7 @@ class Connector(ApplicationHandler): return True - def send_message(self, response: Any): + def send_message(self, response: 'Any'): """ Helper function that sends a message to the webapp. :param response: dictionary of response data @@ -191,7 +190,7 @@ class Connector(ApplicationHandler): except IOError as e: raise Exception(f'IOError occured: {e.strerror}') - def process_request(self, request: dict[str, Any]) -> None: + def process_request(self, request: 'dict[str, Any]') -> None: self._log.debug("Execute: to %s", request['execute']) if request['execute'] == 'initialize': @@ -355,7 +354,7 @@ class Connector(ApplicationHandler): self._log.debug('Execute: from %s', request['execute']) # Helpers - def dbus_call_response(self, method: str, parameters: Optional[GLib.Variant], result_property: str): + def dbus_call_response(self, method: str, parameters: 'Optional[GLib.Variant]', result_property: str): try: result = self._shell_proxy.call_sync(method, parameters,