diff options
Diffstat (limited to 'system/lirc')
-rw-r--r-- | system/lirc/gi.patch | 13 | ||||
-rw-r--r-- | system/lirc/lirc.SlackBuild | 10 |
2 files changed, 20 insertions, 3 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..d73d5ef824 100644 --- a/system/lirc/lirc.SlackBuild +++ b/system/lirc/lirc.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for lirc # Copyright 2009 Murat D. Kadirov <banderols@gmail.com> -# Copyright 2015-2022 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> +# Copyright 2015-2024 Jeremy Hansen <jebrhansen+SBo@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -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} @@ -58,7 +58,7 @@ if [ -z "$ARCH" ]; then fi if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.$PKGTYPE" + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 fi @@ -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)|' \ |