While improving the compatibility of the tomcat package with third-party Java runtimes such as Temurin, I encountered a consistent issue where dnf installs java-21-openjdk-headless even when a valid JRE is already present (e.g. temurin-21-jre). The cause is the dependency chain from tomcat -> ecj. This results in a runtime dependency on OpenJDK, even though the underlying Java library (used by Tomcat) does not need it. To resolve this and support a runtime-agnostic model, I propose splitting the package into: ecj : CLI tool, retains dependency on OpenJDK ecj-lib : library JAR, no Java dependency, usable with any JRE/JDK This would allow applications like Tomcat to depend only on ecj-lib, ensuring compatibility with third-party Java runtimes out of the box. Reproducible: Always Steps to Reproduce: 1.Enable temurin repo and install temurin-21-jre 2.Install tomcat 3.Observe that java-21-openjdk-headless is still installed via the ecj dependency Actual Results: OpenJDK is installed even though the declared Requires: of tomcat is compatible with Temurin. Expected Results: If ecj-lib existed without an explicit Java dependency, Tomcat could be used with any compatible JRE. Additional Information: Related discussion: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/ABYNCTW4OEXBTYJ2QCBQLAIRBD3GC335/
Thank you for filing this bug. Feel free (yourself or I saw Mikolaj offered a help) to submit a pull request with proposed changes. I am merely a guard for this package to make sure it does not break Dogtag dependency tree and through that FreeIPA.
Hi, any news on this?