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.4.1-r3.ebuild gdm-3.4.1-r2.ebuild
Date: Sat, 29 Sep 2012 06:05:25
Message-Id: 20120929060516.54D5E21600@flycatcher.gentoo.org
1 tetromino 12/09/29 06:05:16
2
3 Modified: ChangeLog
4 Added: gdm-3.4.1-r3.ebuild
5 Removed: gdm-3.4.1-r2.ebuild
6 Log:
7 Do not install old /etc/pam.d/gdm file, it blocks sys-libs/pam from emerging (bug #435042, thanks to Martin Wegner).
8
9 (Portage version: 2.2.0_alpha132/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.357 gnome-base/gdm/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.357&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.357&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.356&r2=1.357
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
21 retrieving revision 1.356
22 retrieving revision 1.357
23 diff -u -r1.356 -r1.357
24 --- ChangeLog 27 Sep 2012 08:54:42 -0000 1.356
25 +++ ChangeLog 29 Sep 2012 06:05:16 -0000 1.357
26 @@ -1,6 +1,13 @@
27 # ChangeLog for gnome-base/gdm
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.356 2012/09/27 08:54:42 tetromino Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.357 2012/09/29 06:05:16 tetromino Exp $
31 +
32 +*gdm-3.4.1-r3 (29 Sep 2012)
33 +
34 + 29 Sep 2012; Alexandre Rostovtsev <tetromino@g.o>
35 + -gdm-3.4.1-r2.ebuild, +gdm-3.4.1-r3.ebuild:
36 + Do not install old /etc/pam.d/gdm file, it blocks sys-libs/pam from emerging
37 + (bug #435042, thanks to Martin Wegner).
38
39 *gdm-3.4.1-r2 (27 Sep 2012)
40
41
42
43
44 1.1 gnome-base/gdm/gdm-3.4.1-r3.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.4.1-r3.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.4.1-r3.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gdm-3.4.1-r3.ebuild
50 ===================================================================
51 # Copyright 1999-2012 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.4.1-r3.ebuild,v 1.1 2012/09/29 06:05:16 tetromino Exp $
54
55 EAPI="4"
56 GNOME2_LA_PUNT="yes"
57
58 inherit autotools eutils gnome2 pam systemd user
59
60 G_PV="2012.09.25"
61 G_P="gdm-gentoo-${G_PV}"
62 DESCRIPTION="GNOME Display Manager"
63 HOMEPAGE="https://live.gnome.org/GDM"
64 SRC_URI="${SRC_URI}
65 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${G_P}.tar.xz"
66
67 LICENSE="GPL-2+"
68 SLOT="0"
69 KEYWORDS="~amd64 ~sh ~x86"
70
71 IUSE="accessibility audit +consolekit +fallback fprint +gnome-shell +introspection ipv6 ldap plymouth selinux smartcard systemd tcpd test xinerama +xklavier"
72
73 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
74 # nspr used by smartcard extension
75 # dconf, dbus and g-s-d are needed at install time for dconf update
76 COMMON_DEPEND="
77 >=dev-libs/dbus-glib-0.74
78 >=dev-libs/glib-2.29.3:2
79 >=x11-libs/gtk+-2.91.1:3
80 >=x11-libs/pango-1.3
81 dev-libs/nspr
82 >=dev-libs/nss-3.11.1
83 >=media-libs/fontconfig-2.5.0
84 >=media-libs/libcanberra-0.4[gtk3]
85 >=x11-misc/xdg-utils-1.0.2-r3
86 >=sys-power/upower-0.9
87 >=sys-apps/accountsservice-0.6.12
88
89 >=gnome-base/dconf-0.11.6
90 >=gnome-base/gnome-settings-daemon-3.1.4
91 gnome-base/gsettings-desktop-schemas
92 sys-apps/dbus
93
94 app-text/iso-codes
95
96 x11-base/xorg-server
97 x11-libs/libXi
98 x11-libs/libXau
99 x11-libs/libX11
100 x11-libs/libXdmcp
101 x11-libs/libXext
102 x11-libs/libXft
103 x11-libs/libXrandr
104 x11-apps/sessreg
105
106 virtual/pam
107 sys-auth/pambase[consolekit?,systemd?]
108
109 accessibility? ( x11-libs/libXevie )
110 audit? ( sys-process/audit )
111 consolekit? ( sys-auth/consolekit[pam] )
112 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
113 plymouth? ( sys-boot/plymouth )
114 selinux? ( sys-libs/libselinux )
115 systemd? ( >=sys-apps/systemd-39[pam] )
116 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
117 xinerama? ( x11-libs/libXinerama )
118 xklavier? ( >=x11-libs/libxklavier-4 )"
119 DEPEND="${COMMON_DEPEND}
120 test? ( >=dev-libs/check-0.9.4 )
121 xinerama? ( x11-proto/xineramaproto )
122 app-text/docbook-xml-dtd:4.1.2
123 sys-devel/gettext
124 x11-proto/inputproto
125 x11-proto/randrproto
126 >=dev-util/intltool-0.40.0
127 >=app-text/scrollkeeper-0.1.4
128 >=app-text/gnome-doc-utils-0.3.2
129 virtual/pkgconfig"
130 # XXX: These deps are from session and desktop files in data/ directory
131 # at-spi:1 is needed for at-spi-registryd (spawned by simple-chooser)
132 # fprintd is used via dbus by gdm-fingerprint-extension
133 RDEPEND="${COMMON_DEPEND}
134 >=gnome-base/gnome-session-2.91.92
135 x11-apps/xhost
136 x11-themes/gnome-icon-theme-symbolic
137
138 accessibility? (
139 app-accessibility/gnome-mag
140 app-accessibility/gok
141 app-accessibility/orca
142 gnome-extra/at-spi:1 )
143 consolekit? ( gnome-extra/polkit-gnome )
144 fallback? ( x11-wm/metacity )
145 fprint? (
146 sys-auth/fprintd
147 sys-auth/pam_fprint )
148 gnome-shell? ( >=gnome-base/gnome-shell-3.1.90 )
149 !gnome-shell? ( x11-wm/metacity )
150 smartcard? (
151 app-crypt/coolkey
152 sys-auth/pam_pkcs11 )
153
154 !gnome-extra/fast-user-switch-applet"
155
156 pkg_setup() {
157 DOCS="AUTHORS ChangeLog NEWS README TODO"
158
159 # PAM is the only auth scheme supported
160 # even though configure lists shadow and crypt
161 # they don't have any corresponding code.
162 # --with-at-spi-registryd-directory= needs to be passed explicitly because
163 # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
164 G2CONF="${G2CONF}
165 --disable-static
166 --localstatedir=${EPREFIX}/var
167 --with-xdmcp=yes
168 --enable-authentication-scheme=pam
169 --with-pam-prefix=${EPREFIX}/etc
170 --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
171 $(use_with accessibility xevie)
172 $(use_with audit libaudit)
173 $(use_enable ipv6)
174 $(use_enable xklavier libxklavier)
175 $(use_with consolekit console-kit)
176 $(use_with plymouth)
177 $(use_with selinux)
178 $(use_with systemd)
179 $(use_with tcpd tcp-wrappers)
180 $(use_with xinerama)"
181
182 enewgroup gdm
183 enewgroup video # Just in case it hasn't been created yet
184 enewuser gdm -1 -1 /var/lib/gdm gdm,video
185
186 # For compatibility with certain versions of nvidia-drivers, etc., need to
187 # ensure that gdm user is in the video group
188 if ! egetent group video | grep -q gdm; then
189 # FIXME XXX: is this at all portable, ldap-safe, etc.?
190 # XXX: egetent does not have a 1-argument form, so we can't use it to
191 # get the list of gdm's groups
192 local g=$(groups gdm)
193 elog "Adding user gdm to video group"
194 usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
195 fi
196 }
197
198 src_prepare() {
199 # remove unneeded linker directive for selinux, bug #41022
200 epatch "${FILESDIR}/${PN}-2.32.0-selinux-remove-attr.patch"
201
202 # daemonize so that the boot process can continue, bug #236701
203 epatch "${FILESDIR}/${PN}-2.32.0-fix-daemonize-regression.patch"
204
205 # GDM grabs VT2 instead of VT7, bug 261339, bug 284053, bug 288852
206 epatch "${FILESDIR}/${PN}-2.32.0-fix-vt-problems.patch"
207
208 # make custom session work, bug #216984
209 epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
210
211 # ssh-agent handling must be done at xinitrc.d, bug #220603
212 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
213
214 # fix libxklavier automagic support
215 epatch "${FILESDIR}/${PN}-2.32.0-automagic-libxklavier-support.patch"
216
217 # plymouth support (in next release)
218 epatch "${FILESDIR}/${P}-save-root-window.patch"
219 epatch "${FILESDIR}/${P}-plymouth.patch"
220
221 # dconf-0.13.x compatibility (next release)
222 epatch "${FILESDIR}/${P}-dconf-0.13.patch"
223
224 # don't load accessibility support at runtime when USE=-accessibility
225 use accessibility || epatch "${FILESDIR}/${PN}-3.3.92.1-disable-accessibility.patch"
226
227 # make gdm-fallback session the default if USE=-gnome-shell
228 if ! use gnome-shell; then
229 sed -e "s:'gdm-shell':'gdm-fallback':" \
230 -i data/00-upstream-settings || die "sed failed"
231 fi
232
233 mkdir -p "${S}"/m4
234 eautoreconf
235
236 gnome2_src_prepare
237 }
238
239 src_install() {
240 gnome2_src_install
241
242 # gdm-binary should be gdm to work with our init (#5598)
243 rm -f "${ED}/usr/sbin/gdm"
244 ln -sfn /usr/sbin/gdm-binary "${ED}/usr/sbin/gdm"
245 # our x11's scripts point to /usr/bin/gdm
246 ln -sfn /usr/sbin/gdm-binary "${ED}/usr/bin/gdm"
247
248 # log, etc.
249 keepdir /var/log/gdm
250
251 # install XDG_DATA_DIRS gdm changes
252 echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
253 doenvd 99xdg-gdm
254
255 # pam.d/gdm is no longer needed, and can block pam-1.1.6, #435042
256 rm -v "${ED}etc/pam.d/gdm" || die
257
258 cd "${WORKDIR}/${G_P}"
259 local LDAP
260 use ldap && LDAP=yes
261 emake LDAP=${LDAP} EPREFIX="${EPREFIX}" \
262 SYSTEMD_UNITDIR="$(systemd_get_unitdir)" DESTDIR="${D}" install
263 }
264
265 pkg_postinst() {
266 gnome2_pkg_postinst
267
268 dbus-launch dconf update || die "'dconf update' failed"
269
270 ewarn
271 ewarn "This is an EXPERIMENTAL release, please bear with its bugs and"
272 ewarn "visit us on #gentoo-desktop if you have problems."
273 ewarn
274
275 elog "To make GDM start at boot, edit /etc/conf.d/xdm"
276 elog "and then execute 'rc-update add xdm default'."
277 elog "If you already have GDM running, you will need to restart it."
278
279 elog
280 elog "GDM ignores most non-localization environment variables. If you"
281 elog "need GDM to launch gnome-session with a particular environment,"
282 elog "you need to use pam_env.so in /etc/pam.d/gdm-welcome; see"
283 elog "the pam_env man page for more information."
284 elog
285
286 if has_version sys-auth/pambase[gnome-keyring]; then
287 elog "For passwordless login to unlock your keyring, you need to set an"
288 elog "empty password on your keyring. Use app-crypt/seahorse for that."
289 else
290 elog "To unlock your keyring on login, install sys-auth/pambase"
291 elog "with USE=gnome-keyring"
292 fi
293
294 if [[ -f "/etc/X11/gdm/gdm.conf" ]]; then
295 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
296 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
297 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
298 fi
299
300 # https://bugzilla.redhat.com/show_bug.cgi?id=513579
301 # Lennart says this problem is fixed, but users are still reporting problems
302 # XXX: Do we want this elog?
303 # if has_version "media-libs/libcanberra[pulseaudio]" ; then
304 # elog
305 # elog "You have media-libs/libcanberra with the pulseaudio USE flag"
306 # elog "enabled. GDM will start a pulseaudio process to play sounds. This"
307 # elog "process should automatically terminate when a user logs into a"
308 # elog "desktop session. If GDM's pulseaudio fails to terminate and"
309 # elog "causes problems for users' audio, you can prevent GDM from"
310 # elog "starting pulseaudio by editing /var/lib/gdm/.pulse/client.conf"
311 # elog "so it contains the following two lines:"
312 # elog
313 # elog "autospawn = no"
314 # elog "daemon-binary = /bin/true"
315 # fi
316 }
317
318 pkg_postrm() {
319 gnome2_pkg_postrm
320
321 if rc-config list default | grep -q xdm; then
322 elog "To remove GDM from startup please execute"
323 elog "'rc-update del xdm default'"
324 fi
325 }