when the tmpfiles are run at package installation time. Theoretically with

only "Requires(pre): group()", rpm is allowed to drop the group at the end of
  the package installations hence let's keep "Requires: group()" dep.
  Note: this is also needed when (post)file-triggers are enabled due to the
  current limitation of the default libzypp transaction backend.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1402
This commit is contained in:
Franck Bui 2023-06-21 12:38:22 +00:00 committed by Git OBS Bridge
parent b2c044a33d
commit 07888f84ad
2 changed files with 15 additions and 6 deletions

View File

@ -2,8 +2,12 @@
Wed Jun 21 10:30:58 UTC 2023 - Franck Bui <fbui@suse.com>
- Make sure to pre-install the groups systemd and udev rely on. This is needed
when the tmpfiles are run at package installation time (i.e. when
file-triggers are disabled).
when the tmpfiles are run at package installation time. Theoretically with
only "Requires(pre): group()", rpm is allowed to drop the group at the end of
the package installations hence let's keep "Requires: group()" dep.
Note: this is also needed when (post)file-triggers are enabled due to the
current limitation of the default libzypp transaction backend.
-------------------------------------------------------------------
Wed Jun 21 09:28:29 UTC 2023 - Franck Bui <fbui@suse.com>

View File

@ -137,15 +137,17 @@ Requires: netcfg >= 11.5
Requires: systemd-default-settings-branding
Requires: systemd-presets-branding
Requires: util-linux >= 2.27.1
Requires: group(lock)
# The next dependency is also needed with file-triggers enabled due to the way
# the libzypp default transaction backend works.
Requires(pre): group(lock)
# This Recommends because some symbols of libpcre2 are dlopen()ed by journalctl
Recommends: libpcre2-8-0
Recommends: libbpf0
Requires(post): coreutils
Requires(post): findutils
Requires(post): systemd-presets-branding
Requires(post): pam-config >= 0.79-5
# This Recommends because some symbols of libpcre2 are dlopen()ed by journalctl
Recommends: libpcre2-8-0
Recommends: libbpf0
%endif
Conflicts: filesystem < 11.5
Conflicts: mkinitrd < 2.7.0
@ -323,6 +325,9 @@ Requires: %{name} = %{version}-%{release}
Requires: filesystem
Requires: kmod
Requires: system-group-hardware
Requires: group(kvm)
# The next dependency is also needed with file-triggers enabled due to the way
# the libzypp default transaction backend works.
Requires(pre): group(kvm)
Requires(post): sed
Requires(post): coreutils