From 22e03954608e87d5ff1c6be11605d072cb1ab2dd Mon Sep 17 00:00:00 2001 From: Kelly Ledford Date: Fri, 3 Mar 2017 18:03:30 -0800 Subject: [PATCH] x11-base/xorg-server: Warn about performance with USE="wayland -glamor" Bug: https://bugs.gentoo.org/608856 Closes: https://github.com/gentoo/gentoo/pull/4116 --- x11-base/xorg-server/xorg-server-1.19.2.ebuild | 7 +++++++ x11-base/xorg-server/xorg-server-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/x11-base/xorg-server/xorg-server-1.19.2.ebuild b/x11-base/xorg-server/xorg-server-1.19.2.ebuild index 5aeddbe5ee85..3245f045a355 100644 --- a/x11-base/xorg-server/xorg-server-1.19.2.ebuild +++ b/x11-base/xorg-server/xorg-server-1.19.2.ebuild @@ -154,6 +154,13 @@ pkg_pretend() { die "Sorry, but gcc earlier than 4.0 will not work for xorg-server." } +pkg_setup() { + if use wayland && ! use glamor; then + ewarn "glamor is necessary for acceleration under Xwayland." + ewarn "Performance may be unacceptable without it." + fi +} + src_configure() { # localstatedir is used for the log location; we need to override the default # from ebuild.sh diff --git a/x11-base/xorg-server/xorg-server-9999.ebuild b/x11-base/xorg-server/xorg-server-9999.ebuild index 812c9fb6f5f4..f4f1bdf79160 100644 --- a/x11-base/xorg-server/xorg-server-9999.ebuild +++ b/x11-base/xorg-server/xorg-server-9999.ebuild @@ -152,6 +152,13 @@ pkg_pretend() { die "Sorry, but gcc earlier than 4.0 will not work for xorg-server." } +pkg_setup() { + if use wayland && ! use glamor; then + ewarn "glamor is necessary for acceleration under Xwayland." + ewarn "Performance may be unacceptable without it." + fi +} + src_configure() { # localstatedir is used for the log location; we need to override the default # from ebuild.sh -- 2.26.2