Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gdm/
Date: Sat, 26 Mar 2022 18:01:57
Message-Id: 1648317707.58405d6ba79d67c8202ae5a50ab6038c0baca7cb.mattst88@gentoo
1 commit: 58405d6ba79d67c8202ae5a50ab6038c0baca7cb
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 26 16:57:50 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 26 18:01:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58405d6b
7
8 gnome-base/gdm: Version bump to 42.0
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 gnome-base/gdm/Manifest | 1 +
13 gnome-base/gdm/gdm-42.0.ebuild | 208 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 209 insertions(+)
15
16 diff --git a/gnome-base/gdm/Manifest b/gnome-base/gdm/Manifest
17 index 8306d1926fa6..c98e3e2ad584 100644
18 --- a/gnome-base/gdm/Manifest
19 +++ b/gnome-base/gdm/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gdm-41.3.tar.xz 807452 BLAKE2B ff6a264220c2ddc60c21fb767154bfdc2844a177e4043749cc393387b116865f5b9dc56c4ce996e83c0a258370f59b7fd1865f455aa67258671ae0bae8671997 SHA512 71a93eef02fccee22ca4f90e3217431923da2b1ac4f5995ff7b64c9b4cac839f4695f4122d255407b570635d34e86e233fa7e4d5d22a8d8185ccfa8ad20f83aa
22 +DIST gdm-42.0.tar.xz 811200 BLAKE2B 98f39fc4e80bb7160b7da57d5c606ce1fa2f66ea1ab817c82c6db7328df60b91a1e9a829f67a716c67a5e5ada9f9356e4c82e40065b2692f32aa80c545adc616 SHA512 e07a4e9233573069dd5628e7b7e6dbe462e90bd8f30267d3faf1cbe3dcb8b990afe3ad6af1edf5f0ec689c6eb245aaacd4e8565a7e4feea34cc754d43904daaa
23 DIST tango-gentoo-v1.1.tar.gz 29322 BLAKE2B 83fa2bf37727e60851dd679054fe1b153ebfea58c9a9a40f891f7d68d3b047b02e8effa1d1b4e08d64500a2072ce7200f159c92a352da7124de27e1b05bb6027 SHA512 87d47ddab68361db6d99866c51705dcb3e198f8345a1096859acf2c6cca5099dd23c7fb30d124f52c4933ea38fd45fadffbbe6ecbdfa84f5b60938a4824f9045
24
25 diff --git a/gnome-base/gdm/gdm-42.0.ebuild b/gnome-base/gdm/gdm-42.0.ebuild
26 new file mode 100644
27 index 000000000000..a3c6187c29fa
28 --- /dev/null
29 +++ b/gnome-base/gdm/gdm-42.0.ebuild
30 @@ -0,0 +1,208 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit desktop gnome2 meson pam readme.gentoo-r1 systemd udev
37 +
38 +DESCRIPTION="GNOME Display Manager for managing graphical display servers and user logins"
39 +HOMEPAGE="https://wiki.gnome.org/Projects/GDM"
40 +
41 +SRC_URI="${SRC_URI}
42 + branding? ( https://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz )
43 +"
44 +
45 +LICENSE="
46 + GPL-2+
47 + branding? ( CC-BY-SA-4.0 )
48 +"
49 +
50 +SLOT="0"
51 +
52 +IUSE="accessibility audit bluetooth-sound branding elogind fprint plymouth selinux systemd tcpd test wayland"
53 +RESTRICT="!test? ( test )"
54 +REQUIRED_USE="^^ ( elogind systemd )"
55 +
56 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
57 +
58 +# dconf, dbus and g-s-d are needed at install time for dconf update
59 +# keyutils is automagic dep that makes autologin unlock login keyring when all the passwords match (disk encryption, user pw and login keyring)
60 +# dbus-run-session used at runtime
61 +COMMON_DEPEND="
62 + virtual/udev
63 + >=dev-libs/libgudev-232:=
64 + >=dev-libs/glib-2.56:2
65 + >=x11-libs/gtk+-2.91.1:3
66 + >=media-libs/libcanberra-0.4[gtk3]
67 + >=sys-apps/accountsservice-0.6.35
68 + x11-libs/libxcb
69 + sys-apps/keyutils:=
70 + selinux? ( sys-libs/libselinux )
71 +
72 + x11-libs/libX11
73 + x11-libs/libXau
74 + x11-base/xorg-server[-minimal]
75 + x11-libs/libXdmcp
76 + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
77 +
78 + systemd? ( >=sys-apps/systemd-186:0=[pam] )
79 + elogind? ( >=sys-auth/elogind-239.3[pam] )
80 +
81 + plymouth? ( sys-boot/plymouth )
82 + audit? ( sys-process/audit )
83 +
84 + sys-libs/pam
85 + sys-auth/pambase[elogind?,systemd?]
86 +
87 + >=gnome-base/dconf-0.20
88 + >=gnome-base/gnome-settings-daemon-3.1.4
89 + gnome-base/gsettings-desktop-schemas
90 + sys-apps/dbus
91 +
92 + >=x11-misc/xdg-utils-1.0.2-r3
93 +
94 + >=dev-libs/gobject-introspection-0.9.12:=
95 +"
96 +# XXX: These deps are from session and desktop files in data/ directory
97 +# fprintd is used via dbus by gdm-fingerprint-extension
98 +RDEPEND="${COMMON_DEPEND}
99 + acct-group/gdm
100 + acct-user/gdm
101 + >=gnome-base/gnome-session-3.6
102 + >=gnome-base/gnome-shell-3.1.90
103 + x11-apps/xhost
104 +
105 + accessibility? (
106 + >=app-accessibility/orca-3.10
107 + gnome-extra/mousetweaks
108 + )
109 + fprint? ( sys-auth/fprintd[pam] )
110 +"
111 +DEPEND="${COMMON_DEPEND}
112 + x11-base/xorg-proto
113 +"
114 +BDEPEND="
115 + app-text/docbook-xml-dtd:4.1.2
116 + dev-util/gdbus-codegen
117 + dev-util/glib-utils
118 + dev-util/itstool
119 + >=gnome-base/dconf-0.20
120 + >=sys-devel/gettext-0.19.8
121 + virtual/pkgconfig
122 + test? ( >=dev-libs/check-0.9.4 )
123 + app-text/yelp-tools
124 +"
125 +
126 +DOC_CONTENTS="
127 + To make GDM start at boot with systemd, run:\n
128 + # systemctl enable gdm.service\n
129 + \n
130 + To make GDM start at boot with OpenRC, edit /etc/conf.d to have
131 + DISPLAYMANAGER=\"gdm\" and enable the xdm service:\n
132 + # rc-update add xdm
133 + \n
134 + For passwordless login to unlock your keyring, you need to install
135 + sys-auth/pambase with USE=gnome-keyring and set an empty password
136 + on your keyring. Use app-crypt/seahorse for that.\n
137 + \n
138 + You may need to install app-crypt/coolkey and sys-auth/pam_pkcs11
139 + for smartcard support
140 +"
141 +
142 +PATCHES=(
143 + # Add elogind support
144 + "${FILESDIR}/${PN}-40.0-meson-allow-building-with-elogind.patch"
145 +)
146 +
147 +src_prepare() {
148 + default
149 +
150 + # Show logo when branding is enabled
151 + use branding && eapply "${FILESDIR}/${PN}-3.30.3-logo.patch"
152 +}
153 +
154 +src_configure() {
155 + # --with-initial-vt=7 conflicts with plymouth, bug #453392
156 + # gdm-3.30 now reaps (stops) the login screen when the login VT isn't active, which
157 + # saves on memory. However this means if we don't start on VT1, gdm doesn't start up
158 + # before user manually goes to VT7. Thus as-is we can not keep gdm away from VT1,
159 + # so lets try always having it in VT1 and see if that is an issue for people before
160 + # hacking up workarounds for the initial start case.
161 + local emesonargs=(
162 + --localstatedir /var
163 +
164 + -Ddefault-pam-config=exherbo
165 + -Dgdm-xsession=true
166 + -Dgroup=gdm
167 + -Dipv6=true
168 + $(meson_feature audit libaudit)
169 + -Dlogind-provider=$(usex systemd systemd elogind)
170 + -Dpam-mod-dir=$(getpam_mod_dir)
171 + $(meson_feature plymouth)
172 + -Drun-dir=/run/gdm
173 + $(meson_feature selinux)
174 + $(meson_use systemd systemd-journal)
175 + $(meson_use tcpd tcp-wrappers)
176 + -Dudev-dir=$(get_udevdir)/rules.d
177 + -Duser=gdm
178 + -Duser-display-server=true
179 + $(meson_use wayland wayland-support)
180 + -Dxdmcp=enabled
181 + )
182 +
183 + if use elogind; then
184 + emesonargs+=(
185 + -Dinitial-vt=7 # TODO: Revisit together with startDM.sh and other xinit talks; also ignores plymouth possibility
186 + -Dsystemdsystemunitdir=no
187 + -Dsystemduserunitdir=no
188 + )
189 + else
190 + emesonargs+=(
191 + -Dinitial-vt=1
192 + -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
193 + -Dsystemduserunitdir="$(systemd_get_userunitdir)"
194 + )
195 + fi
196 +
197 + meson_src_configure
198 +}
199 +
200 +src_install() {
201 + meson_src_install
202 +
203 + if ! use accessibility ; then
204 + rm "${ED}"/usr/share/gdm/greeter/autostart/orca-autostart.desktop || die
205 + fi
206 +
207 + if ! use bluetooth-sound ; then
208 + # Workaround https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/10
209 + # bug #679526
210 + insinto /var/lib/gdm/.config/pulse
211 + doins "${FILESDIR}"/default.pa
212 + fi
213 +
214 + # install XDG_DATA_DIRS gdm changes
215 + echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
216 + doenvd 99xdg-gdm
217 +
218 + use branding && newicon "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" gentoo-gdm.svg
219 +
220 + readme.gentoo_create_doc
221 +}
222 +
223 +pkg_postinst() {
224 + gnome2_pkg_postinst
225 + local d ret
226 +
227 + # bug #669146; gdm may crash if /var/lib/gdm subdirs are not owned by gdm:gdm
228 + ret=0
229 + ebegin "Fixing "${EROOT}"/var/lib/gdm ownership"
230 + chown --no-dereference gdm:gdm "${EROOT}/var/lib/gdm" || ret=1
231 + for d in "${EROOT}/var/lib/gdm/"{.cache,.color,.config,.dbus,.local}; do
232 + [[ ! -e "${d}" ]] || chown --no-dereference -R gdm:gdm "${d}" || ret=1
233 + done
234 + eend ${ret}
235 +
236 + systemd_reenable gdm.service
237 + readme.gentoo_print_elog
238 +}