From fdf76328d1eaed6f547d30159f8805a6234c120a Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sun, 24 Feb 2019 11:49:11 +0200 Subject: [PATCH] gnome-base/gnome-control-center: fix non-wayland build against gtk+[wayland] Closes: https://bugs.gentoo.org/674684 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Mart Raudsepp --- .../files/3.26.2-without-wayland-fix.patch | 30 +++++++++++++++++++ .../gnome-control-center-3.26.2-r1.ebuild | 1 + .../gnome-control-center-3.26.2-r2.ebuild | 1 + 3 files changed, 32 insertions(+) create mode 100644 gnome-base/gnome-control-center/files/3.26.2-without-wayland-fix.patch diff --git a/gnome-base/gnome-control-center/files/3.26.2-without-wayland-fix.patch b/gnome-base/gnome-control-center/files/3.26.2-without-wayland-fix.patch new file mode 100644 index 000000000000..92f4d4bdaee6 --- /dev/null +++ b/gnome-base/gnome-control-center/files/3.26.2-without-wayland-fix.patch @@ -0,0 +1,30 @@ +From 62f07b2c6d8a28378e1f2c9f5d0c3241332ee8cf Mon Sep 17 00:00:00 2001 +From: Georges Basile Stavracas Neto +Date: Wed, 17 Jan 2018 20:05:03 -0200 +Subject: [PATCH] common: Don't unconditionally define HAVE_WAYLAND + +This header unconditionally defines HAVE_WAYLAND when GTK +is built with Wayland support. This breaks the build when +building with Wayland disabled. + +https://bugzilla.gnome.org/show_bug.cgi?id=785414 +--- + panels/common/gnome-settings-bus.h | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/panels/common/gnome-settings-bus.h b/panels/common/gnome-settings-bus.h +index ce58f5805..763a9cca7 100644 +--- a/panels/common/gnome-settings-bus.h ++++ b/panels/common/gnome-settings-bus.h +@@ -5,8 +5,6 @@ + + #ifdef GDK_WINDOWING_WAYLAND + +-#define HAVE_WAYLAND 1 +- + static inline gboolean + gnome_settings_is_wayland (void) + { +-- +2.17.0 + diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r1.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r1.ebuild index ff36d5d2a6b7..5e554968fdb1 100644 --- a/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r1.ebuild +++ b/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r1.ebuild @@ -134,6 +134,7 @@ PATCHES=( # https://bugzilla.gnome.org/686840, 697478, 700145 # Fix some absolute paths to be appropriate for Gentoo "${WORKDIR}"/patches/ + "${FILESDIR}"/${PV}-without-wayland-fix.patch # Fixes USE=-wayland build against gtk+[wayland] ) src_configure() { diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r2.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r2.ebuild index 148131fa7cc7..edf0afe1e5e2 100644 --- a/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r2.ebuild +++ b/gnome-base/gnome-control-center/gnome-control-center-3.26.2-r2.ebuild @@ -132,6 +132,7 @@ PATCHES=( # https://bugzilla.gnome.org/686840, 697478, 700145 # Fix some absolute paths to be appropriate for Gentoo "${WORKDIR}"/patches/ + "${FILESDIR}"/${PV}-without-wayland-fix.patch # Fixes USE=-wayland build against gtk+[wayland] "${FILESDIR}"/${PV}-goa-lifecycle.patch # extra patch from gnome-3-26 "${FILESDIR}"/${PV}-gnome-desktop-3-28-compat.patch # backport of porting to gnome-desktop-3.28 API changes ) -- 2.26.2