summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorJeremy Hansen <jebrhansen+github@gmail.com>2022-11-04 17:39:52 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-11-05 21:15:23 +0700
commitba4c4cb7e78efcd62960620eba7b559cc68dd2a1 (patch)
tree605752677f270ccfcfa50e4c9f37155406915703 /system
parent4b5451665c0739685ed81e214bab2e89c925adbe (diff)
downloadslackbuilds-ba4c4cb7e78efcd62960620eba7b559cc68dd2a1.tar.gz
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 <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/lirc/gi.patch13
-rw-r--r--system/lirc/lirc.SlackBuild6
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)|' \