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: ChangeLog gdm-3.8.4.ebuild gdm-3.6.2.ebuild gdm-3.8.0.ebuild
Date: Wed, 31 Jul 2013 03:37:16
Message-Id: 20130731033708.C21372171C@flycatcher.gentoo.org
1 tetromino 13/07/31 03:37:08
2
3 Modified: ChangeLog
4 Added: gdm-3.8.4.ebuild
5 Removed: gdm-3.6.2.ebuild gdm-3.8.0.ebuild
6 Log:
7 Version bump and fix invalid gdm-fingerprint.pam. Drop old.
8
9 (Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
10
11 Revision Changes Path
12 1.378 gnome-base/gdm/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.378&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.378&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.377&r2=1.378
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
21 retrieving revision 1.377
22 retrieving revision 1.378
23 diff -u -r1.377 -r1.378
24 --- ChangeLog 28 Jul 2013 17:35:18 -0000 1.377
25 +++ ChangeLog 31 Jul 2013 03:37:08 -0000 1.378
26 @@ -1,6 +1,13 @@
27 # ChangeLog for gnome-base/gdm
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.377 2013/07/28 17:35:18 eva Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.378 2013/07/31 03:37:08 tetromino Exp $
31 +
32 +*gdm-3.8.4 (31 Jul 2013)
33 +
34 + 31 Jul 2013; Alexandre Rostovtsev <tetromino@g.o> -gdm-3.6.2.ebuild,
35 + -gdm-3.8.0.ebuild, +gdm-3.8.4.ebuild,
36 + +files/gdm-3.8.4-fingerprint-auth.patch:
37 + Version bump and fix invalid gdm-fingerprint.pam. Drop old.
38
39 28 Jul 2013; Gilles Dartiguelongue <eva@g.o> gdm-3.8.3.1.ebuild:
40 Add missing configure switch to handle fallback mode.
41
42
43
44 1.1 gnome-base/gdm/gdm-3.8.4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.8.4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.8.4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gdm-3.8.4.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.8.4.ebuild,v 1.1 2013/07/31 03:37:08 tetromino Exp $
54
55 EAPI="5"
56 GNOME2_LA_PUNT="yes"
57
58 inherit autotools eutils gnome2 pam readme.gentoo systemd user
59
60 DESCRIPTION="GNOME Display Manager"
61 HOMEPAGE="https://live.gnome.org/GDM"
62
63 LICENSE="GPL-2+"
64 SLOT="0"
65 IUSE="accessibility audit +fallback fprint +gnome-shell +introspection ipv6 plymouth selinux smartcard tcpd test xinerama"
66 KEYWORDS="~amd64 ~arm ~ppc64 ~sh ~x86"
67
68 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
69 # nspr used by smartcard extension
70 # dconf, dbus and g-s-d are needed at install time for dconf update
71 # systemd needed for proper restarting, bug #463784
72 COMMON_DEPEND="
73 app-text/iso-codes
74 >=dev-libs/glib-2.35:2
75 >=x11-libs/gtk+-2.91.1:3
76 >=x11-libs/pango-1.3
77 dev-libs/nspr
78 >=dev-libs/nss-3.11.1
79 >=gnome-base/dconf-0.11.6
80 >=gnome-base/gnome-settings-daemon-3.1.4
81 gnome-base/gsettings-desktop-schemas
82 >=media-libs/fontconfig-2.5.0
83 >=media-libs/libcanberra-0.4[gtk3]
84 sys-apps/dbus
85 >=sys-apps/accountsservice-0.6.12
86 >=sys-power/upower-0.9
87
88 x11-apps/sessreg
89 x11-base/xorg-server
90 x11-libs/libXi
91 x11-libs/libXau
92 x11-libs/libX11
93 x11-libs/libXdmcp
94 x11-libs/libXext
95 x11-libs/libXft
96 x11-libs/libXrandr
97 >=x11-misc/xdg-utils-1.0.2-r3
98
99 virtual/pam
100 >=sys-apps/systemd-186[pam]
101 sys-auth/pambase[systemd]
102
103 accessibility? ( x11-libs/libXevie )
104 audit? ( sys-process/audit )
105 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
106 plymouth? ( sys-boot/plymouth )
107 selinux? ( sys-libs/libselinux )
108 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
109 xinerama? ( x11-libs/libXinerama )
110 "
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 fallback? ( x11-wm/metacity )
126 fprint? (
127 sys-auth/fprintd
128 sys-auth/pam_fprint )
129 gnome-shell? ( >=gnome-base/gnome-shell-3.1.90 )
130 !gnome-shell? ( x11-wm/metacity )
131 smartcard? (
132 app-crypt/coolkey
133 sys-auth/pam_pkcs11 )
134
135 !gnome-extra/fast-user-switch-applet
136 "
137 DEPEND="${COMMON_DEPEND}
138 app-text/docbook-xml-dtd:4.1.2
139 >=dev-util/intltool-0.40.0
140 >=sys-devel/gettext-0.17
141 virtual/pkgconfig
142 x11-proto/inputproto
143 x11-proto/randrproto
144 test? ( >=dev-libs/check-0.9.4 )
145 xinerama? ( x11-proto/xineramaproto )
146 "
147
148 DOC_CONTENTS="
149 To make GDM start at boot, run:\n
150 # systemctl enable gdm.service\n
151 \n
152 For passwordless login to unlock your keyring, you need to install
153 sys-auth/pambase with USE=gnome-keyring and set an empty password
154 on your keyring. Use app-crypt/seahorse for that.
155 "
156
157 pkg_setup() {
158 enewgroup gdm
159 enewgroup video # Just in case it hasn't been created yet
160 enewuser gdm -1 -1 /var/lib/gdm gdm,video
161
162 # For compatibility with certain versions of nvidia-drivers, etc., need to
163 # ensure that gdm user is in the video group
164 if ! egetent group video | grep -q gdm; then
165 # FIXME XXX: is this at all portable, ldap-safe, etc.?
166 # XXX: egetent does not have a 1-argument form, so we can't use it to
167 # get the list of gdm's groups
168 local g=$(groups gdm)
169 elog "Adding user gdm to video group"
170 usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
171 fi
172 }
173
174 src_prepare() {
175 # make custom session work, bug #216984
176 epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
177
178 # ssh-agent handling must be done at xinitrc.d, bug #220603
179 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
180
181 # Fix automagic selinux, upstream bug #704188
182 epatch "${FILESDIR}/${PN}-3.6.0-selinux-automagic.patch"
183
184 # Gentoo does not have a fingerprint-auth pam stack
185 epatch "${FILESDIR}/${PN}-3.8.4-fingerprint-auth.patch"
186
187 # make gdm-fallback session the default if USE=-gnome-shell
188 if ! use gnome-shell; then
189 sed -e "s:'gdm-shell':'gdm-fallback':" \
190 -i data/00-upstream-settings || die "sed failed"
191 fi
192
193 # don't load accessibility support at runtime when USE=-accessibility
194 use accessibility || epatch "${FILESDIR}/${PN}-3.7.3.1-disable-accessibility.patch"
195
196 mkdir -p "${S}"/m4
197 sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
198 eautoreconf
199
200 gnome2_src_prepare
201 }
202
203 src_configure() {
204 # PAM is the only auth scheme supported
205 # even though configure lists shadow and crypt
206 # they don't have any corresponding code.
207 # --with-at-spi-registryd-directory= needs to be passed explicitly because
208 # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
209 gnome2_src_configure \
210 --with-run-dir=/run/gdm \
211 --localstatedir="${EPREFIX}"/var \
212 --disable-static \
213 --with-xdmcp=yes \
214 --enable-authentication-scheme=pam \
215 --with-default-pam-config=exherbo \
216 --with-at-spi-registryd-directory="${EPREFIX}"/usr/libexec \
217 --with-initial-vt=7 \
218 --with-systemd \
219 --enable-systemd-journal \
220 --without-console-kit \
221 $(use_with accessibility xevie) \
222 $(use_with audit libaudit) \
223 $(use_enable fallback fallback-greeter) \
224 $(use_enable ipv6) \
225 $(use_with plymouth) \
226 $(use_with selinux) \
227 $(systemd_with_unitdir) \
228 $(use_with tcpd tcp-wrappers) \
229 $(use_with xinerama) \
230 ITSTOOL=$(type -P true)
231 }
232
233 src_install() {
234 gnome2_src_install
235
236 insinto /etc/X11/xinit/xinitrc.d
237 newins "${FILESDIR}/49-keychain-r1" 49-keychain
238 newins "${FILESDIR}/50-ssh-agent-r1" 50-ssh-agent
239
240 # log, etc.
241 keepdir /var/log/gdm
242
243 # gdm user's home directory
244 keepdir /var/lib/gdm
245 fowners gdm:gdm /var/lib/gdm
246
247 # install XDG_DATA_DIRS gdm changes
248 echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
249 doenvd 99xdg-gdm
250
251 readme.gentoo_create_doc
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 readme.gentoo_print_elog
271
272 if [[ -f "/etc/X11/gdm/gdm.conf" ]]; then
273 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
274 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
275 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
276 fi
277
278 if ! systemd_is_booted; then
279 ewarn "${PN} needs Systemd to be *running* for working"
280 ewarn "properly. Please follow the this guide to migrate:"
281 ewarn "http://wiki.gentoo.org/wiki/Systemd"
282 fi
283 }