Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package avahi for openSUSE:Factory checked 
in at 2022-02-06 23:53:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/avahi (Old)
 and      /work/SRC/openSUSE:Factory/.avahi.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "avahi"

Sun Feb  6 23:53:55 2022 rev:147 rq:951439 version:0.8

Changes:
--------
avahi-mono.changes: same change
avahi-qt5.changes: same change
--- /work/SRC/openSUSE:Factory/avahi/avahi.changes      2022-01-21 
01:25:49.570420191 +0100
+++ /work/SRC/openSUSE:Factory/.avahi.new.1898/avahi.changes    2022-02-06 
23:54:54.458568570 +0100
@@ -1,0 +2,5 @@
+Fri Jan 21 13:05:58 UTC 2022 - Callum Farmer <gm...@opensuse.org>
+
+- Change to systemd-sysusers
+
+-------------------------------------------------------------------

New:
----
  avahi-autoipd.sysusers
  avahi.sysusers

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

Other differences:
------------------
++++++ avahi-glib2.spec ++++++
--- /var/tmp/diff_new_pack.FyngBc/_old  2022-02-06 23:54:55.362562457 +0100
+++ /var/tmp/diff_new_pack.FyngBc/_new  2022-02-06 23:54:55.366562430 +0100
@@ -62,6 +62,8 @@
 Source9:        avahi-autoipd.README.SUSE
 Source10:       avahi-autoipd.if-up
 Source11:       avahi-autoipd.if-down
+Source13:       avahi.sysusers
+Source14:       avahi-autoipd.sysusers
 # File missing from 0.8 tarball
 Source12:       
https://raw.githubusercontent.com/lathiat/avahi/master/service-type-database/build-db
 Source100:      attributes
@@ -98,6 +100,7 @@
 BuildRequires:  intltool
 BuildRequires:  libdaemon-devel
 BuildRequires:  libexpat-devel
+BuildRequires:  sysuser-tools
 # libtool is needed to build all variants: bootstrap is unconditional in the 
build section
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
@@ -116,7 +119,7 @@
 BuildRequires:  pkgconfig(systemd)
 Requires:       nss-mdns
 Requires:       sudo
-Requires(pre):  shadow
+%sysusers_requires
 #
 # mDNSResponder was used for <= 10.2:
 Provides:       mDNSResponder = 107.5
@@ -300,8 +303,7 @@
 # coreutils contains /usr/bin/chown
 Group:          Productivity/Networking/Other
 Requires(post): coreutils
-# shadow contains useradd and groupadd
-Requires(pre):  shadow
+%sysusers_requires
 Provides:       avahi:%{_sbindir}/avahi-autoipd
 
 %description autoipd
@@ -422,8 +424,12 @@
 
 
 
-# This is the avahi-discover command, only provided for the primary python3 
flavor
 
+
+
+
+
+# This is the avahi-discover command, only provided for the primary python3 
flavor
 %package -n python3-avahi-gtk
 Summary:        A set of Avahi utilities written in Python Using python-gtk
 Group:          Development/Languages/Python
@@ -559,6 +565,8 @@
 fi
 
 %build
+%sysusers_generate_pre %{SOURCE13} avahi avahi.conf
+%sysusers_generate_pre %{SOURCE14} autoipd avahi-autoipd.conf
 autoreconf -f -i
 intltoolize -f
 %{python_expand # configure for every python flavor
@@ -695,6 +703,8 @@
 install -d %{buildroot}/%{_datadir}/pixmaps
 install -d %{buildroot}%{_fillupdir}
 install -m 644 sysconfig.avahi* %{buildroot}%{_fillupdir}/
+install -Dm0644 %{SOURCE13} %{buildroot}%{_sysusersdir}/avahi.conf
+install -Dm0644 %{SOURCE14} %{buildroot}%{_sysusersdir}/avahi-autoipd.conf
 %if ! %{build_glib2}
 # Note: This file is intentionally installed here. It is needed for 
avahi-utils-gtk and python3-avahi-gtk:
 install -d %{buildroot}/%{_datadir}/avahi/interfaces
@@ -746,9 +756,7 @@
 %endif
 %fdupes %{buildroot}/%{_libdir}
 
-%pre
-getent group avahi >/dev/null || %{_sbindir}/groupadd -r avahi
-getent passwd avahi >/dev/null || %{_sbindir}/useradd -r -s /bin/false -c 
"User for Avahi" -d /run/avahi-daemon -g avahi avahi
+%pre -f avahi.pre
 %service_add_pre avahi-dnsconfd.service avahi-daemon.service
 # bnc#853845,bnc#851953: do not start by default under
 # sysconfig as this breaks vlan,bridge,bonding setups
@@ -773,12 +781,7 @@
 %postun
 %service_del_postun avahi-dnsconfd.service avahi-daemon.service
 
-%pre autoipd
-getent group avahi-autoipd >/dev/null || %{_sbindir}/groupadd -r avahi-autoipd
-getent passwd avahi-autoipd >/dev/null || \
-       %{_sbindir}/useradd -r -s /bin/false -c "User for Avahi IPv4LL" \
-       -d %{_localstatedir}/lib/avahi-autoipd -g avahi-autoipd \
-       avahi-autoipd
+%pre autoipd -f autoipd.pre
 
 %post autoipd
 %{fillup_only -ns avahi autoipd}
@@ -866,6 +869,7 @@
 %{_unitdir}/avahi-daemon.service
 %{_unitdir}/avahi-daemon.socket
 %{_unitdir}/avahi-dnsconfd.service
+%{_sysusersdir}/avahi.conf
 # Common file for avahi-utils-gtk and python3-avahi-gtk:
 %dir %{_datadir}/avahi/
 %{_datadir}/avahi/interfaces
@@ -907,6 +911,7 @@
 %{_sysconfdir}/avahi/avahi-autoipd.action
 %{_sysconfdir}/sysconfig/network/*/avahi-autoipd
 %{_fillupdir}/sysconfig.avahi-autoipd
+%{_sysusersdir}/avahi-autoipd.conf
 
 %files utils
 %{_bindir}/avahi-browse*

avahi-mono.spec: same change
avahi-qt5.spec: same change
++++++ avahi.spec ++++++
--- /var/tmp/diff_new_pack.FyngBc/_old  2022-02-06 23:54:55.442561915 +0100
+++ /var/tmp/diff_new_pack.FyngBc/_new  2022-02-06 23:54:55.446561889 +0100
@@ -64,6 +64,8 @@
 Source9:        avahi-autoipd.README.SUSE
 Source10:       avahi-autoipd.if-up
 Source11:       avahi-autoipd.if-down
+Source13:       avahi.sysusers
+Source14:       avahi-autoipd.sysusers
 # File missing from 0.8 tarball
 Source12:       
https://raw.githubusercontent.com/lathiat/avahi/master/service-type-database/build-db
 Source100:      attributes
@@ -100,6 +102,7 @@
 BuildRequires:  intltool
 BuildRequires:  libdaemon-devel
 BuildRequires:  libexpat-devel
+BuildRequires:  sysuser-tools
 # libtool is needed to build all variants: bootstrap is unconditional in the 
build section
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
@@ -118,7 +121,7 @@
 BuildRequires:  pkgconfig(systemd)
 Requires:       nss-mdns
 Requires:       sudo
-Requires(pre):  shadow
+%sysusers_requires
 #
 # mDNSResponder was used for <= 10.2:
 Provides:       mDNSResponder = 107.5
@@ -302,8 +305,7 @@
 # coreutils contains /usr/bin/chown
 Group:          Productivity/Networking/Other
 Requires(post): coreutils
-# shadow contains useradd and groupadd
-Requires(pre):  shadow
+%sysusers_requires
 Provides:       avahi:%{_sbindir}/avahi-autoipd
 
 %description autoipd
@@ -424,8 +426,12 @@
 
 
 
-# This is the avahi-discover command, only provided for the primary python3 
flavor
 
+
+
+
+
+# This is the avahi-discover command, only provided for the primary python3 
flavor
 %package -n python3-avahi-gtk
 Summary:        A set of Avahi utilities written in Python Using python-gtk
 Group:          Development/Languages/Python
@@ -554,6 +560,8 @@
 fi
 
 %build
+%sysusers_generate_pre %{SOURCE13} avahi avahi.conf
+%sysusers_generate_pre %{SOURCE14} autoipd avahi-autoipd.conf
 autoreconf -f -i
 intltoolize -f
 %{python_expand # configure for every python flavor
@@ -690,6 +698,8 @@
 install -d %{buildroot}/%{_datadir}/pixmaps
 install -d %{buildroot}%{_fillupdir}
 install -m 644 sysconfig.avahi* %{buildroot}%{_fillupdir}/
+install -Dm0644 %{SOURCE13} %{buildroot}%{_sysusersdir}/avahi.conf
+install -Dm0644 %{SOURCE14} %{buildroot}%{_sysusersdir}/avahi-autoipd.conf
 %if ! %{build_glib2}
 # Note: This file is intentionally installed here. It is needed for 
avahi-utils-gtk and python3-avahi-gtk:
 install -d %{buildroot}/%{_datadir}/avahi/interfaces
@@ -741,9 +751,7 @@
 %endif
 %fdupes %{buildroot}/%{_libdir}
 
-%pre
-getent group avahi >/dev/null || %{_sbindir}/groupadd -r avahi
-getent passwd avahi >/dev/null || %{_sbindir}/useradd -r -s /bin/false -c 
"User for Avahi" -d /run/avahi-daemon -g avahi avahi
+%pre -f avahi.pre
 %service_add_pre avahi-dnsconfd.service avahi-daemon.service
 # bnc#853845,bnc#851953: do not start by default under
 # sysconfig as this breaks vlan,bridge,bonding setups
@@ -768,12 +776,7 @@
 %postun
 %service_del_postun avahi-dnsconfd.service avahi-daemon.service
 
-%pre autoipd
-getent group avahi-autoipd >/dev/null || %{_sbindir}/groupadd -r avahi-autoipd
-getent passwd avahi-autoipd >/dev/null || \
-       %{_sbindir}/useradd -r -s /bin/false -c "User for Avahi IPv4LL" \
-       -d %{_localstatedir}/lib/avahi-autoipd -g avahi-autoipd \
-       avahi-autoipd
+%pre autoipd -f autoipd.pre
 
 %post autoipd
 %{fillup_only -ns avahi autoipd}
@@ -861,6 +864,7 @@
 %{_unitdir}/avahi-daemon.service
 %{_unitdir}/avahi-daemon.socket
 %{_unitdir}/avahi-dnsconfd.service
+%{_sysusersdir}/avahi.conf
 # Common file for avahi-utils-gtk and python3-avahi-gtk:
 %dir %{_datadir}/avahi/
 %{_datadir}/avahi/interfaces
@@ -902,6 +906,7 @@
 %{_sysconfdir}/avahi/avahi-autoipd.action
 %{_sysconfdir}/sysconfig/network/*/avahi-autoipd
 %{_fillupdir}/sysconfig.avahi-autoipd
+%{_sysusersdir}/avahi-autoipd.conf
 
 %files utils
 %{_bindir}/avahi-browse*

++++++ avahi-autoipd.sysusers ++++++
#Type Name          ID GECOS                   Home directory         Shell
u     avahi-autoipd -  "User for Avahi IPv4LL" /var/lib/avahi-autoipd -

++++++ avahi.sysusers ++++++
#Type Name  ID GECOS            Home directory    Shell
u     avahi -  "User for Avahi" /run/avahi-daemon -

Reply via email to