head 1.1; access; symbols pkgsrc-2026Q3:1.1.0.2; locks; strict; comment @# @; 1.1 date 2026.11.13.14.37.34; author nia; state Exp; branches 1.1.2.1; next ; commitid chXKQnmIQBGvej3H; 1.1.2.1 date 2026.11.13.14.37.34; author bsiegert; state dead; branches; next 1.1.2.2; commitid N7xtAZ8RtQtXcz3H; 1.1.2.2 date 2026.11.15.14.44.37; author bsiegert; state Exp; branches; next ; commitid N7xtAZ8RtQtXcz3H; desc @@ 1.1 log @exaile: Fix compatibility with latest GIRepository. Patch taken from upstream. Should fix running exaile. @ text @$NetBSD$ From b503b4a5b500a8af20a3844ab308b7a49e681b75 Mon Sep 17 00:00:00 2001 From: Johannes Sasongko Date: Tue, 25 Mar 2025 14:50:14 +1100 Subject: [PATCH] plugins: Support GIRepository-3.0 GLib 2.84 integrates GIRepository (as `-3.0`). Rather than checking the GLib version for the right GIRepository version to `require_version`, this commit simply uses a try-except. This also moves the `require_version` call from main.py to plugins.py, where the GIRepository import actually is. Fixes: https://github.com/exaile/exaile/issues/962 --- xl/plugins.py.orig 2023-08-02 09:23:35.000000000 +0000 +++ xl/plugins.py @@@@ -259,6 +259,13 @@@@ class PluginsManager: :param info: The data returned from get_plugin_info() """ import pkgutil + import gi + + # https://github.com/exaile/exaile/issues/962 + try: + gi.require_version('GIRepository', '3.0') + except ValueError: + gi.require_version('GIRepository', '2.0') from gi.repository import GIRepository gir = GIRepository.Repository.get_default() @ 1.1.2.1 log @file patch-xl_plugins.py was added on branch pkgsrc-2026Q3 on 2026-11-15 14:44:37 +0000 @ text @d1 32 @ 1.1.2.2 log @Pullup ticket #7387 - requested by nia audio/exaile: build fix Revisions pulled up: - audio/exaile/Makefile 1.102 - audio/exaile/distinfo 1.20 - audio/exaile/patches/patch-xl_main.py 1.1 - audio/exaile/patches/patch-xl_plugins.py 1.1 --- Module Name: pkgsrc Committed By: nia Date: Fri Nov 13 14:37:34 UTC 2026 Modified Files: pkgsrc/audio/exaile: Makefile distinfo Added Files: pkgsrc/audio/exaile/patches: patch-xl_main.py patch-xl_plugins.py Log Message: exaile: Fix compatibility with latest GIRepository. Patch taken from upstream. Should fix running exaile. @ text @a0 32 $NetBSD: patch-xl_plugins.py,v 1.1 2026/11/13 14:37:34 nia Exp $ From b503b4a5b500a8af20a3844ab308b7a49e681b75 Mon Sep 17 00:00:00 2001 From: Johannes Sasongko Date: Tue, 25 Mar 2025 14:50:14 +1100 Subject: [PATCH] plugins: Support GIRepository-3.0 GLib 2.84 integrates GIRepository (as `-3.0`). Rather than checking the GLib version for the right GIRepository version to `require_version`, this commit simply uses a try-except. This also moves the `require_version` call from main.py to plugins.py, where the GIRepository import actually is. Fixes: https://github.com/exaile/exaile/issues/962 --- xl/plugins.py.orig 2023-08-02 09:23:35.000000000 +0000 +++ xl/plugins.py @@@@ -259,6 +259,13 @@@@ class PluginsManager: :param info: The data returned from get_plugin_info() """ import pkgutil + import gi + + # https://github.com/exaile/exaile/issues/962 + try: + gi.require_version('GIRepository', '3.0') + except ValueError: + gi.require_version('GIRepository', '2.0') from gi.repository import GIRepository gir = GIRepository.Repository.get_default() @