Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-base/gdm/, gnome-base/gdm/files/
Date: Wed, 26 Dec 2012 21:45:23
Message-Id: 1356558173.56ab27672db2efcd92880ac83b13f3d9db906bb8.eva@gentoo
1 commit: 56ab27672db2efcd92880ac83b13f3d9db906bb8
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 26 21:42:00 2012 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 26 21:42:53 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=56ab2767
7
8 gnome-base/gdm: moved to gx86
9
10 * Sync live ebuild with gx86 changes.
11 * USE=introspection is now global.
12
13 ---
14 gnome-base/gdm/files/gdm.sh | 3 -
15 gnome-base/gdm/gdm-3.6.2.ebuild | 285 ---------------------------------------
16 gnome-base/gdm/gdm-9999.ebuild | 113 +++++++---------
17 gnome-base/gdm/metadata.xml | 2 -
18 4 files changed, 50 insertions(+), 353 deletions(-)
19
20 diff --git a/gnome-base/gdm/files/gdm.sh b/gnome-base/gdm/files/gdm.sh
21 deleted file mode 100644
22 index 609f10a..0000000
23 --- a/gnome-base/gdm/files/gdm.sh
24 +++ /dev/null
25 @@ -1,3 +0,0 @@
26 -#!/bin/sh
27 -
28 -gdm-binary &
29
30 diff --git a/gnome-base/gdm/gdm-3.6.2.ebuild b/gnome-base/gdm/gdm-3.6.2.ebuild
31 deleted file mode 100644
32 index fa78d1f..0000000
33 --- a/gnome-base/gdm/gdm-3.6.2.ebuild
34 +++ /dev/null
35 @@ -1,285 +0,0 @@
36 -# Copyright 1999-2012 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -# $Header: $
39 -
40 -EAPI="4"
41 -GNOME2_LA_PUNT="yes"
42 -
43 -inherit autotools eutils gnome2 pam systemd user
44 -if [[ ${PV} = 9999 ]]; then
45 - inherit gnome2-live
46 -fi
47 -
48 -G_PV="2012.09.25"
49 -G_P="gdm-gentoo-${G_PV}"
50 -DESCRIPTION="GNOME Display Manager"
51 -HOMEPAGE="https://live.gnome.org/GDM"
52 -SRC_URI="${SRC_URI}
53 - http://dev.gentoo.org/~tetromino/distfiles/${PN}/${G_P}.tar.xz"
54 -
55 -LICENSE="GPL-2+"
56 -SLOT="0"
57 -IUSE="accessibility audit +consolekit +fallback fprint +gnome-shell +introspection ipv6 ldap plymouth selinux smartcard systemd tcpd test xinerama"
58 -if [[ ${PV} = 9999 ]]; then
59 - KEYWORDS=""
60 -else
61 - KEYWORDS="~amd64 ~sh ~x86"
62 -fi
63 -
64 -# NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
65 -# nspr used by smartcard extension
66 -# dconf, dbus and g-s-d are needed at install time for dconf update
67 -# libdaemon needed for our fix-daemonize-regression.patch
68 -COMMON_DEPEND="
69 - >=dev-libs/glib-2.33.2:2
70 - >=x11-libs/gtk+-2.91.1:3
71 - >=x11-libs/pango-1.3
72 - dev-libs/nspr
73 - >=dev-libs/nss-3.11.1
74 - >=media-libs/fontconfig-2.5.0
75 - >=media-libs/libcanberra-0.4[gtk3]
76 - >=x11-misc/xdg-utils-1.0.2-r3
77 - >=sys-power/upower-0.9
78 - >=sys-apps/accountsservice-0.6.12
79 -
80 - >=gnome-base/dconf-0.11.6
81 - >=gnome-base/gnome-settings-daemon-3.1.4
82 - gnome-base/gsettings-desktop-schemas
83 - sys-apps/dbus
84 -
85 - app-text/iso-codes
86 -
87 - x11-base/xorg-server
88 - x11-libs/libXi
89 - x11-libs/libXau
90 - x11-libs/libX11
91 - x11-libs/libXdmcp
92 - x11-libs/libXext
93 - x11-libs/libXft
94 - x11-libs/libXrandr
95 - x11-apps/sessreg
96 -
97 - virtual/pam
98 - sys-auth/pambase[consolekit?,systemd?]
99 -
100 - dev-libs/libdaemon
101 -
102 - accessibility? ( x11-libs/libXevie )
103 - audit? ( sys-process/audit )
104 - consolekit? ( sys-auth/consolekit[pam] )
105 - introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
106 - plymouth? ( sys-boot/plymouth )
107 - selinux? ( sys-libs/libselinux )
108 - systemd? ( >=sys-apps/systemd-39[pam] )
109 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
110 - xinerama? ( x11-libs/libXinerama )"
111 -# XXX: These deps are from session and desktop files in data/ directory
112 -# at-spi:1 is needed for at-spi-registryd (spawned by simple-chooser)
113 -# fprintd is used via dbus by gdm-fingerprint-extension
114 -# gnome-session-3.6 needed to avoid freezing with orca
115 -RDEPEND="${COMMON_DEPEND}
116 - >=gnome-base/gnome-session-3.6
117 - x11-apps/xhost
118 - x11-themes/gnome-icon-theme-symbolic
119 -
120 - accessibility? (
121 - app-accessibility/gnome-mag
122 - app-accessibility/gok
123 - app-accessibility/orca
124 - gnome-extra/at-spi:1 )
125 - consolekit? ( gnome-extra/polkit-gnome )
126 - fallback? ( x11-wm/metacity )
127 - fprint? (
128 - sys-auth/fprintd
129 - sys-auth/pam_fprint )
130 - gnome-shell? ( >=gnome-base/gnome-shell-3.1.90 )
131 - !gnome-shell? ( x11-wm/metacity )
132 - smartcard? (
133 - app-crypt/coolkey
134 - sys-auth/pam_pkcs11 )
135 -
136 - !gnome-extra/fast-user-switch-applet"
137 -DEPEND="${COMMON_DEPEND}
138 - test? ( >=dev-libs/check-0.9.4 )
139 - xinerama? ( x11-proto/xineramaproto )
140 - app-text/docbook-xml-dtd:4.1.2
141 - >=sys-devel/gettext-0.17
142 - x11-proto/inputproto
143 - x11-proto/randrproto
144 - >=dev-util/intltool-0.40.0
145 - virtual/pkgconfig"
146 -
147 -if [[ ${PV} = 9999 ]]; then
148 - DEPEND="${DEPEND}
149 - app-text/yelp-tools"
150 -fi
151 -
152 -pkg_setup() {
153 - enewgroup gdm
154 - enewgroup video # Just in case it hasn't been created yet
155 - enewuser gdm -1 -1 /var/lib/gdm gdm,video
156 -
157 - # For compatibility with certain versions of nvidia-drivers, etc., need to
158 - # ensure that gdm user is in the video group
159 - if ! egetent group video | grep -q gdm; then
160 - # FIXME XXX: is this at all portable, ldap-safe, etc.?
161 - # XXX: egetent does not have a 1-argument form, so we can't use it to
162 - # get the list of gdm's groups
163 - local g=$(groups gdm)
164 - elog "Adding user gdm to video group"
165 - usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
166 - fi
167 -}
168 -
169 -src_prepare() {
170 - DOCS="AUTHORS ChangeLog NEWS README TODO"
171 -
172 - # PAM is the only auth scheme supported
173 - # even though configure lists shadow and crypt
174 - # they don't have any corresponding code.
175 - # --with-at-spi-registryd-directory= needs to be passed explicitly because
176 - # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
177 - G2CONF="${G2CONF}
178 - --disable-static
179 - --localstatedir=${EPREFIX}/var
180 - --with-xdmcp=yes
181 - --enable-authentication-scheme=pam
182 - --with-pam-prefix=${EPREFIX}/etc
183 - --with-default-pam-config=none
184 - --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
185 - --with-initial-vt=7
186 - $(use_with accessibility xevie)
187 - $(use_with audit libaudit)
188 - $(use_enable ipv6)
189 - $(use_with consolekit console-kit)
190 - $(use_with plymouth)
191 - $(use_with selinux)
192 - $(use_with systemd)
193 - $(use_with tcpd tcp-wrappers)
194 - $(use_with xinerama)"
195 - [[ ${PV} != 9999 ]] && G2CONF="${G2CONF} ITSTOOL=$(type -P true)"
196 -
197 - # GDM grabs VT2 instead of VT7, bug 261339, bug 284053, bug 288852
198 - # XXX: We can now pass a hard-coded initial value; temporary fix
199 - #epatch "${FILESDIR}/${PN}-2.32.0-fix-vt-problems.patch"
200 -
201 - # daemonize so that the boot process can continue, bug #236701
202 - epatch "${FILESDIR}/${PN}-3.6.0-fix-daemonize-regression.patch"
203 -
204 - # make custom session work, bug #216984
205 - epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
206 -
207 - # ssh-agent handling must be done at xinitrc.d, bug #220603
208 - epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
209 -
210 - # automagic selinux :/
211 - epatch "${FILESDIR}/${PN}-3.6.0-selinux-automagic.patch"
212 -
213 - # don't load accessibility support at runtime when USE=-accessibility
214 - use accessibility || epatch "${FILESDIR}/${PN}-3.3.92.1-disable-accessibility.patch"
215 -
216 - # make gdm-fallback session the default if USE=-gnome-shell
217 - if ! use gnome-shell; then
218 - sed -e "s:'gdm-shell':'gdm-fallback':" \
219 - -i data/00-upstream-settings || die "sed failed"
220 - fi
221 -
222 - if [[ ${PV} != 9999 ]]; then
223 - mkdir -p "${S}"/m4
224 - eautoreconf
225 - fi
226 -
227 - gnome2_src_prepare
228 -}
229 -
230 -src_install() {
231 - gnome2_src_install
232 -
233 - # our x11's scripts point to /usr/bin/gdm
234 - dosym /usr/sbin/gdm-binary /usr/bin/gdm
235 -
236 - # log, etc.
237 - keepdir /var/log/gdm
238 -
239 - # gdm user's home directory
240 - keepdir /var/lib/gdm
241 - fowners gdm:gdm /var/lib/gdm
242 -
243 - # install XDG_DATA_DIRS gdm changes
244 - echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
245 - doenvd 99xdg-gdm
246 -
247 - cd "${WORKDIR}/${G_P}"
248 - local LDAP
249 - use ldap && LDAP=yes
250 - emake GDM_WELCOME="gdm-launch-environment" LDAP=${LDAP} EPREFIX="${EPREFIX}" \
251 - SYSTEMD_UNITDIR="$(systemd_get_unitdir)" DESTDIR="${D}" install
252 -}
253 -
254 -pkg_postinst() {
255 - local d ret
256 -
257 - gnome2_pkg_postinst
258 -
259 - dbus-launch dconf update || die "'dconf update' failed"
260 -
261 - # bug #436456; gdm crashes if /var/lib/gdm subdirs are not owned by gdm:gdm
262 - ret=0
263 - ebegin "Fixing ${EROOT}var/lib/gdm ownership"
264 - chown gdm:gdm "${EROOT}var/lib/gdm" || ret=1
265 - for d in "${EROOT}var/lib/gdm/"{.cache,.config,.local}; do
266 - [[ ! -e "${d}" ]] || chown -R gdm:gdm "${d}" || ret=1
267 - done
268 - eend ${ret}
269 -
270 - elog "To make GDM start at boot, edit /etc/conf.d/xdm"
271 - elog "and then execute 'rc-update add xdm default'."
272 - elog "If you already have GDM running, you will need to restart it."
273 -
274 - elog
275 - elog "GDM ignores most non-localization environment variables. If you"
276 - elog "need GDM to launch gnome-session with a particular environment,"
277 - elog "you need to use pam_env.so in /etc/pam.d/gdm-welcome; see"
278 - elog "the pam_env man page for more information."
279 - elog
280 -
281 - if has_version sys-auth/pambase[gnome-keyring]; then
282 - elog "For passwordless login to unlock your keyring, you need to set an"
283 - elog "empty password on your keyring. Use app-crypt/seahorse for that."
284 - else
285 - elog "To unlock your keyring on login, install sys-auth/pambase"
286 - elog "with USE=gnome-keyring"
287 - fi
288 -
289 - if [[ -f "/etc/X11/gdm/gdm.conf" ]]; then
290 - elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
291 - elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
292 - mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
293 - fi
294 -
295 - # https://bugzilla.redhat.com/show_bug.cgi?id=513579
296 - # Lennart says this problem is fixed, but users are still reporting problems
297 - # XXX: Do we want this elog?
298 -# if has_version "media-libs/libcanberra[pulseaudio]" ; then
299 -# elog
300 -# elog "You have media-libs/libcanberra with the pulseaudio USE flag"
301 -# elog "enabled. GDM will start a pulseaudio process to play sounds. This"
302 -# elog "process should automatically terminate when a user logs into a"
303 -# elog "desktop session. If GDM's pulseaudio fails to terminate and"
304 -# elog "causes problems for users' audio, you can prevent GDM from"
305 -# elog "starting pulseaudio by editing /var/lib/gdm/.pulse/client.conf"
306 -# elog "so it contains the following two lines:"
307 -# elog
308 -# elog "autospawn = no"
309 -# elog "daemon-binary = /bin/true"
310 -# fi
311 -}
312 -
313 -pkg_postrm() {
314 - gnome2_pkg_postrm
315 -
316 - if rc-config list default | grep -q xdm; then
317 - elog "To remove GDM from startup please execute"
318 - elog "'rc-update del xdm default'"
319 - fi
320 -}
321
322 diff --git a/gnome-base/gdm/gdm-9999.ebuild b/gnome-base/gdm/gdm-9999.ebuild
323 index fa78d1f..a6d50f2 100644
324 --- a/gnome-base/gdm/gdm-9999.ebuild
325 +++ b/gnome-base/gdm/gdm-9999.ebuild
326 @@ -2,7 +2,7 @@
327 # Distributed under the terms of the GNU General Public License v2
328 # $Header: $
329
330 -EAPI="4"
331 +EAPI="5"
332 GNOME2_LA_PUNT="yes"
333
334 inherit autotools eutils gnome2 pam systemd user
335 @@ -31,24 +31,23 @@ fi
336 # dconf, dbus and g-s-d are needed at install time for dconf update
337 # libdaemon needed for our fix-daemonize-regression.patch
338 COMMON_DEPEND="
339 + app-text/iso-codes
340 >=dev-libs/glib-2.33.2:2
341 >=x11-libs/gtk+-2.91.1:3
342 + dev-libs/libdaemon
343 >=x11-libs/pango-1.3
344 dev-libs/nspr
345 >=dev-libs/nss-3.11.1
346 - >=media-libs/fontconfig-2.5.0
347 - >=media-libs/libcanberra-0.4[gtk3]
348 - >=x11-misc/xdg-utils-1.0.2-r3
349 - >=sys-power/upower-0.9
350 - >=sys-apps/accountsservice-0.6.12
351 -
352 >=gnome-base/dconf-0.11.6
353 >=gnome-base/gnome-settings-daemon-3.1.4
354 gnome-base/gsettings-desktop-schemas
355 + >=media-libs/fontconfig-2.5.0
356 + >=media-libs/libcanberra-0.4[gtk3]
357 sys-apps/dbus
358 + >=sys-apps/accountsservice-0.6.12
359 + >=sys-power/upower-0.9
360
361 - app-text/iso-codes
362 -
363 + x11-apps/sessreg
364 x11-base/xorg-server
365 x11-libs/libXi
366 x11-libs/libXau
367 @@ -57,22 +56,21 @@ COMMON_DEPEND="
368 x11-libs/libXext
369 x11-libs/libXft
370 x11-libs/libXrandr
371 - x11-apps/sessreg
372 + >=x11-misc/xdg-utils-1.0.2-r3
373
374 virtual/pam
375 sys-auth/pambase[consolekit?,systemd?]
376
377 - dev-libs/libdaemon
378 -
379 accessibility? ( x11-libs/libXevie )
380 audit? ( sys-process/audit )
381 consolekit? ( sys-auth/consolekit[pam] )
382 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
383 plymouth? ( sys-boot/plymouth )
384 selinux? ( sys-libs/libselinux )
385 - systemd? ( >=sys-apps/systemd-39[pam] )
386 + systemd? ( >=sys-apps/systemd-186[pam] )
387 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
388 - xinerama? ( x11-libs/libXinerama )"
389 + xinerama? ( x11-libs/libXinerama )
390 +"
391 # XXX: These deps are from session and desktop files in data/ directory
392 # at-spi:1 is needed for at-spi-registryd (spawned by simple-chooser)
393 # fprintd is used via dbus by gdm-fingerprint-extension
394 @@ -98,16 +96,18 @@ RDEPEND="${COMMON_DEPEND}
395 app-crypt/coolkey
396 sys-auth/pam_pkcs11 )
397
398 - !gnome-extra/fast-user-switch-applet"
399 + !gnome-extra/fast-user-switch-applet
400 +"
401 DEPEND="${COMMON_DEPEND}
402 - test? ( >=dev-libs/check-0.9.4 )
403 - xinerama? ( x11-proto/xineramaproto )
404 app-text/docbook-xml-dtd:4.1.2
405 + >=dev-util/intltool-0.40.0
406 >=sys-devel/gettext-0.17
407 + virtual/pkgconfig
408 x11-proto/inputproto
409 x11-proto/randrproto
410 - >=dev-util/intltool-0.40.0
411 - virtual/pkgconfig"
412 + test? ( >=dev-libs/check-0.9.4 )
413 + xinerama? ( x11-proto/xineramaproto )
414 +"
415
416 if [[ ${PV} = 9999 ]]; then
417 DEPEND="${DEPEND}
418 @@ -132,33 +132,6 @@ pkg_setup() {
419 }
420
421 src_prepare() {
422 - DOCS="AUTHORS ChangeLog NEWS README TODO"
423 -
424 - # PAM is the only auth scheme supported
425 - # even though configure lists shadow and crypt
426 - # they don't have any corresponding code.
427 - # --with-at-spi-registryd-directory= needs to be passed explicitly because
428 - # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
429 - G2CONF="${G2CONF}
430 - --disable-static
431 - --localstatedir=${EPREFIX}/var
432 - --with-xdmcp=yes
433 - --enable-authentication-scheme=pam
434 - --with-pam-prefix=${EPREFIX}/etc
435 - --with-default-pam-config=none
436 - --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
437 - --with-initial-vt=7
438 - $(use_with accessibility xevie)
439 - $(use_with audit libaudit)
440 - $(use_enable ipv6)
441 - $(use_with consolekit console-kit)
442 - $(use_with plymouth)
443 - $(use_with selinux)
444 - $(use_with systemd)
445 - $(use_with tcpd tcp-wrappers)
446 - $(use_with xinerama)"
447 - [[ ${PV} != 9999 ]] && G2CONF="${G2CONF} ITSTOOL=$(type -P true)"
448 -
449 # GDM grabs VT2 instead of VT7, bug 261339, bug 284053, bug 288852
450 # XXX: We can now pass a hard-coded initial value; temporary fix
451 #epatch "${FILESDIR}/${PN}-2.32.0-fix-vt-problems.patch"
452 @@ -192,6 +165,37 @@ src_prepare() {
453 gnome2_src_prepare
454 }
455
456 +src_configure() {
457 + DOCS="AUTHORS ChangeLog NEWS README TODO"
458 +
459 + # PAM is the only auth scheme supported
460 + # even though configure lists shadow and crypt
461 + # they don't have any corresponding code.
462 + # --with-at-spi-registryd-directory= needs to be passed explicitly because
463 + # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
464 + G2CONF="${G2CONF}
465 + --disable-static
466 + --localstatedir=${EPREFIX}/var
467 + --with-xdmcp=yes
468 + --enable-authentication-scheme=pam
469 + --with-pam-prefix=${EPREFIX}/etc
470 + --with-default-pam-config=none
471 + --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
472 + --with-initial-vt=7
473 + $(use_with accessibility xevie)
474 + $(use_with audit libaudit)
475 + $(use_enable ipv6)
476 + $(use_with consolekit console-kit)
477 + $(use_with plymouth)
478 + $(use_with selinux)
479 + $(use_with systemd)
480 + $(systemd_with_unitdir)
481 + $(use_with tcpd tcp-wrappers)
482 + $(use_with xinerama)"
483 + [[ ${PV} != 9999 ]] && G2CONF="${G2CONF} ITSTOOL=$(type -P true)"
484 + gnome2_src_configure
485 +}
486 +
487 src_install() {
488 gnome2_src_install
489
490 @@ -256,23 +260,6 @@ pkg_postinst() {
491 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
492 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
493 fi
494 -
495 - # https://bugzilla.redhat.com/show_bug.cgi?id=513579
496 - # Lennart says this problem is fixed, but users are still reporting problems
497 - # XXX: Do we want this elog?
498 -# if has_version "media-libs/libcanberra[pulseaudio]" ; then
499 -# elog
500 -# elog "You have media-libs/libcanberra with the pulseaudio USE flag"
501 -# elog "enabled. GDM will start a pulseaudio process to play sounds. This"
502 -# elog "process should automatically terminate when a user logs into a"
503 -# elog "desktop session. If GDM's pulseaudio fails to terminate and"
504 -# elog "causes problems for users' audio, you can prevent GDM from"
505 -# elog "starting pulseaudio by editing /var/lib/gdm/.pulse/client.conf"
506 -# elog "so it contains the following two lines:"
507 -# elog
508 -# elog "autospawn = no"
509 -# elog "daemon-binary = /bin/true"
510 -# fi
511 }
512
513 pkg_postrm() {
514
515 diff --git a/gnome-base/gdm/metadata.xml b/gnome-base/gdm/metadata.xml
516 index 7912955..c8518f8 100644
517 --- a/gnome-base/gdm/metadata.xml
518 +++ b/gnome-base/gdm/metadata.xml
519 @@ -12,8 +12,6 @@
520 <pkg>sys-auth/fprintd</pkg></flag>
521 <flag name="gnome-shell">Enables a greeter based on GNOME Shell (uses
522 OpenGL)</flag>
523 - <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg>
524 - for introspection</flag>
525 <flag name="plymouth">Enable support for smooth transition from
526 <pkg>sys-boot/plymouth</pkg></flag>
527 <flag name="smartcard">Enables experimental smartcard authentication</flag>