diff options
author | Mart Raudsepp <leio@gentoo.org> | 2017-07-15 07:12:49 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2017-07-15 07:12:49 +0300 |
commit | f5563dcc576c5a36e990b2d74eafa7e7809cafe7 (patch) | |
tree | e3c7a255fe8aa2f489ef0b95294a8db009dfef4d /gnome-base | |
parent | metadata/repoman: Add new linechecks.yaml file (diff) | |
download | gentoo-f5563dcc576c5a36e990b2d74eafa7e7809cafe7.tar.gz gentoo-f5563dcc576c5a36e990b2d74eafa7e7809cafe7.tar.bz2 gentoo-f5563dcc576c5a36e990b2d74eafa7e7809cafe7.zip |
gnome-base/gnome-control-center: Fix compilation with USE=-wayland without gtk+[wayland]
Gentoo-bug: 624960
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'gnome-base')
-rw-r--r-- | gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch | 47 | ||||
-rw-r--r-- | gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild | 2 |
2 files changed, 49 insertions, 0 deletions
diff --git a/gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch b/gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch new file mode 100644 index 000000000000..0d41cca4704d --- /dev/null +++ b/gnome-base/gnome-control-center/files/3.24.2-fix-without-gdkwayland.patch @@ -0,0 +1,47 @@ +From 13437b364fe56ffaaa421b8396ba761a2e0cc13d Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Sat, 15 Jul 2017 06:22:16 +0300 +Subject: [PATCH] common: Add missing GDK_WINDOWING_WAYLAND guards for + gsd_udev_device_manager_lookup_device + +commit 8f9259ac06db added a gdkwayland specific lookup_device implementation, guard it +with compile-time GDK_WINDOWING_WAYLAND as other places are. + +https://bugzilla.gnome.org/show_bug.cgi?id=780544 +--- + panels/common/gsd-device-manager-udev.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/panels/common/gsd-device-manager-udev.c b/panels/common/gsd-device-manager-udev.c +index fdda02a..5dc4447 100644 +--- a/panels/common/gsd-device-manager-udev.c ++++ b/panels/common/gsd-device-manager-udev.c +@@ -24,7 +24,9 @@ + #include <string.h> + #include <gudev/gudev.h> + ++#ifdef GDK_WINDOWING_WAYLAND + #include <gdk/gdkwayland.h> ++#endif + #include "gsd-device-manager-udev.h" + + struct _GsdUdevDeviceManager +@@ -227,6 +229,7 @@ static GsdDevice * + gsd_udev_device_manager_lookup_device (GsdDeviceManager *manager, + GdkDevice *gdk_device) + { ++#ifdef GDK_WINDOWING_WAYLAND + const gchar *node_path; + GHashTableIter iter; + GsdDevice *device; +@@ -243,6 +246,7 @@ gsd_udev_device_manager_lookup_device (GsdDeviceManager *manager, + return device; + } + } ++#endif + + return NULL; + } +-- +2.10.2 + diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild index ac0ba4552990..763ab0eb1742 100644 --- a/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild +++ b/gnome-base/gnome-control-center/gnome-control-center-3.24.2.ebuild @@ -138,6 +138,8 @@ PATCHES=( "${FILESDIR}"/${PV}-optional-cups.patch # Fix some absolute paths to be appropriate for Gentoo "${FILESDIR}"/${PV}-gentoo-paths.patch + # https://bugzilla.gnome.org/show_bug.cgi?id=780544 + "${FILESDIR}"/${PV}-fix-without-gdkwayland.patch ) src_configure() { |