Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gdm: gdm-3.8.0.ebuild ChangeLog
Date: Thu, 28 Mar 2013 22:47:38
Message-Id: 20130328224735.6D54C2171D@flycatcher.gentoo.org
1 pacho 13/03/28 22:47:35
2
3 Modified: ChangeLog
4 Added: gdm-3.8.0.ebuild
5 Log:
6 Version bump for Gnome 3.8
7
8 (Portage version: 2.1.11.58/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.370 gnome-base/gdm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.370&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.370&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.369&r2=1.370
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
20 retrieving revision 1.369
21 retrieving revision 1.370
22 diff -u -r1.369 -r1.370
23 --- ChangeLog 14 Mar 2013 04:32:36 -0000 1.369
24 +++ ChangeLog 28 Mar 2013 22:47:35 -0000 1.370
25 @@ -1,6 +1,13 @@
26 # ChangeLog for gnome-base/gdm
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.369 2013/03/14 04:32:36 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.370 2013/03/28 22:47:35 pacho Exp $
30 +
31 +*gdm-3.8.0 (28 Mar 2013)
32 +
33 + 28 Mar 2013; Pacho Ramos <pacho@g.o>
34 + +files/gdm-3.7.3.1-disable-accessibility.patch,
35 + +files/gdm-3.7.90-fix-daemonize-regression.patch, +gdm-3.8.0.ebuild:
36 + Version bump for Gnome 3.8
37
38 14 Mar 2013; Alexandre Rostovtsev <tetromino@g.o> gdm-3.6.2.ebuild:
39 Remove unnecessary dependency on consolekit[pam] and pam[consolekit], thanks
40
41
42
43 1.1 gnome-base/gdm/gdm-3.8.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.8.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.8.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gdm-3.8.0.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.8.0.ebuild,v 1.1 2013/03/28 22:47:35 pacho Exp $
53
54 EAPI="5"
55 GNOME2_LA_PUNT="yes"
56
57 inherit autotools eutils gnome2 pam systemd user
58
59 G_PV="2012.09.25"
60 G_P="gdm-gentoo-${G_PV}"
61 DESCRIPTION="GNOME Display Manager"
62 HOMEPAGE="https://live.gnome.org/GDM"
63 SRC_URI="${SRC_URI}
64 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${G_P}.tar.xz"
65
66 LICENSE="GPL-2+"
67 SLOT="0"
68 IUSE="accessibility audit +consolekit +fallback fprint +gnome-shell +introspection ipv6 ldap plymouth selinux smartcard systemd tcpd test xinerama"
69 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
70
71 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
72 # nspr used by smartcard extension
73 # dconf, dbus and g-s-d are needed at install time for dconf update
74 # libdaemon needed for our fix-daemonize-regression.patch
75 COMMON_DEPEND="
76 app-text/iso-codes
77 >=dev-libs/glib-2.35:2
78 >=x11-libs/gtk+-2.91.1:3
79 dev-libs/libdaemon
80 >=x11-libs/pango-1.3
81 dev-libs/nspr
82 >=dev-libs/nss-3.11.1
83 >=gnome-base/dconf-0.11.6
84 >=gnome-base/gnome-settings-daemon-3.1.4
85 gnome-base/gsettings-desktop-schemas
86 >=media-libs/fontconfig-2.5.0
87 >=media-libs/libcanberra-0.4[gtk3]
88 sys-apps/dbus
89 >=sys-apps/accountsservice-0.6.12
90 >=sys-power/upower-0.9
91
92 x11-apps/sessreg
93 x11-base/xorg-server
94 x11-libs/libXi
95 x11-libs/libXau
96 x11-libs/libX11
97 x11-libs/libXdmcp
98 x11-libs/libXext
99 x11-libs/libXft
100 x11-libs/libXrandr
101 >=x11-misc/xdg-utils-1.0.2-r3
102
103 virtual/pam
104 sys-auth/pambase[consolekit?,systemd?]
105
106 accessibility? ( x11-libs/libXevie )
107 audit? ( sys-process/audit )
108 consolekit? ( >=sys-auth/consolekit-0.4.5_p20120320-r2[pam] )
109 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
110 plymouth? ( sys-boot/plymouth )
111 selinux? ( sys-libs/libselinux )
112 systemd? ( >=sys-apps/systemd-186[pam] )
113 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
114 xinerama? ( x11-libs/libXinerama )
115 "
116 # XXX: These deps are from session and desktop files in data/ directory
117 # at-spi:1 is needed for at-spi-registryd (spawned by simple-chooser)
118 # fprintd is used via dbus by gdm-fingerprint-extension
119 # gnome-session-3.6 needed to avoid freezing with orca
120 RDEPEND="${COMMON_DEPEND}
121 >=gnome-base/gnome-session-3.6
122 x11-apps/xhost
123 x11-themes/gnome-icon-theme-symbolic
124
125 accessibility? (
126 app-accessibility/gnome-mag
127 app-accessibility/gok
128 app-accessibility/orca
129 gnome-extra/at-spi:1 )
130 consolekit? ( gnome-extra/polkit-gnome )
131 fallback? ( x11-wm/metacity )
132 fprint? (
133 sys-auth/fprintd
134 sys-auth/pam_fprint )
135 gnome-shell? ( >=gnome-base/gnome-shell-3.1.90 )
136 !gnome-shell? ( x11-wm/metacity )
137 smartcard? (
138 app-crypt/coolkey
139 sys-auth/pam_pkcs11 )
140
141 !gnome-extra/fast-user-switch-applet
142 "
143 DEPEND="${COMMON_DEPEND}
144 app-text/docbook-xml-dtd:4.1.2
145 >=dev-util/intltool-0.40.0
146 >=sys-devel/gettext-0.17
147 virtual/pkgconfig
148 x11-proto/inputproto
149 x11-proto/randrproto
150 test? ( >=dev-libs/check-0.9.4 )
151 xinerama? ( x11-proto/xineramaproto )
152 "
153
154 pkg_setup() {
155 enewgroup gdm
156 enewgroup video # Just in case it hasn't been created yet
157 enewuser gdm -1 -1 /var/lib/gdm gdm,video
158
159 # For compatibility with certain versions of nvidia-drivers, etc., need to
160 # ensure that gdm user is in the video group
161 if ! egetent group video | grep -q gdm; then
162 # FIXME XXX: is this at all portable, ldap-safe, etc.?
163 # XXX: egetent does not have a 1-argument form, so we can't use it to
164 # get the list of gdm's groups
165 local g=$(groups gdm)
166 elog "Adding user gdm to video group"
167 usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
168 fi
169 }
170
171 src_prepare() {
172 # GDM grabs VT2 instead of VT7, bug 261339, bug 284053, bug 288852
173 # XXX: We can now pass a hard-coded initial value; temporary
174 # FIXME
175 # epatch "${FILESDIR}/${PN}-2.32.0-fix-vt-problems.patch"
176
177 # daemonize so that the boot process can continue, bug #236701
178 epatch "${FILESDIR}/${PN}-3.7.90-fix-daemonize-regression.patch"
179
180 # make custom session work, bug #216984
181 epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
182
183 # ssh-agent handling must be done at xinitrc.d, bug #220603
184 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
185
186 # automagic selinux :/
187 epatch "${FILESDIR}/${PN}-3.6.0-selinux-automagic.patch"
188
189 # make gdm-fallback session the default if USE=-gnome-shell
190 if ! use gnome-shell; then
191 sed -e "s:'gdm-shell':'gdm-fallback':" \
192 -i data/00-upstream-settings || die "sed failed"
193 fi
194
195 # don't load accessibility support at runtime when USE=-accessibility
196 use accessibility || epatch "${FILESDIR}/${PN}-3.7.3.1-disable-accessibility.patch"
197
198 mkdir -p "${S}"/m4
199 eautoreconf
200
201 gnome2_src_prepare
202 }
203
204 src_configure() {
205 # PAM is the only auth scheme supported
206 # even though configure lists shadow and crypt
207 # they don't have any corresponding code.
208 # --with-at-spi-registryd-directory= needs to be passed explicitly because
209 # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
210 G2CONF="${G2CONF}
211 --disable-static
212 --localstatedir=${EPREFIX}/var
213 --with-xdmcp=yes
214 --enable-authentication-scheme=pam
215 --with-pam-prefix=${EPREFIX}/etc
216 --with-default-pam-config=none
217 --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
218 --with-consolekit-directory=${EPREFIX}/usr/lib/ConsoleKit
219 --with-initial-vt=7
220 $(use_with accessibility xevie)
221 $(use_with audit libaudit)
222 $(use_enable ipv6)
223 $(use_with consolekit console-kit)
224 $(use_with plymouth)
225 $(use_with selinux)
226 $(use_with systemd)
227 $(systemd_with_unitdir)
228 $(use_with tcpd tcp-wrappers)
229 $(use_with xinerama)
230 ITSTOOL=$(type -P true)"
231 gnome2_src_configure
232 }
233
234 src_install() {
235 gnome2_src_install
236
237 # our x11's scripts point to /usr/bin/gdm
238 dosym /usr/sbin/gdm /usr/bin/gdm
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 cd "${WORKDIR}/${G_P}"
252 local LDAP
253 use ldap && LDAP=yes
254 emake GDM_WELCOME="gdm-launch-environment" LDAP=${LDAP} EPREFIX="${EPREFIX}" \
255 SYSTEMD_UNITDIR="$(systemd_get_unitdir)" DESTDIR="${D}" install
256 }
257
258 pkg_postinst() {
259 local d ret
260
261 gnome2_pkg_postinst
262
263 dbus-launch dconf update || die "'dconf update' failed"
264
265 # bug #436456; gdm crashes if /var/lib/gdm subdirs are not owned by gdm:gdm
266 ret=0
267 ebegin "Fixing ${EROOT}var/lib/gdm ownership"
268 chown gdm:gdm "${EROOT}var/lib/gdm" || ret=1
269 for d in "${EROOT}var/lib/gdm/"{.cache,.config,.local}; do
270 [[ ! -e "${d}" ]] || chown -R gdm:gdm "${d}" || ret=1
271 done
272 eend ${ret}
273
274 elog "To make GDM start at boot, edit /etc/conf.d/xdm"
275 elog "and then execute 'rc-update add xdm default'."
276 elog "If you already have GDM running, you will need to restart it."
277
278 elog
279 elog "GDM ignores most non-localization environment variables. If you"
280 elog "need GDM to launch gnome-session with a particular environment,"
281 elog "you need to use pam_env.so in /etc/pam.d/gdm-welcome; see"
282 elog "the pam_env man page for more information."
283 elog
284
285 if has_version sys-auth/pambase[gnome-keyring]; then
286 elog "For passwordless login to unlock your keyring, you need to set an"
287 elog "empty password on your keyring. Use app-crypt/seahorse for that."
288 else
289 elog "To unlock your keyring on login, install sys-auth/pambase"
290 elog "with USE=gnome-keyring"
291 fi
292
293 if [[ -f "/etc/X11/gdm/gdm.conf" ]]; then
294 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
295 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
296 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
297 fi
298 }
299
300 pkg_postrm() {
301 gnome2_pkg_postrm
302
303 if rc-config list default | grep -q xdm; then
304 elog "To remove GDM from startup please execute"
305 elog "'rc-update del xdm default'"
306 fi
307 }