- Drop use of %systemd_postun in %postun

This macro is supposed to operate on units but it was used without
  passing any parameters. This call was probably used for issuing a
  daemon-reload but the following calls to
  %systemd_postun_with_restart imply that already. So let's simply
  drop it.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1135
This commit is contained in:
Franck Bui 2021-02-17 10:31:26 +00:00 committed by Git OBS Bridge
parent 10567cca6c
commit 34e839fb7f
4 changed files with 26 additions and 4 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Feb 17 10:30:43 UTC 2021 - Franck Bui <fbui@suse.com>
- Drop use of %systemd_postun in %postun
This macro is supposed to operate on units but it was used without
passing any parameters. This call was probably used for issuing a
daemon-reload but the following calls to
%systemd_postun_with_restart imply that already. So let's simply
drop it.
-------------------------------------------------------------------
Fri Feb 5 13:02:58 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -875,10 +875,10 @@ if [ "$(readlink -f %{_sysconfdir}/systemd/system/tmp.mount)" = "%{_datadir}/sys
fi
%postun
%systemd_postun
# Avoid restarting logind until fixed upstream (issue #1163)
# daemon-reload is implied by %systemd_postun_with_restart
%systemd_postun_with_restart systemd-journald.service
%systemd_postun_with_restart systemd-timesyncd.service
# Avoid restarting logind until fixed upstream (issue #1163)
%pre -n udev%{?mini}
# New installations uses the last compat symlink generation number

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Feb 17 10:30:43 UTC 2021 - Franck Bui <fbui@suse.com>
- Drop use of %systemd_postun in %postun
This macro is supposed to operate on units but it was used without
passing any parameters. This call was probably used for issuing a
daemon-reload but the following calls to
%systemd_postun_with_restart imply that already. So let's simply
drop it.
-------------------------------------------------------------------
Fri Feb 5 13:02:58 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -873,10 +873,10 @@ if [ "$(readlink -f %{_sysconfdir}/systemd/system/tmp.mount)" = "%{_datadir}/sys
fi
%postun
%systemd_postun
# Avoid restarting logind until fixed upstream (issue #1163)
# daemon-reload is implied by %systemd_postun_with_restart
%systemd_postun_with_restart systemd-journald.service
%systemd_postun_with_restart systemd-timesyncd.service
# Avoid restarting logind until fixed upstream (issue #1163)
%pre -n udev%{?mini}
# New installations uses the last compat symlink generation number