From 6bcd5225063c80ebd634f4e273d51bd9b8b52bd8 Mon Sep 17 00:00:00 2001 From: Patrick Franz Date: Sat, 28 Oct 2023 11:26:39 +0200 Subject: [PATCH] Backport upstream patch to fix build with libxkbcommon 1.6.0 (Closes: #1054674). --- debian/changelog | 4 +++ debian/patches/libxkbcommon_1.6.0.diff | 34 ++++++++++++++++++++++++++ debian/patches/series | 3 +++ 3 files changed, 41 insertions(+) create mode 100644 debian/patches/libxkbcommon_1.6.0.diff diff --git a/debian/changelog b/debian/changelog index a6b9c6b..89168c5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,9 @@ qt6-base (6.4.2+dfsg-19) UNRELEASED; urgency=medium + [ Patrick Franz ] + * Backport upstream patch to fix build with libxkbcommon 1.6.0 + (Closes: #1054674). + -- Debian Qt/KDE Maintainers Sat, 28 Oct 2023 11:24:24 +0200 qt6-base (6.4.2+dfsg-18) unstable; urgency=medium diff --git a/debian/patches/libxkbcommon_1.6.0.diff b/debian/patches/libxkbcommon_1.6.0.diff new file mode 100644 index 0000000..4dad63d --- /dev/null +++ b/debian/patches/libxkbcommon_1.6.0.diff @@ -0,0 +1,34 @@ +From 8af35d27e8f02bbb99aef4ac495ed406e50e3cca Mon Sep 17 00:00:00 2001 +From: Liang Qi +Date: Tue, 10 Oct 2023 14:08:48 +0200 +Subject: [PATCH] xkb: fix build with libxkbcommon 1.6.0 and later + +A few XKB_KEY_dead_* defines got removed from 1.6.0. See also +https://github.com/xkbcommon/libxkbcommon/blob/6073565903488cb5b9a8d37fdc4a7c2f9d7ad04d/NEWS#L9-L14 +https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/70/diffs?commit_id=cb44799b72f611eb4c9d7cc185bc3b09e070be08 + +Pick-to: 6.6 6.5 6.2 5.15 +Fixes: QTBUG-117950 +Change-Id: I55861868f2bb29c553d68365fa9b9b6ed01c9aea +Reviewed-by: Tor Arne Vestbø +--- + +diff --git a/src/gui/platform/unix/qxkbcommon.cpp b/src/gui/platform/unix/qxkbcommon.cpp +index 26d87c5..7b61179 100644 +--- a/src/gui/platform/unix/qxkbcommon.cpp ++++ b/src/gui/platform/unix/qxkbcommon.cpp +@@ -237,10 +237,14 @@ + Xkb2Qt, + Xkb2Qt, + Xkb2Qt, ++/* The following four XKB_KEY_dead keys got removed in libxkbcommon 1.6.0 ++ The define check is kind of version check here. */ ++#ifdef XKB_KEY_dead_lowline + Xkb2Qt, + Xkb2Qt, + Xkb2Qt, + Xkb2Qt, ++#endif + + // Special keys from X.org - This include multimedia keys, + // wireless/bluetooth/uwb keys, special launcher keys, etc. diff --git a/debian/patches/series b/debian/patches/series index d3a4af2..aecded8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,6 @@ +# fixed in 6.5.4, 6.6.1 +libxkbcommon_1.6.0.diff + # fixed in 6.5.2 cve-2023-34410-57ba626.diff cve-2023-34410-ada2c57.diff