From 9224212a72e5b7327a109c884063e628812472c8 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Fri, 15 Jan 2021 00:06:20 +0700 Subject: [PATCH] caribou: Add patch to fix for newer vala. Signed-off-by: Willy Sudiarto Raharjo --- caribou/caribou.SlackBuild | 1 + caribou/unicode_to_keyval-symbol-check.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 caribou/unicode_to_keyval-symbol-check.patch diff --git a/caribou/caribou.SlackBuild b/caribou/caribou.SlackBuild index bfb8bd4..ea2905d 100644 --- a/caribou/caribou.SlackBuild +++ b/caribou/caribou.SlackBuild @@ -75,6 +75,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; patch -p1 < $CWD/3.patch +patch -p1 < $CWD/unicode_to_keyval-symbol-check.patch PYTHON="/usr/bin/python3" \ CFLAGS="$SLKCFLAGS" \ diff --git a/caribou/unicode_to_keyval-symbol-check.patch b/caribou/unicode_to_keyval-symbol-check.patch new file mode 100644 index 0000000..e7f9acc --- /dev/null +++ b/caribou/unicode_to_keyval-symbol-check.patch @@ -0,0 +1,13 @@ +diff --git a/libcaribou/key-model.vala b/libcaribou/key-model.vala +index 89015bc..e88342e 100644 +--- a/libcaribou/key-model.vala ++++ b/libcaribou/key-model.vala +@@ -101,7 +101,7 @@ namespace Caribou { + unichar uc; + while (text.get_next_char (ref index, out uc)) { + uint keyval = Gdk.unicode_to_keyval (uc); +- if (keyval != uc | 0x01000000) ++ if (keyval != (uc | 0x01000000)) + _keyvals += keyval; + } + } else {