Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package subversion for openSUSE:Factory checked in at 2021-10-25 15:17:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/subversion (Old) and /work/SRC/openSUSE:Factory/.subversion.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "subversion" Mon Oct 25 15:17:17 2021 rev:183 rq:926784 version:1.14.1 Changes: -------- --- /work/SRC/openSUSE:Factory/subversion/subversion.changes 2021-10-18 22:03:34.726153756 +0200 +++ /work/SRC/openSUSE:Factory/.subversion.new.1890/subversion.changes 2021-10-25 15:17:59.061696301 +0200 @@ -1,0 +2,5 @@ +Wed Oct 20 16:37:13 UTC 2021 - Callum Farmer <gm...@opensuse.org> + +- Change to using systemd-sysusers + +------------------------------------------------------------------- New: ---- svn.sysusers ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ subversion.spec ++++++ --- /var/tmp/diff_new_pack.Dvadn4/_old 2021-10-25 15:17:59.993696884 +0200 +++ /var/tmp/diff_new_pack.Dvadn4/_new 2021-10-25 15:17:59.997696886 +0200 @@ -16,7 +16,6 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # - %define svngroup svn %define svnuser svn %define sqlite_minimum_version 3.8.2 @@ -46,6 +45,7 @@ Source10: subversion.sysconfig.svnserve Source14: svnserve.service Source15: svnserve.tmpfiles +Source16: svn.sysusers Source42: subversion.svngrep.sh Source43: subversion.svndiff.sh Source50: https://people.apache.org/keys/group/subversion.asc#/subversion.keyring @@ -82,6 +82,7 @@ BuildRequires: python3-xml BuildRequires: ruby-devel >= 1.8.2 BuildRequires: swig +BuildRequires: sysuser-tools BuildRequires: update-alternatives BuildRequires: utf8proc-devel BuildRequires: pkgconfig(apr-1) >= 1.3.0 @@ -97,7 +98,7 @@ BuildConflicts: pkgconfig(liblz4) = 124 Requires: libsqlite3-0 >= %{sqlite_minimum_version} Requires(post): %fillup_prereq -Requires(pre): shadow +%sysusers_requires Recommends: %{name}-bash-completion # workaround for boo#969159 Conflicts: libsvn_auth_kwallet-1-0 < %{version} @@ -248,6 +249,7 @@ sed -i -e 's#%{_bindir}/env python#%{_bindir}/python3#' subversion/tests/cmdline/*.py %build +%sysusers_generate_pre %{SOURCE16} %{name} system-user-svn.conf # Re-boot strap, needed for patch37 PATH=%{_prefix}/bin:$PATH ./autogen.sh --release @@ -400,6 +402,9 @@ rm -rf tools/*/*.in rm -rf doc/doxygen/html/installdox +# sysusers +install -Dm0644 %{SOURCE16} %{buildroot}%{_sysusersdir}/system-user-svn.conf + %check export LANG=C LC_ALL=C @@ -423,9 +428,7 @@ %make_build davautocheck CLEANUP=true FS_TYPE=bdb || (cat fails.log; exit 1) %endif -%pre -getent group %{svngroup} >/dev/null || groupadd -r %{svngroup} -getent passwd %{svnuser} >/dev/null || useradd -r -g %{svngroup} -d /srv/svn -s /sbin/nologin -c "user for Apache Subversion svnserve" %{svnuser} +%pre -f %{name}.pre %service_add_pre svnserve.service %preun @@ -468,6 +471,7 @@ %dir %attr(755,%{svnuser},%{svngroup}) /srv/svn %{_unitdir}/svnserve.service %{_tmpfilesdir}/svnserve.conf +%{_sysusersdir}/system-user-svn.conf %attr(755,root,root) %{_bindir}/svn %attr(755,root,root) %{_bindir}/svnadmin %attr(755,root,root) %{_bindir}/svndiff ++++++ svn.sysusers ++++++ #Type Name ID GECOS Home directory Shell u svn - "user for Apache Subversion svnserve" /srv/svn -