Description of problem:
The tomcat package has
even if it is probably not needed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have RHEL 7 installation without systemd, for example in a Docker container with fakesystemd.
2. Run yum install -y tomcat.
Transaction check error:
file /usr/lib/rpm/macros.d/macros.systemd from install of systemd-208-11.el7.x86_64 conflicts with file from package fakesystemd-1-14.el7.x86_64
The installation passes, tomcat does not force the systemd-sys (and thus systemd) installation.
The the following can be used as a workaround:
yum swap -y -- remove fakesystemd -- install systemd systemd-libs
but it increases the image size unnecessarily.
Bugs 1104138 and 1105045 are similar.
I think the simplest solution is to let fakesystemd also provide "systemd-sysv" as proposed in BZ #1126409.
systemd-sysv-convert will obviously fail but that shouldn't affect the result of the package installation.
Feel free to prove me wrong,
*** This bug has been marked as a duplicate of bug 1126409 ***
As noted in bug 1104138 comment 8, I don't think this is a duplicate. I'll leave it to the reporter of this bug though to reopen this bugzilla if they feel like the Requires should be removed.
Why should tomcat depend on systemd?