-
Notifications
You must be signed in to change notification settings - Fork 693
Build improvement for OpenJDK 17/21 #1593
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
Draft
dcasota
wants to merge
1
commit into
vmware:dev
Choose a base branch
from
dcasota:patch-1
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Summary: OpenJDK | ||
Name: openjdk17 | ||
Version: 17.0.14 | ||
Release: 1%{?dist} | ||
Release: 2%{?dist} | ||
URL: https://github.com/openjdk/jdk17u | ||
Group: Development/Tools | ||
Vendor: VMware, Inc. | ||
|
@@ -98,6 +98,7 @@ chmod a+x ./configur* | |
unset JAVA_HOME | ||
ENABLE_HEADLESS_ONLY="true" | ||
|
||
%ifarch aarch64 | ||
sh ./configur* \ | ||
--with-target-bits=64 \ | ||
--enable-headless-only \ | ||
|
@@ -107,6 +108,18 @@ sh ./configur* \ | |
--with-freetype-lib=%{_libdir} \ | ||
--with-stdc++lib=dynamic \ | ||
--disable-warnings-as-errors | ||
%else | ||
sh ./configur* \ | ||
--with-target-bits=64 \ | ||
--enable-headless-only \ | ||
--with-extra-cxxflags="-Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse" \ | ||
--with-extra-cflags="-fno-delete-null-pointer-checks -Wno-error -fno-lifetime-dse" \ | ||
--with-freetype-include=%{_includedir}/freetype2 \ | ||
--with-freetype-lib=%{_libdir} \ | ||
--with-stdc++lib=dynamic \ | ||
--build=x86_64-unknown-linux-gnu \ | ||
--disable-warnings-as-errors | ||
%endif | ||
|
||
mkdir -p %{_datadir}/java | ||
# make doesn't support _smp_mflags | ||
|
@@ -243,6 +256,8 @@ rm -rf %{buildroot}/* %{_libdir}/jvm/OpenJDK-* | |
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/lib/src.zip | ||
|
||
%changelog | ||
* Sun Feb 09 2025 Daniel Casota <[email protected]> 17.0.14-2 | ||
- See https://github.com/vmware/photon/issues/1588 | ||
* Wed Jan 22 2025 Shreenidhi Shedi <[email protected]> 17.0.14-1 | ||
- Upgrade to v17.0.14 | ||
* Mon Dec 16 2024 Brennan Lamoreaux <[email protected]> 17.0.8-3 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Probably this will suffice for both aarch64 and x86_64 without code duplication and condition checking.
Reference: https://github.com/rpm-software-management/rpm/blob/master/macros.in#L1066
Please give this a try. Thanks for your contribution and continues engagement to make our product better.
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.
You are right. Photon OS on any non-VMware hypervisor is often not recognized. That's a main challenge.
Previously, #1542 was the intention so get solved.
E.g. for cloud-init, dark2phoenix took the extra mile in canonical/cloud-init#5077. That was a year ago, and the time to get it done wasn't little.
A code snippet for on aarch64 and x86_64 without code duplication and condition checking is best, no doubt.
I have to test a few things first and will come back.