From 54eb4b6420813494ec3ac88d761f0f5c75898163 Mon Sep 17 00:00:00 2001 From: skaendo Date: Sun, 21 Jun 2020 00:00:12 -0500 Subject: [PATCH] metacity: Fix vulkan headers Signed-off-by: Willy Sudiarto Raharjo --- metacity/meta-compositor-vulkan.patch | 26 ++++++++++++++++++++++++++ metacity/metacity.SlackBuild | 4 +++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 metacity/meta-compositor-vulkan.patch diff --git a/metacity/meta-compositor-vulkan.patch b/metacity/meta-compositor-vulkan.patch new file mode 100644 index 0000000..632ea44 --- /dev/null +++ b/metacity/meta-compositor-vulkan.patch @@ -0,0 +1,26 @@ +From 99361f28c8763ea4569b5ae9876028d53ac9a234 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= +Date: Sun, 24 May 2020 13:58:51 +0300 +Subject: [PATCH] compositor-vulkan: fix build + +VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE enum was removed in 1.2.140. + +https://gitlab.gnome.org/GNOME/metacity/-/issues/10 +--- + src/compositor/meta-compositor-vulkan.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/compositor/meta-compositor-vulkan.c b/src/compositor/meta-compositor-vulkan.c +index b87b5194..53b7b3ff 100644 +--- a/src/compositor/meta-compositor-vulkan.c ++++ b/src/compositor/meta-compositor-vulkan.c +@@ -810,7 +810,9 @@ device_type_to_string (VkPhysicalDeviceType type) + return "cpu"; + break; + ++#if VK_HEADER_VERSION < 140 + case VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE: ++#endif + case VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM: + default: + break; diff --git a/metacity/metacity.SlackBuild b/metacity/metacity.SlackBuild index 8efccb4..710d81d 100644 --- a/metacity/metacity.SlackBuild +++ b/metacity/metacity.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=metacity VERSION=${VERSION:-3.36.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_csb} if [ -z "$ARCH" ]; then @@ -71,6 +71,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/meta-compositor-vulkan.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \