Skip to content
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

Fixes #10469: Make SLES12 RPMs depend on java8 headless #1305

Conversation

peckpeck
Copy link
Member

@@ -88,10 +88,13 @@ Requires: jre >= 1.8
Requires: java-1.8.0-openjdk-headless
%endif

%if 0%{?suse_version} && 0%{?suse_version} == 1315 && 0%{?sle_version} && 0%{?sle_version} >= 120100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the "suse_version" checks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently SLES12 has:

# rpm --eval '%{suse_version}'
1315

SLES11 has:

# rpm --eval '%{suse_version}'
1110

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But no sle_version:

SLE11

# rpm --eval '%{sle_version}'
%{sle_version}

SLES12

# rpm --eval '%{sle_version}'
120200

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is consistent with what is documented there: https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we are targeting SLES12SP1+, so 0%{?sle_version} && 0%{?sle_version} >= 120100 should be ok.

@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the bug_10469/make_sles12_rpms_depend_on_java8_headless branch from caf00c3 to e186ba5 Compare March 21, 2017 10:07
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit e186ba5 into Normation:branches/rudder/4.1 Mar 21, 2017
@peckpeck peckpeck deleted the bug_10469/make_sles12_rpms_depend_on_java8_headless branch July 13, 2020 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants