-
Notifications
You must be signed in to change notification settings - Fork 84
Require Java 17 or Java 21 for RPM installations and Java 21 for Fedora installations #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
f0a7bf1
6be3879
432ab88
0f463c5
b061fa5
a72b6b1
61ec483
50a84c3
cacc8c4
cc2a297
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,14 @@ BuildRoot: %{_tmppath}/build-%{name}-%{version} | |
| # So either we make a hard requirement on the OpenJDK or none at all | ||
| # Only workaround would be to use a java virtual package, see https://github.com/keystep/virtual-java-rpm | ||
| # TODO: If re-enable, fix the matcher for Java 17 | ||
| # Requires: java >= 1:1.8.0 | ||
| # Fedora 42+ removes openjdk-{8,11,17}. Jenkins now uses Eclipse Temurin JDK 21. | ||
| %if 0%{?fedora} | ||
| Requires: java >= 21 | ||
| %else | ||
| Requires: java >= 17 | ||
| %endif | ||
| Requires(pre): /usr/sbin/useradd , /usr/sbin/groupadd | ||
viru0909-dev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Requires: procps | ||
viru0909-dev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Requires(pre): /usr/sbin/useradd, /usr/sbin/groupadd | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for removing this line?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the question! The reason for removing the Requires(pre): I can re-add it if needed, but based on current RPM packaging guidelines, this line is safe to remove.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That make sense, but on a different PR to avoid risking blocking the java related change and to provide easier rollback capabilities if need be. additionnally: did you verify on openSuse?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the clarification! Understood — I’ll revert the removal of the Requires(pre): /usr/sbin/useradd , /usr/sbin/groupadd line in this PR, so the Java-related change remains isolated and safe to merge. Regarding OpenSUSE: I’ll push the update shortly. Thanks for the guidance! |
||
| BuildArch: noarch | ||
| %systemd_requires | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caused #729
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then required #728 (comment)