1 |
commit: 9bc8ca9cb58bf62bf0433c0c30a236b26d8dbe6c |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 19 05:05:54 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 30 09:08:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bc8ca9c |
7 |
|
8 |
x11-misc/lightdm-gtk-greeter: Fix building with GCC-6 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=619782 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/5131 |
13 |
|
14 |
.../files/lightdm-gtk-greeter-2.0.1-gcc6.patch | 84 ++++++++++++++++++++++ |
15 |
.../lightdm-gtk-greeter-2.0.1-r1.ebuild | 2 + |
16 |
2 files changed, 86 insertions(+) |
17 |
|
18 |
diff --git a/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch b/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..2ce0b68f85e |
21 |
--- /dev/null |
22 |
+++ b/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch |
23 |
@@ -0,0 +1,84 @@ |
24 |
+Bug: https://bugs.gentoo.org/show_bug.cgi?id=619782 |
25 |
+Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/349 |
26 |
+ http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/350 |
27 |
+ |
28 |
+--- a/src/lightdm-gtk-greeter.c |
29 |
++++ b/src/lightdm-gtk-greeter.c |
30 |
+@@ -677,6 +677,9 @@ |
31 |
+ |
32 |
+ /* Clock */ |
33 |
+ |
34 |
++#pragma GCC diagnostic push |
35 |
++#pragma GCC diagnostic ignored "-Wformat-nonliteral" |
36 |
++ |
37 |
+ static gboolean |
38 |
+ clock_timeout_thread (void) |
39 |
+ { |
40 |
+@@ -697,6 +700,8 @@ |
41 |
+ return TRUE; |
42 |
+ } |
43 |
+ |
44 |
++#pragma GCC diagnostic pop |
45 |
++ |
46 |
+ /* Message label */ |
47 |
+ |
48 |
+ static gboolean |
49 |
+@@ -1932,11 +1937,11 @@ |
50 |
+ { |
51 |
+ gtk_widget_show (GTK_WIDGET (username_entry)); |
52 |
+ gtk_widget_show (GTK_WIDGET (cancel_button)); |
53 |
+- lightdm_greeter_authenticate (greeter, NULL); |
54 |
++ lightdm_greeter_authenticate (greeter, NULL, NULL); |
55 |
+ } |
56 |
+ else if (g_strcmp0 (username, "*guest") == 0) |
57 |
+ { |
58 |
+- lightdm_greeter_authenticate_as_guest (greeter); |
59 |
++ lightdm_greeter_authenticate_as_guest (greeter, NULL); |
60 |
+ } |
61 |
+ else |
62 |
+ { |
63 |
+@@ -1956,7 +1961,7 @@ |
64 |
+ set_language (NULL); |
65 |
+ } |
66 |
+ |
67 |
+- lightdm_greeter_authenticate (greeter, username); |
68 |
++ lightdm_greeter_authenticate (greeter, username, NULL); |
69 |
+ } |
70 |
+ } |
71 |
+ |
72 |
+@@ -1978,7 +1983,7 @@ |
73 |
+ if (lightdm_greeter_get_in_authentication (greeter)) |
74 |
+ { |
75 |
+ cancelling = TRUE; |
76 |
+- lightdm_greeter_cancel_authentication (greeter); |
77 |
++ lightdm_greeter_cancel_authentication (greeter, NULL); |
78 |
+ set_message_label (LIGHTDM_MESSAGE_TYPE_INFO, NULL); |
79 |
+ } |
80 |
+ |
81 |
+@@ -2012,7 +2017,7 @@ |
82 |
+ |
83 |
+ language = get_language (); |
84 |
+ if (language) |
85 |
+- lightdm_greeter_set_language (greeter, language); |
86 |
++ lightdm_greeter_set_language (greeter, language, NULL); |
87 |
+ g_free (language); |
88 |
+ |
89 |
+ session = get_session (); |
90 |
+@@ -2233,7 +2238,7 @@ |
91 |
+ start_session (); |
92 |
+ else if (lightdm_greeter_get_in_authentication (greeter)) |
93 |
+ { |
94 |
+- lightdm_greeter_respond (greeter, gtk_entry_get_text (password_entry)); |
95 |
++ lightdm_greeter_respond (greeter, gtk_entry_get_text (password_entry), NULL); |
96 |
+ /* If we have questions pending, then we continue processing |
97 |
+ * those, until we are done. (Otherwise, authentication will |
98 |
+ * not complete.) */ |
99 |
+@@ -2326,7 +2331,7 @@ |
100 |
+ } |
101 |
+ } |
102 |
+ else |
103 |
+- lightdm_greeter_authenticate_autologin (greeter); |
104 |
++ lightdm_greeter_authenticate_autologin (greeter, NULL); |
105 |
+ } |
106 |
+ } |
107 |
+ |
108 |
|
109 |
diff --git a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.1-r1.ebuild b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.1-r1.ebuild |
110 |
index 9fa334fcd74..aa85bdd1fb2 100644 |
111 |
--- a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.1-r1.ebuild |
112 |
+++ b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.1-r1.ebuild |
113 |
@@ -30,6 +30,8 @@ RDEPEND="${COMMON_DEPEND} |
114 |
GENTOO_BG="gentoo-bg_65.jpg" |
115 |
|
116 |
src_prepare() { |
117 |
+ epatch "${FILESDIR}"/${P}-gcc6.patch |
118 |
+ |
119 |
# Ok, this has to be fixed in the tarball but I am too lazy to do it. |
120 |
# I will fix this once I decide to update the tarball with a new gentoo |
121 |
# background |