Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lightdm for openSUSE:Factory checked 
in at 2022-01-05 13:39:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lightdm (Old)
 and      /work/SRC/openSUSE:Factory/.lightdm.new.1896 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lightdm"

Wed Jan  5 13:39:31 2022 rev:109 rq:943643 version:1.30.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lightdm/lightdm.changes  2021-10-20 
20:23:41.701356250 +0200
+++ /work/SRC/openSUSE:Factory/.lightdm.new.1896/lightdm.changes        
2022-01-05 13:39:55.961534076 +0100
@@ -1,0 +2,5 @@
+Fri Dec 31 23:02:16 UTC 2021 - Callum Farmer <[email protected]>
+
+- Change to systemd-sysusers
+
+-------------------------------------------------------------------

New:
----
  lightdm.sysusers

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lightdm.spec ++++++
--- /var/tmp/diff_new_pack.2kMKkb/_old  2022-01-05 13:39:56.565534550 +0100
+++ /var/tmp/diff_new_pack.2kMKkb/_new  2022-01-05 13:39:56.569534554 +0100
@@ -49,6 +49,7 @@
 Source7:        users.conf
 Source8:        lightdm.pam
 Source9:        lightdm-autologin.pam
+Source10:       lightdm.sysusers
 # PATCH-FEATURE-OPENSUSE lightdm-sysconfig-support.patch [email protected] -- 
Adds support for reading configuration options from 
/etc/sysconfig/displaymanager and /etc/sysconfig/windowmanager
 Patch0:         lightdm-sysconfig-support.patch
 # PATCH-FEATURE-OPENSUSE lightdm-xauthlocalhostname-support.patch boo#796230 
[email protected] -- Set XAUTHLOCALHOSTNAME to the hostname for local logins to 
avoid issues in the session in case the hostname changes
@@ -70,6 +71,7 @@
 BuildRequires:  libtool
 BuildRequires:  pam-devel
 BuildRequires:  pkgconfig
+BuildRequires:  sysuser-tools
 BuildRequires:  vala
 BuildRequires:  xdm
 BuildRequires:  yelp-tools
@@ -97,7 +99,7 @@
 Requires:       lightdm-greeter
 # Uses pam configuration and relies on scripts provided by xdm.
 Requires:       xdm
-Requires(pre):  pwdutils
+%sysusers_requires
 Recommends:     %{name}-lang
 # Migrate users from lxdm to lightdm - we only obsolete up to version 0.5.
 Obsoletes:      lxdm < 0.5
@@ -196,6 +198,7 @@
 %autosetup -p1
 
 %build
+%sysusers_generate_pre %{SOURCE10} lightdm lightdm.conf
 export MOC4='%{_bindir}/moc'
 export MOC5='%{_libqt5_bindir}/moc'
 NOCONFIGURE=1 ./autogen.sh
@@ -268,12 +271,11 @@
 sed -e 's-/usr/etc-%{_sysconfdir}-g' -i 
%{buildroot}%{_datadir}/lightdm/lightdm.conf.d/50-suse-defaults.conf
 %endif
 
+install -Dm0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/lightdm.conf
+
 %find_lang %{name} %{?no_lang_C}
 
-%pre
-%{_sbindir}/groupadd -r lightdm 2> /dev/null || :
-%{_sbindir}/useradd -r -g lightdm -s /bin/false -c "LightDM daemon" \
-  -d %{_localstatedir}/lib/lightdm lightdm 2> /dev/null || :
+%pre -f lightdm.pre
 for i in pam.d/lightdm pam.d/lightdm-autologin pam.d/lightdm-greeter; do
   test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i}.rpmsave.old 
||:
 done
@@ -362,6 +364,7 @@
 %attr(711,root,root) %dir %{_localstatedir}/cache/lightdm/
 %{_mandir}/man1/lightdm.1%{?ext_man}
 %{_mandir}/man1/dm-tool.1%{?ext_man}
+%{_sysusersdir}/lightdm.conf
 
 %files lang -f %{name}.lang
 


++++++ lightdm.sysusers ++++++
#Type Name    ID GECOS            Home directory   Shell
u     lightdm -  "LightDM daemon" /var/lib/lightdm -

Reply via email to