mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
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>
This commit is contained in:
parent
4b5451665c
commit
ba4c4cb7e7
2 changed files with 18 additions and 1 deletions
13
system/lirc/gi.patch
Normal file
13
system/lirc/gi.patch
Normal file
|
@ -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
|
|
@ -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)|' \
|
||||
|
|
Loading…
Reference in a new issue