From ba4c4cb7e78efcd62960620eba7b559cc68dd2a1 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Fri, 4 Nov 2022 17:39:52 -0700 Subject: system/lirc: Patch lirc-setup to force using gtk3. Thanks to Martin Schmidt for the heads up and the patch. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- system/lirc/gi.patch | 13 +++++++++++++ system/lirc/lirc.SlackBuild | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 system/lirc/gi.patch (limited to 'system/lirc') diff --git a/system/lirc/gi.patch b/system/lirc/gi.patch new file mode 100644 index 0000000000..63e966eeae --- /dev/null +++ b/system/lirc/gi.patch @@ -0,0 +1,13 @@ +diff --git a/tools/lirc-setup/mvc_control.py b/tools/lirc-setup/mvc_control.py +index 9d0548a..16395f6 100644 +--- a/tools/lirc-setup/mvc_control.py ++++ b/tools/lirc-setup/mvc_control.py +@@ -1,5 +1,8 @@ + ''' Simple lirc setup tool - control part. ''' + ++import gi ++gi.require_version('Gtk', '3.0') ++ + from gi.repository import Gtk # pylint: disable=no-name-in-module + + import os diff --git a/system/lirc/lirc.SlackBuild b/system/lirc/lirc.SlackBuild index 7a3be22a7a..eca6bc1474 100644 --- a/system/lirc/lirc.SlackBuild +++ b/system/lirc/lirc.SlackBuild @@ -45,7 +45,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lirc VERSION=${VERSION:-0.9.3a} -BUILD=${BUILD:-4} +BUILD=${BUILD:-5} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -95,6 +95,10 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ # Patch to fix config.status warning for lirc-driver.pc.in ignoring --datarootdir patch -p1 < $CWD/datarootdir.patch +# Patch to fix lirc-setup to force gtk3 +# Thanks to Martin Schmidt for the heads up and the patch +patch -p1 < $CWD/gi.patch + # 20220211 bkw: Fix for PyYAML >= 5.1 sed -i \ 's|yaml.load(f.read())|yaml.load(f.read(), Loader=yaml.FullLoader)|' \ -- cgit v1.2.3