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

Ensure TemurinGenSOM.java build with jdk-17+ for openkeystore support #3236

Closed
wants to merge 6 commits into from

Conversation

andrew-m-leonard
Copy link
Contributor

@andrew-m-leonard andrew-m-leonard commented Feb 3, 2023

Fix build.sh to build TemurinGenSOM.java with jdk-17+ as openkeystore won't compile.

Fixes up: #3209

Signed-off-by: Andrew Leonard [email protected]

@andrew-m-leonard andrew-m-leonard self-assigned this Feb 3, 2023
Copy link
Contributor

@smlambert smlambert left a comment

Choose a reason for hiding this comment

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

👍

echo "${javaHome}"
}
# TemurinGenSBOM.java requires jdk-17+ to build openkeystore
apiURL="https://api.adoptium.net/v3/binary/latest/17/ga/${OPERATING_SYSTEM}/${BUILD_CONFIG[OS_ARCHITECTURE]}/jdk/hotspot/normal/eclipse"
Copy link
Member

@sxa sxa Feb 3, 2023

Choose a reason for hiding this comment

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

Do we really need to do this? Most of our build machines have java 17 installed in a known location so downloading it every time seems a bit over the top.
Also does this process run on Solaris too?

Copy link
Contributor

Choose a reason for hiding this comment

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

Solaris is a valid point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sxa What environment would point at it?
Also, the above is generic for user of this script

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah thought about Solaris, not sure what we do there....yet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like to just get some thing building rather than none :-)

Copy link
Member

@sxa sxa Feb 3, 2023

Choose a reason for hiding this comment

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

@sxa What environment would point at it?

Do you mean which path? /usr/lib/jvm/jdk-XX on linux for example - we create equivalent locations elsewhere.

Also, the above is generic for user of this script

Yes but "if it's not in our location, do the download" would seem a sensible thing to do (and the fewer things we download during the process the better and more secure we will be)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So openkeystore is not going to build on Solaris, so I think we're going to have to re-factor that code out of TemurinGenSBOM and into another signing app, called in a standalone job

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sxa in fact i'm thinking refactor the whole class into a separate invoked build-farm job, a bit like GPG signing. Trying to perform at the end of the build is troublsome

@andrew-m-leonard andrew-m-leonard marked this pull request as draft February 3, 2023 17:19
@andrew-m-leonard
Copy link
Contributor Author

Needs re-working with thought on jdk8 Solaris and possibly other issues..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants