-
Notifications
You must be signed in to change notification settings - Fork 1
Build the systemconf library on all platforms #7
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
Conversation
|
One question, do our non-Linux builds (which I assume it's Windows) already include the RPM patches that, for example, introduce the |
I don't know. @akashche? My aim with this patch is to give us a clean set of PR tests. The alternative would be to turn off Windows & Mac builds, but knowing we don't break them seems useful. Incidentally, it's just one patch now: https://src.fedoraproject.org/rpms/java-17-openjdk/c/756a991906919de0d448abf84e9a66cf96dc6afd?branch=rawhide |
|
Hello. thanx a lot. Sorry for troubeling you with this. As for downstream, I really do not know. Windows rh builds are based on srpm, but then half of the patches is gone. @stooke woud know more now. |
franferrax
left a comment
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.
Hi @gnu-andrew, it looks good to me.
I'm wondering about how much is the benefit of including a build-stage + test-suite running on platforms whose official build don't (or shouldn't) include changes from the FIPS branches we are testing, but it doesn't harm.
Well, you've kind of answered the question; it's ensuring they don't include the changes and still work. I think it's a good test that our changes aren't breaking things or making assumptions that the FIPS mode always operates a certain way. We've had issues raised before where we broke the scenario where FIPS was disabled on Linux. This is why the PRs now test both on and off, and I think unavailable is a good additional test as well. Prior to this change, we couldn't even build on the other platforms and so also couldn't test that the code still operated correctly. |
|
Thanks for the review. Merging. |
Build the systemconf library on all platforms, simply returning JNI_FALSE if !LINUX Reviewed-by: @franferrax
Build the systemconf library on all platforms, simply returning JNI_FALSE if !LINUX Reviewed-by: @franferrax
Build the systemconf library on all platforms, simply returning JNI_FALSE if !LINUX Reviewed-by: @franferrax
Currently, the makefile excludes building libsystemconf on any platform but Linux, but the JNI code in
SystemConfiguration.javathen unconditionally tries to load the library.We could make this conditional on running on Linux, but we still have the problem of a native method in the class that doesn't resolve. The best solution seems to be to build the library, but provide a simple
JNI_FALSEreturn for non-Linux systems. This also leaves the door open for an implementation on these platforms in future.