1 |
commit: b48e290c7510b8cbdf8c9f440b52dd3720d772a4 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 7 06:32:45 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 7 06:36:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b48e290c |
7 |
|
8 |
x11-misc/lightdm-gtk-greeter: fix 2.0.1-r1 for bug 627208 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
.../files/lightdm-gtk-greeter-2.0.1-gcc6.patch | 63 +--------------------- |
13 |
...lightdm-gtk-greeter-2.0.1-lightdm-1.19.2.patch} | 36 +++---------- |
14 |
.../lightdm-gtk-greeter-2.0.1-r1.ebuild | 3 ++ |
15 |
3 files changed, 13 insertions(+), 89 deletions(-) |
16 |
|
17 |
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 |
18 |
index 2ce0b68f85e..f72a93abfc1 100644 |
19 |
--- a/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch |
20 |
+++ b/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch |
21 |
@@ -1,6 +1,5 @@ |
22 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=619782 |
23 |
-Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/349 |
24 |
- http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/350 |
25 |
+Upstream commit: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/349 |
26 |
|
27 |
--- a/src/lightdm-gtk-greeter.c |
28 |
+++ b/src/lightdm-gtk-greeter.c |
29 |
@@ -23,62 +22,4 @@ Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm- |
30 |
/* Message label */ |
31 |
|
32 |
static gboolean |
33 |
-@@ -1932,11 +1937,11 @@ |
34 |
- { |
35 |
- gtk_widget_show (GTK_WIDGET (username_entry)); |
36 |
- gtk_widget_show (GTK_WIDGET (cancel_button)); |
37 |
-- lightdm_greeter_authenticate (greeter, NULL); |
38 |
-+ lightdm_greeter_authenticate (greeter, NULL, NULL); |
39 |
- } |
40 |
- else if (g_strcmp0 (username, "*guest") == 0) |
41 |
- { |
42 |
-- lightdm_greeter_authenticate_as_guest (greeter); |
43 |
-+ lightdm_greeter_authenticate_as_guest (greeter, NULL); |
44 |
- } |
45 |
- else |
46 |
- { |
47 |
-@@ -1956,7 +1961,7 @@ |
48 |
- set_language (NULL); |
49 |
- } |
50 |
- |
51 |
-- lightdm_greeter_authenticate (greeter, username); |
52 |
-+ lightdm_greeter_authenticate (greeter, username, NULL); |
53 |
- } |
54 |
- } |
55 |
- |
56 |
-@@ -1978,7 +1983,7 @@ |
57 |
- if (lightdm_greeter_get_in_authentication (greeter)) |
58 |
- { |
59 |
- cancelling = TRUE; |
60 |
-- lightdm_greeter_cancel_authentication (greeter); |
61 |
-+ lightdm_greeter_cancel_authentication (greeter, NULL); |
62 |
- set_message_label (LIGHTDM_MESSAGE_TYPE_INFO, NULL); |
63 |
- } |
64 |
- |
65 |
-@@ -2012,7 +2017,7 @@ |
66 |
- |
67 |
- language = get_language (); |
68 |
- if (language) |
69 |
-- lightdm_greeter_set_language (greeter, language); |
70 |
-+ lightdm_greeter_set_language (greeter, language, NULL); |
71 |
- g_free (language); |
72 |
- |
73 |
- session = get_session (); |
74 |
-@@ -2233,7 +2238,7 @@ |
75 |
- start_session (); |
76 |
- else if (lightdm_greeter_get_in_authentication (greeter)) |
77 |
- { |
78 |
-- lightdm_greeter_respond (greeter, gtk_entry_get_text (password_entry)); |
79 |
-+ lightdm_greeter_respond (greeter, gtk_entry_get_text (password_entry), NULL); |
80 |
- /* If we have questions pending, then we continue processing |
81 |
- * those, until we are done. (Otherwise, authentication will |
82 |
- * not complete.) */ |
83 |
-@@ -2326,7 +2331,7 @@ |
84 |
- } |
85 |
- } |
86 |
- else |
87 |
-- lightdm_greeter_authenticate_autologin (greeter); |
88 |
-+ lightdm_greeter_authenticate_autologin (greeter, NULL); |
89 |
- } |
90 |
- } |
91 |
- |
92 |
+ |
93 |
|
94 |
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-lightdm-1.19.2.patch |
95 |
similarity index 72% |
96 |
copy from x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch |
97 |
copy to x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-lightdm-1.19.2.patch |
98 |
index 2ce0b68f85e..81f158b2176 100644 |
99 |
--- a/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-gcc6.patch |
100 |
+++ b/x11-misc/lightdm-gtk-greeter/files/lightdm-gtk-greeter-2.0.1-lightdm-1.19.2.patch |
101 |
@@ -1,29 +1,9 @@ |
102 |
-Bug: https://bugs.gentoo.org/show_bug.cgi?id=619782 |
103 |
-Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/349 |
104 |
- http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/350 |
105 |
+Bug: https://bugs.gentoo.org/show_bug.cgi?id=627208 |
106 |
+Upstream commit: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/revision/350 |
107 |
|
108 |
--- a/src/lightdm-gtk-greeter.c |
109 |
+++ b/src/lightdm-gtk-greeter.c |
110 |
-@@ -677,6 +677,9 @@ |
111 |
- |
112 |
- /* Clock */ |
113 |
- |
114 |
-+#pragma GCC diagnostic push |
115 |
-+#pragma GCC diagnostic ignored "-Wformat-nonliteral" |
116 |
-+ |
117 |
- static gboolean |
118 |
- clock_timeout_thread (void) |
119 |
- { |
120 |
-@@ -697,6 +700,8 @@ |
121 |
- return TRUE; |
122 |
- } |
123 |
- |
124 |
-+#pragma GCC diagnostic pop |
125 |
-+ |
126 |
- /* Message label */ |
127 |
- |
128 |
- static gboolean |
129 |
-@@ -1932,11 +1937,11 @@ |
130 |
+@@ -1937,11 +1937,11 @@ |
131 |
{ |
132 |
gtk_widget_show (GTK_WIDGET (username_entry)); |
133 |
gtk_widget_show (GTK_WIDGET (cancel_button)); |
134 |
@@ -37,7 +17,7 @@ Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm- |
135 |
} |
136 |
else |
137 |
{ |
138 |
-@@ -1956,7 +1961,7 @@ |
139 |
+@@ -1961,7 +1961,7 @@ |
140 |
set_language (NULL); |
141 |
} |
142 |
|
143 |
@@ -46,7 +26,7 @@ Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm- |
144 |
} |
145 |
} |
146 |
|
147 |
-@@ -1978,7 +1983,7 @@ |
148 |
+@@ -1983,7 +1983,7 @@ |
149 |
if (lightdm_greeter_get_in_authentication (greeter)) |
150 |
{ |
151 |
cancelling = TRUE; |
152 |
@@ -55,7 +35,7 @@ Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm- |
153 |
set_message_label (LIGHTDM_MESSAGE_TYPE_INFO, NULL); |
154 |
} |
155 |
|
156 |
-@@ -2012,7 +2017,7 @@ |
157 |
+@@ -2017,7 +2017,7 @@ |
158 |
|
159 |
language = get_language (); |
160 |
if (language) |
161 |
@@ -64,7 +44,7 @@ Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm- |
162 |
g_free (language); |
163 |
|
164 |
session = get_session (); |
165 |
-@@ -2233,7 +2238,7 @@ |
166 |
+@@ -2238,7 +2238,7 @@ |
167 |
start_session (); |
168 |
else if (lightdm_greeter_get_in_authentication (greeter)) |
169 |
{ |
170 |
@@ -73,7 +53,7 @@ Upstream commits: http://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm- |
171 |
/* If we have questions pending, then we continue processing |
172 |
* those, until we are done. (Otherwise, authentication will |
173 |
* not complete.) */ |
174 |
-@@ -2326,7 +2331,7 @@ |
175 |
+@@ -2331,7 +2331,7 @@ |
176 |
} |
177 |
} |
178 |
else |
179 |
|
180 |
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 |
181 |
index 6c97d7dc89b..8e116169544 100644 |
182 |
--- a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.1-r1.ebuild |
183 |
+++ b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.1-r1.ebuild |
184 |
@@ -32,6 +32,9 @@ GENTOO_BG="gentoo-bg_65.jpg" |
185 |
|
186 |
src_prepare() { |
187 |
epatch "${FILESDIR}"/${P}-gcc6.patch |
188 |
+ if has_version '>=x11-misc/lightdm-1.19.2'; then |
189 |
+ epatch "${FILESDIR}"/${P}-lightdm-1.19.2.patch |
190 |
+ fi |
191 |
|
192 |
# Ok, this has to be fixed in the tarball but I am too lazy to do it. |
193 |
# I will fix this once I decide to update the tarball with a new gentoo |