Accepting request 867712 from GNOME:Factory
- Fixup gdm.sysyers: gecos field needs to be quoted for multi-word value. - Use sysusers config file to generate gdm user OBS-URL: https://build.opensuse.org/request/show/867712 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdm?expand=0&rev=235
This commit is contained in:
commit
e949adec62
11
gdm.changes
11
gdm.changes
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 29 09:46:20 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Fixup gdm.sysyers: gecos field needs to be quoted for multi-word
|
||||||
|
value.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 21 12:57:09 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Use sysusers config file to generate gdm user
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 4 10:05:13 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed Nov 4 10:05:13 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
22
gdm.spec
22
gdm.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gdm
|
# spec file for package gdm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -42,6 +42,8 @@ Source7: X11-displaymanager-gdm
|
|||||||
Source9: gdm.tmpfiles
|
Source9: gdm.tmpfiles
|
||||||
# Use reserveVT.conf to make autologin user session not to select tty1
|
# Use reserveVT.conf to make autologin user session not to select tty1
|
||||||
Source10: reserveVT.conf
|
Source10: reserveVT.conf
|
||||||
|
# Use sysusers to create gdm system user
|
||||||
|
Source11: gdm.sysusers
|
||||||
# WARNING: do not remove/significantly change patch0 without updating the relevant patch in accountsservice too
|
# WARNING: do not remove/significantly change patch0 without updating the relevant patch in accountsservice too
|
||||||
# PATCH-FIX-OPENSUSE gdm-sysconfig-settings.patch bnc432360 bsc#919723 hpj@novell.com -- Read autologin options from /etc/sysconfig/displaymanager; note that accountsservice has a similar patch (accountsservice-sysconfig.patch)
|
# PATCH-FIX-OPENSUSE gdm-sysconfig-settings.patch bnc432360 bsc#919723 hpj@novell.com -- Read autologin options from /etc/sysconfig/displaymanager; note that accountsservice has a similar patch (accountsservice-sysconfig.patch)
|
||||||
Patch0: gdm-sysconfig-settings.patch
|
Patch0: gdm-sysconfig-settings.patch
|
||||||
@ -76,7 +78,8 @@ BuildRequires: gnome-session-core
|
|||||||
BuildRequires: meson >= 0.50.0
|
BuildRequires: meson >= 0.50.0
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pwdutils
|
BuildRequires: sysuser-shadow
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: tcpd-devel
|
||||||
BuildRequires: translation-update-upstream
|
BuildRequires: translation-update-upstream
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
@ -113,9 +116,6 @@ Requires: gnome-shell
|
|||||||
# xdm package ships systemd display-manager service and other common scripts
|
# xdm package ships systemd display-manager service and other common scripts
|
||||||
# between display managers (bsc#1084655)
|
# between display managers (bsc#1084655)
|
||||||
Requires: xdm
|
Requires: xdm
|
||||||
# FIXME: use proper Requires(pre/post/preun/...)
|
|
||||||
# For groupadd, useradd, usermod
|
|
||||||
PreReq: pwdutils
|
|
||||||
Requires(post): dconf
|
Requires(post): dconf
|
||||||
Requires(pre): group(video)
|
Requires(pre): group(video)
|
||||||
Recommends: iso-codes
|
Recommends: iso-codes
|
||||||
@ -129,6 +129,7 @@ DocDir: %{_defaultdocdir}
|
|||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
BuildRequires: pkgconfig(xorg-server)
|
BuildRequires: pkgconfig(xorg-server)
|
||||||
%endif
|
%endif
|
||||||
|
%sysusers_requires
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The GNOME Display Manager is a system service that is responsible for
|
The GNOME Display Manager is a system service that is responsible for
|
||||||
@ -248,6 +249,7 @@ running display manager.
|
|||||||
-Dwayland-support=true \
|
-Dwayland-support=true \
|
||||||
%nil
|
%nil
|
||||||
%meson_build
|
%meson_build
|
||||||
|
%sysusers_generate_pre %{SOURCE11} gdm
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
@ -295,17 +297,16 @@ install -m 644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/gdm.conf
|
|||||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/logind.conf.d
|
mkdir -p %{buildroot}%{_prefix}/lib/systemd/logind.conf.d
|
||||||
install -m 644 %{SOURCE10} %{buildroot}%{_prefix}/lib/systemd/logind.conf.d/reserveVT.conf
|
install -m 644 %{SOURCE10} %{buildroot}%{_prefix}/lib/systemd/logind.conf.d/reserveVT.conf
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysusersdir}/gdm.conf
|
||||||
|
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
%fdupes -s %{buildroot}%{_datadir}/help
|
%fdupes -s %{buildroot}%{_datadir}/help
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%meson_test
|
%meson_test
|
||||||
|
|
||||||
%pre
|
%pre -f gdm.pre
|
||||||
%{_sbindir}/groupadd -r gdm 2> /dev/null || :
|
|
||||||
%{_sbindir}/useradd -r -g gdm -G video -s /bin/false \
|
|
||||||
-c "Gnome Display Manager daemon" -d %{_localstatedir}/lib/gdm gdm 2> /dev/null || :
|
|
||||||
%{_sbindir}/usermod -g gdm -G video -s /bin/false gdm 2> /dev/null
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%tmpfiles_create gdm.conf
|
%tmpfiles_create gdm.conf
|
||||||
@ -362,6 +363,7 @@ dconf update
|
|||||||
%ghost %{_sysconfdir}/alternatives/default-displaymanager
|
%ghost %{_sysconfdir}/alternatives/default-displaymanager
|
||||||
%{_udevrulesdir}/61-gdm.rules
|
%{_udevrulesdir}/61-gdm.rules
|
||||||
%{_tmpfilesdir}/gdm.conf
|
%{_tmpfilesdir}/gdm.conf
|
||||||
|
%{_sysusersdir}/gdm.conf
|
||||||
%dir %{_prefix}/lib/systemd/logind.conf.d
|
%dir %{_prefix}/lib/systemd/logind.conf.d
|
||||||
%{_prefix}/lib/systemd/logind.conf.d/reserveVT.conf
|
%{_prefix}/lib/systemd/logind.conf.d/reserveVT.conf
|
||||||
%dir %{_userunitdir}/gnome-session@gnome-login.target.d
|
%dir %{_userunitdir}/gnome-session@gnome-login.target.d
|
||||||
|
3
gdm.sysusers
Normal file
3
gdm.sysusers
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Type Name ID GECOS Home
|
||||||
|
u gdm - "Gnome Display Manager daemon" /var/lib/gdm
|
||||||
|
m gdm video
|
Loading…
x
Reference in New Issue
Block a user