Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gdm: gdm-3.2.1.1-r2.ebuild gdm-3.2.1.1-r1.ebuild ChangeLog metadata.xml
Date: Sat, 31 Dec 2011 08:34:46
Message-Id: 20111231083436.25F392004E@flycatcher.gentoo.org
1 tetromino 11/12/31 08:34:36
2
3 Modified: gdm-3.2.1.1-r1.ebuild ChangeLog metadata.xml
4 Added: gdm-3.2.1.1-r2.ebuild
5 Log:
6 Add upstream patches to fix login problems with slow pam modules. Add default-enabled fallback USE flag to pull in metacity (bug #395295, thanks to Octavio Ruiz (Ta^3) for reporting). Use a better systemd service file (bug #396317, thanks to Michał Górny). Ship systemd service file and pam.d files in FILESDIR instead of a separate tarball; these are small files and unlikely to change (bug #396317, comment 8). Punt unused elibc_glibc from IUSE. Move gnome2_src_prepare after eautoreconf.
7 Forced to drop arm keyword due to gnome-session dependency (bug #390345).
8
9 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.2 gnome-base/gdm/gdm-3.2.1.1-r1.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r1.ebuild?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r1.ebuild?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r1.ebuild?r1=1.1&r2=1.2
17
18 Index: gdm-3.2.1.1-r1.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r1.ebuild,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- gdm-3.2.1.1-r1.ebuild 5 Nov 2011 08:19:52 -0000 1.1
25 +++ gdm-3.2.1.1-r1.ebuild 31 Dec 2011 08:34:36 -0000 1.2
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2011 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r1.ebuild,v 1.1 2011/11/05 08:19:52 tetromino Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r1.ebuild,v 1.2 2011/12/31 08:34:36 tetromino Exp $
31
32 EAPI="4"
33 GNOME2_LA_PUNT="yes"
34 @@ -13,10 +13,9 @@
35
36 LICENSE="GPL-2"
37 SLOT="0"
38 -KEYWORDS="~amd64 ~arm ~sh ~x86"
39 +KEYWORDS="~amd64 ~sh ~x86"
40
41 -IUSE_LIBC="elibc_glibc"
42 -IUSE="accessibility +consolekit fprint +gnome-shell ipv6 gnome-keyring +introspection selinux smartcard tcpd test xinerama +xklavier $IUSE_LIBC"
43 +IUSE="accessibility +consolekit fprint +gnome-shell ipv6 gnome-keyring +introspection selinux smartcard tcpd test xinerama +xklavier"
44
45 # Name of the tarball with gentoo specific files
46 GDM_EXTRA="${PN}-3.2.1.1-gentoo-files"
47
48
49
50 1.349 gnome-base/gdm/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.349&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.349&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.348&r2=1.349
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
59 retrieving revision 1.348
60 retrieving revision 1.349
61 diff -u -r1.348 -r1.349
62 --- ChangeLog 5 Nov 2011 08:19:52 -0000 1.348
63 +++ ChangeLog 31 Dec 2011 08:34:36 -0000 1.349
64 @@ -1,6 +1,23 @@
65 # ChangeLog for gnome-base/gdm
66 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
67 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.348 2011/11/05 08:19:52 tetromino Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.349 2011/12/31 08:34:36 tetromino Exp $
69 +
70 +*gdm-3.2.1.1-r2 (31 Dec 2011)
71 +
72 + 31 Dec 2011; Alexandre Rostovtsev <tetromino@g.o>
73 + +files/gdm-3.2.1.1-pam-fix-1.patch, +files/3.2.1.1/gdm-fingerprint,
74 + +files/gdm-3.2.1.1-pam-fix-2.patch, +files/3.2.1.1/gdm,
75 + +files/3.2.1.1/gdm.service, +files/3.2.1.1/gdm-autologin,
76 + +files/3.2.1.1/gdm-welcome, gdm-3.2.1.1-r1.ebuild, +gdm-3.2.1.1-r2.ebuild,
77 + +files/3.2.1.1/gdm-password, +files/3.2.1.1/gdm-smartcard, metadata.xml:
78 + Add upstream patches to fix login problems with slow pam modules. Add
79 + default-enabled fallback USE flag to pull in metacity (bug #395295, thanks to
80 + Octavio Ruiz (Ta^3) for reporting). Use a better systemd service file (bug
81 + #396317, thanks to Michał Górny). Ship systemd service file and pam.d files
82 + in FILESDIR instead of a separate tarball; these are small files and unlikely
83 + to change (bug #396317, comment 8). Punt unused elibc_glibc from IUSE. Move
84 + gnome2_src_prepare after eautoreconf.
85 + Forced to drop arm keyword due to gnome-session dependency (bug #390345).
86
87 *gdm-3.2.1.1-r1 (05 Nov 2011)
88
89
90
91
92 1.8 gnome-base/gdm/metadata.xml
93
94 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/metadata.xml?rev=1.8&view=markup
95 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/metadata.xml?rev=1.8&content-type=text/plain
96 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/metadata.xml?r1=1.7&r2=1.8
97
98 Index: metadata.xml
99 ===================================================================
100 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/metadata.xml,v
101 retrieving revision 1.7
102 retrieving revision 1.8
103 diff -u -r1.7 -r1.8
104 --- metadata.xml 5 Nov 2011 08:19:52 -0000 1.7
105 +++ metadata.xml 31 Dec 2011 08:34:36 -0000 1.8
106 @@ -6,6 +6,8 @@
107 <flag name="consolekit">Allow proper handling of removable media according
108 to who is actually present on the machine.</flag>
109 <flag name="dmx">Enables Distributed Multihead X (DMX) support</flag>
110 + <flag name="fallback">Install <pkg>x11-wm/metacity</pkg> as fallback in
111 + case gnome-shell greeter fails to start</flag>
112 <flag name="fprint">Enables experimental fingerprint authentication using
113 <pkg>sys-auth/fprintd</pkg></flag>
114 <flag name="gnome-shell">Enables a greeter based on GNOME Shell (uses
115
116
117
118 1.1 gnome-base/gdm/gdm-3.2.1.1-r2.ebuild
119
120 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r2.ebuild?rev=1.1&view=markup
121 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r2.ebuild?rev=1.1&content-type=text/plain
122
123 Index: gdm-3.2.1.1-r2.ebuild
124 ===================================================================
125 # Copyright 1999-2011 Gentoo Foundation
126 # Distributed under the terms of the GNU General Public License v2
127 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.2.1.1-r2.ebuild,v 1.1 2011/12/31 08:34:36 tetromino Exp $
128
129 EAPI="4"
130 GNOME2_LA_PUNT="yes"
131 GCONF_DEBUG="yes"
132
133 inherit autotools eutils gnome2 pam systemd
134
135 DESCRIPTION="GNOME Display Manager"
136 HOMEPAGE="http://www.gnome.org/projects/gdm/"
137
138 LICENSE="GPL-2"
139 SLOT="0"
140 KEYWORDS="~amd64 ~sh ~x86"
141
142 IUSE="accessibility +consolekit +fallback fprint +gnome-shell ipv6 gnome-keyring +introspection selinux smartcard tcpd test xinerama +xklavier"
143
144 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
145 # nspr used by smartcard extension
146 # dconf, dbus and g-s-d are needed at install time for dconf update
147 COMMON_DEPEND="
148 >=dev-libs/dbus-glib-0.74
149 >=dev-libs/glib-2.29.3:2
150 >=x11-libs/gtk+-2.91.1:3
151 >=x11-libs/pango-1.3
152 dev-libs/nspr
153 >=dev-libs/nss-3.11.1
154 >=media-libs/fontconfig-2.5.0
155 >=media-libs/libcanberra-0.4[gtk3]
156 >=gnome-base/gconf-2.31.3
157 >=x11-misc/xdg-utils-1.0.2-r3
158 >=sys-power/upower-0.9
159 >=sys-apps/accountsservice-0.6.12
160
161 gnome-base/dconf
162 >=gnome-base/gnome-settings-daemon-3.1.4
163 gnome-base/gsettings-desktop-schemas
164 sys-apps/dbus
165
166 app-text/iso-codes
167
168 x11-base/xorg-server
169 x11-libs/libXi
170 x11-libs/libXau
171 x11-libs/libX11
172 x11-libs/libXdmcp
173 x11-libs/libXext
174 x11-libs/libXft
175 x11-libs/libXrandr
176 x11-apps/sessreg
177
178 virtual/pam
179 consolekit? ( sys-auth/consolekit )
180
181 accessibility? ( x11-libs/libXevie )
182 gnome-keyring? ( >=gnome-base/gnome-keyring-2.22[pam] )
183 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
184 selinux? ( sys-libs/libselinux )
185 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
186 xinerama? ( x11-libs/libXinerama )
187 xklavier? ( >=x11-libs/libxklavier-4 )"
188 DEPEND="${COMMON_DEPEND}
189 test? ( >=dev-libs/check-0.9.4 )
190 xinerama? ( x11-proto/xineramaproto )
191 app-text/docbook-xml-dtd:4.1.2
192 sys-devel/gettext
193 x11-proto/inputproto
194 x11-proto/randrproto
195 >=dev-util/intltool-0.40.0
196 >=dev-util/pkgconfig-0.19
197 >=app-text/scrollkeeper-0.1.4
198 >=app-text/gnome-doc-utils-0.3.2"
199 # XXX: These deps are from session and desktop files in data/ directory
200 # at-spi:1 is needed for at-spi-registryd (spawned by simple-chooser)
201 # fprintd is used via dbus by gdm-fingerprint-extension
202 RDEPEND="${COMMON_DEPEND}
203 >=gnome-base/gnome-session-2.91.92
204 x11-apps/xhost
205
206 accessibility? (
207 app-accessibility/gnome-mag
208 app-accessibility/gok
209 app-accessibility/orca
210 gnome-extra/at-spi:1 )
211 consolekit? ( gnome-extra/polkit-gnome )
212 fallback? ( x11-wm/metacity )
213 fprint? (
214 sys-auth/fprintd
215 sys-auth/pam_fprint )
216 gnome-shell? ( >=gnome-base/gnome-shell-3.1.90 )
217 !gnome-shell? ( x11-wm/metacity )
218 smartcard? (
219 app-crypt/coolkey
220 sys-auth/pam_pkcs11 )
221
222 !gnome-extra/fast-user-switch-applet"
223
224 pkg_setup() {
225 DOCS="AUTHORS ChangeLog NEWS README TODO"
226
227 # PAM is the only auth scheme supported
228 # even though configure lists shadow and crypt
229 # they don't have any corresponding code.
230 # --with-at-spi-registryd-directory= needs to be passed explicitly because
231 # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
232 G2CONF="${G2CONF}
233 --disable-schemas-install
234 --disable-static
235 --localstatedir=${EPREFIX}/var
236 --with-xdmcp=yes
237 --enable-authentication-scheme=pam
238 --with-pam-prefix=${EPREFIX}/etc
239 --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
240 $(use_with accessibility xevie)
241 $(use_enable ipv6)
242 $(use_enable xklavier libxklavier)
243 $(use_with consolekit console-kit)
244 $(use_with selinux)
245 $(use_with tcpd tcp-wrappers)
246 $(use_with xinerama)"
247
248 enewgroup gdm
249 enewgroup video # Just in case it hasn't been created yet
250 enewuser gdm -1 -1 /var/lib/gdm gdm,video
251
252 # For compatibility with certain versions of nvidia-drivers, etc., need to
253 # ensure that gdm user is in the video group
254 if ! egetent group video | grep -q gdm; then
255 # FIXME XXX: is this at all portable, ldap-safe, etc.?
256 # XXX: egetent does not have a 1-argument form, so we can't use it to
257 # get the list of gdm's groups
258 local g=$(groups gdm)
259 elog "Adding user gdm to video group"
260 usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
261 fi
262 }
263
264 src_prepare() {
265 # remove unneeded linker directive for selinux, bug #41022
266 epatch "${FILESDIR}/${PN}-2.32.0-selinux-remove-attr.patch"
267
268 # daemonize so that the boot process can continue, bug #236701
269 epatch "${FILESDIR}/${PN}-2.32.0-fix-daemonize-regression.patch"
270
271 # GDM grabs VT2 instead of VT7, bug 261339, bug 284053, bug 288852
272 epatch "${FILESDIR}/${PN}-2.32.0-fix-vt-problems.patch"
273
274 # make custom session work, bug #216984
275 epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
276
277 # ssh-agent handling must be done at xinitrc.d, bug #220603
278 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
279
280 # fix libxklavier automagic support
281 epatch "${FILESDIR}/${PN}-2.32.0-automagic-libxklavier-support.patch"
282
283 # fixes for logging in with slow pam modules from git master branch
284 epatch "${FILESDIR}/${PN}-3.2.1.1-pam-fix-"{1,2}.patch
285
286 # don't load accessibility support at runtime when USE=-accessibility
287 use accessibility || epatch "${FILESDIR}/${PN}-3.2.1.1-disable-accessibility.patch"
288
289 # make gdm-fallback session the default if USE=-gnome-shell
290 if ! use gnome-shell; then
291 sed -e "s:'gdm-shell':'gdm-fallback':" \
292 -i data/00-upstream-settings || die "sed failed"
293 fi
294
295 mkdir -p "${S}"/m4
296 intltoolize --force --copy --automake || die "intltoolize failed"
297 eautoreconf
298
299 gnome2_src_prepare
300 }
301
302 src_install() {
303 gnome2_src_install
304
305 # Install the systemd unit file
306 systemd_dounit "${FILESDIR}/3.2.1.1/gdm.service"
307
308 # gdm-binary should be gdm to work with our init (#5598)
309 rm -f "${ED}/usr/sbin/gdm"
310 ln -sfn /usr/sbin/gdm-binary "${ED}/usr/sbin/gdm"
311 # our x11's scripts point to /usr/bin/gdm
312 ln -sfn /usr/sbin/gdm-binary "${ED}/usr/bin/gdm"
313
314 # log, etc.
315 keepdir /var/log/gdm
316
317 # add xinitrc.d scripts
318 exeinto /etc/X11/xinit/xinitrc.d
319 doexe "${FILESDIR}/49-keychain"
320 doexe "${FILESDIR}/50-ssh-agent"
321
322 # install XDG_DATA_DIRS gdm changes
323 echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
324 doenvd 99xdg-gdm
325
326 # install PAM files
327 mkdir "${T}/pam.d" || die "mkdir failed"
328 cp "${FILESDIR}/3.2.1.1"/gdm{,-autologin,-password,-fingerprint,-smartcard,-welcome} \
329 "${T}/pam.d" || die "cp failed"
330 use gnome-keyring && sed -i "s:#Keyring=::g" "${T}/pam.d"/*
331 dopamd "${T}/pam.d"/*
332 }
333
334 pkg_postinst() {
335 gnome2_pkg_postinst
336
337 dbus-launch dconf update || die "'dconf update' failed"
338
339 ewarn
340 ewarn "This is an EXPERIMENTAL release, please bear with its bugs and"
341 ewarn "visit us on #gentoo-desktop if you have problems."
342 ewarn
343
344 elog "To make GDM start at boot, edit /etc/conf.d/xdm"
345 elog "and then execute 'rc-update add xdm default'."
346 elog "If you already have GDM running, you will need to restart it."
347
348 elog
349 elog "GDM ignores most non-localization environment variables. If you"
350 elog "need GDM to launch gnome-session with a particular environment,"
351 elog "you need to use pam_env.so in /etc/pam.d/gdm-welcome; see"
352 elog "the pam_env man page for more information."
353 elog
354
355 if use gnome-keyring; then
356 elog "For autologin to unlock your keyring, you need to set an empty"
357 elog "password on your keyring. Use app-crypt/seahorse for that."
358 fi
359
360 if [ -f "/etc/X11/gdm/gdm.conf" ]; then
361 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
362 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
363 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
364 fi
365
366 # https://bugzilla.redhat.com/show_bug.cgi?id=513579
367 # Lennart says this problem is fixed, but users are still reporting problems
368 # XXX: Do we want this elog?
369 # if has_version "media-libs/libcanberra[pulseaudio]" ; then
370 # elog
371 # elog "You have media-libs/libcanberra with the pulseaudio USE flag"
372 # elog "enabled. GDM will start a pulseaudio process to play sounds. This"
373 # elog "process should automatically terminate when a user logs into a"
374 # elog "desktop session. If GDM's pulseaudio fails to terminate and"
375 # elog "causes problems for users' audio, you can prevent GDM from"
376 # elog "starting pulseaudio by editing /var/lib/gdm/.pulse/client.conf"
377 # elog "so it contains the following two lines:"
378 # elog
379 # elog "autospawn = no"
380 # elog "daemon-binary = /bin/true"
381 # fi
382 }
383
384 pkg_postrm() {
385 gnome2_pkg_postrm
386
387 if rc-config list default | grep -q xdm; then
388 elog "To remove GDM from startup please execute"
389 elog "'rc-update del xdm default'"
390 fi
391 }