Drop Mandatory Requires on JRE
Summary
Drop the requirement of Java libraries to have Requires on JREs.
Owner
- Name: Marián Konček
- Email: mkoncek@redhat.com
Current status
- Targeted release: Fedora Linux 41
- Last updated: 2024-04-10
- [<will be assigned by the Wrangler> devel thread]
- FESCo issue: <will be assigned by the Wrangler>
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
Current guidelines require all Java packages to Require: java-headless or java-headless >= 1:minimal_required_version
.
Our aim is to drop this explicit requirement on Java library packages. The requirement should stay for Java applications.
Context
Java packages are compiled using javac
into .class
files and composed into .jar
archives. Jar archives can be used as compile or runtime dependencies for other packages or can be directly executed with the java command provided by a JRE.
Jar archives can be executed using the command: java -jar ${FILE}
. This command executes the main
method either specified via CLI or specified within the Jar manifest file.
Java packages, which serve as libraries only, lack the main
method and are not executable. Therefore, there is no requirement on any specific JRE imposed by the library implicitly.
Feedback
Benefit to Fedora
Scope
- Proposal owners:
- Other developers:
- Release engineering: #Releng issue number
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with Community Initiatives:
Upgrade/compatibility impact
How To Test
User Experience
Dependencies
Contingency Plan
- Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
- Contingency deadline: N/A (not a System Wide Change)
- Blocks release? N/A (not a System Wide Change), Yes/No
Documentation
N/A (not a System Wide Change)