Blame SOURCES/0001-data-change-cirrus-blacklist-to-use-gdm-disable-wayl.patch

765e07
From a9b82ca4a87315235924317c0fc48324a8b7cb9f Mon Sep 17 00:00:00 2001
765e07
From: Ray Strode <rstrode@redhat.com>
765e07
Date: Mon, 21 May 2018 11:13:31 -0400
765e07
Subject: [PATCH] data: change cirrus blacklist to use gdm-disable-wayland
765e07
765e07
Now that we have a gdm-disable-wayland binary for disabling
765e07
wayland at boot, we should use it.
765e07
765e07
This commit changes the cirrus udev rule to use gdm-disable-wayland,
765e07
rather than running sh and printf.
765e07
765e07
https://bugzilla.gnome.org/show_bug.cgi?id=796315
765e07
765e07
765e07
(cherry picked from commit a913eea70342411247e770a91b75dd800941bb6e)
765e07
---
765e07
 data/61-gdm.rules    | 2 --
765e07
 data/61-gdm.rules.in | 2 ++
765e07
 data/Makefile.am     | 5 +++++
765e07
 3 files changed, 7 insertions(+), 2 deletions(-)
765e07
 delete mode 100644 data/61-gdm.rules
765e07
 create mode 100644 data/61-gdm.rules.in
765e07
765e07
diff --git a/data/61-gdm.rules b/data/61-gdm.rules
765e07
deleted file mode 100644
765e07
index 5ffa8b8a0..000000000
765e07
--- a/data/61-gdm.rules
765e07
+++ /dev/null
765e07
@@ -1,2 +0,0 @@
765e07
-# disable Wayland on Cirrus chipsets
765e07
-ATTR{vendor}=="0x1013", ATTR{device}=="0x00b8", ATTR{subsystem_vendor}=="0x1af4", ATTR{subsystem_device}=="0x1100", RUN+="/bin/sh -c '/bin/mkdir /run/gdm ; /usr/bin/printf \"[daemon]\nWaylandEnable=false\" >> /run/gdm/custom.conf'"
765e07
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
765e07
new file mode 100644
765e07
index 000000000..de8e17903
765e07
--- /dev/null
765e07
+++ b/data/61-gdm.rules.in
765e07
@@ -0,0 +1,2 @@
765e07
+# disable Wayland on Cirrus chipsets
765e07
+ATTR{vendor}=="0x1013", ATTR{device}=="0x00b8", ATTR{subsystem_vendor}=="0x1af4", ATTR{subsystem_device}=="0x1100", RUN+="@libexecdir@/gdm-disable-wayland"
765e07
diff --git a/data/Makefile.am b/data/Makefile.am
765e07
index a47e7900f..192dfa052 100644
765e07
--- a/data/Makefile.am
765e07
+++ b/data/Makefile.am
765e07
@@ -134,60 +134,65 @@ pam_lfs_files = \
765e07
 EXTRA_DIST += $(pam_lfs_files)
765e07
 
765e07
 pam_arch_files = pam-arch/gdm-autologin.pam	\
765e07
 	pam-arch/gdm-launch-environment.pam	\
765e07
 	pam-arch/gdm-fingerprint.pam		\
765e07
 	pam-arch/gdm-smartcard.pam		\
765e07
 	pam-arch/gdm-password.pam		\
765e07
 	pam-arch/gdm-pin.pam			\
765e07
 	$(NULL)
765e07
 EXTRA_DIST += $(pam_arch_files)
765e07
 
765e07
 if ENABLE_REDHAT_PAM_CONFIG
765e07
 pam_files = $(pam_redhat_files)
765e07
 endif
765e07
 if ENABLE_OPENEMBEDDED_PAM_CONFIG
765e07
 pam_files = $(pam_openembedded_files)
765e07
 endif
765e07
 if ENABLE_EXHERBO_PAM_CONFIG
765e07
 pam_files = $(pam_exherbo_files)
765e07
 endif
765e07
 if ENABLE_LFS_PAM_CONFIG
765e07
 pam_files = $(pam_lfs_files)
765e07
 endif
765e07
 if ENABLE_ARCH_PAM_CONFIG
765e07
 pam_files = $(pam_arch_files)
765e07
 endif
765e07
 
765e07
 udevrulesdir = $(prefix)/lib/udev/rules.d
765e07
 udevrules_DATA = 61-gdm.rules
765e07
 
765e07
+EXTRA_DIST += $(srcdir)/61-gdm.rules.in
765e07
+61-gdm.rules: $(srcdir)/61-gdm.rules.in
765e07
+	sed	-e 's,[@]libexecdir[@],$(libexecdir),g' \
765e07
+		< $< > $@.tmp && mv $@.tmp $@
765e07
+
765e07
 EXTRA_DIST +=			\
765e07
 	$(dconf_db_files)	\
765e07
 	$(schemas_in_files)	\
765e07
 	$(schemas_DATA)		\
765e07
 	$(dbusconf_in_files)	\
765e07
 	$(localealias_DATA)	\
765e07
 	$(udevrules_DATA)	\
765e07
 	gdm.schemas.in.in	\
765e07
 	gdm.conf-custom.in 	\
765e07
 	Xsession.in 		\
765e07
 	Init.in 		\
765e07
 	PreSession.in 		\
765e07
 	PostSession.in 		\
765e07
 	PostLogin 		\
765e07
 	org.gnome.login-screen.gschema.xml.in \
765e07
 	$(NULL)
765e07
 
765e07
 CLEANFILES = 				\
765e07
 	Xsession			\
765e07
 	gdm.conf-custom			\
765e07
 	Init				\
765e07
 	PreSession			\
765e07
 	PostSession			\
765e07
 	$(gsettings_SCHEMAS)		\
765e07
 	greeter-dconf-defaults		\
765e07
 	$(NULL)
765e07
 
765e07
 DISTCLEANFILES =			\
765e07
 	$(dbusconf_DATA)		\
765e07
 	gdm.schemas			\
765e07
-- 
765e07
2.17.1
765e07