diff options
-rw-r--r-- | system/lirc/gi.patch | 13 | ||||
-rw-r--r-- | system/lirc/lirc.SlackBuild | 6 |
2 files changed, 18 insertions, 1 deletions
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)|' \ |