Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libstoragemgmt for openSUSE:Factory checked in at 2021-06-09 21:54:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstoragemgmt (Old) and /work/SRC/openSUSE:Factory/.libstoragemgmt.new.32437 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstoragemgmt" Wed Jun 9 21:54:47 2021 rev:28 rq:897963 version:1.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libstoragemgmt/libstoragemgmt.changes 2021-05-20 19:24:04.110188681 +0200 +++ /work/SRC/openSUSE:Factory/.libstoragemgmt.new.32437/libstoragemgmt.changes 2021-06-09 21:54:48.838743376 +0200 @@ -1,0 +2,5 @@ +Fri Jun 4 13:35:57 UTC 2021 - Callum Farmer <gm...@opensuse.org> + +- Change to using systemd-sysusers + +------------------------------------------------------------------- New: ---- system-user-libstoragemgmt.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstoragemgmt.spec ++++++ --- /var/tmp/diff_new_pack.LEzGZE/_old 2021-06-09 21:54:49.418744410 +0200 +++ /var/tmp/diff_new_pack.LEzGZE/_new 2021-06-09 21:54:49.418744410 +0200 @@ -33,6 +33,7 @@ Group: Development/Libraries/C and C++ URL: https://github.com/libstorage/libstoragemgmt Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz +Source1: system-user-libstoragemgmt.conf Patch1: move_to_run.patch BuildRequires: fdupes BuildRequires: gcc-c++ @@ -45,6 +46,8 @@ BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) +BuildRequires: sysuser-tools +%sysusers_requires %systemd_requires %if 0%{python3} BuildRequires: python3-devel @@ -274,6 +277,7 @@ head -vn 1 ${pyfiles[@]} %make_build +%sysusers_generate_pre %{SOURCE1} libstoragemgmt %install %make_install @@ -292,6 +296,9 @@ install -m 755 tools/udev/scan-scsi-target \ %{buildroot}%{_prefix}/lib/udev/scan-scsi-target +mkdir -p %{buildroot}%{_sysusersdir} +install -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/ + # find all duplicates %fdupes -s %{buildroot}%{python_sitelib} %fdupes -s %{buildroot}%{python_sitearch} @@ -305,15 +312,7 @@ fi %endif -%pre -if [ $1 -eq 1 ]; then - # New install - getent group %{name} >/dev/null || groupadd -r %{name} - getent passwd %{name} >/dev/null || \ - useradd -r -g %{name} -d %{_rundir}/lsm -s /sbin/nologin \ - -c "daemon account for libstoragemgmt" %{name} -fi - +%pre -f libstoragemgmt.pre %service_add_pre %{name}.service %post -n %{libname} -p /sbin/ldconfig @@ -432,6 +431,7 @@ %{_bindir}/simc_lsmplugin %{_mandir}/man1/simc_lsmplugin.1%{?ext_man} %{_unitdir}/libstoragemgmt.service +%{_sysusersdir}/system-user-libstoragemgmt.conf %{_tmpfilesdir}/%{name}.conf %dir %{_sysconfdir}/lsm %{_datadir}/bash-completion/completions/lsmcli ++++++ system-user-libstoragemgmt.conf ++++++ #Type Name ID GECOS Home directory Shell u libstoragemgmt - "daemon account for libstoragemgmt" /run/lsm -