Created attachment 211879 [details]
Patch that updates devel/jna to version 5.5.0
While getting Elasticsearch7 installed on FreeBSD, I wanted to use a non-default JDK.
While looking at the elasticsearch7 dependencies, I noticed that the devel/jna port was several versions behind the latest version, meaning that OpenJDK8 was pulled in regardless of what version you set in /etc/make.conf.
I have therefore tried to update the port to its latest version (as of the time of this writing, it's version 5.5.0)
The attached patch also moves variables around (I used "portclippy" to sort them) and makes the port respect whatever JAVA_VERSION one sets in /etc/make.conf
For elasticsearch7, this furthermore means that you don't pull in OpenJDK8 unnecessarily if you prefer, say, OpenJDK11.
I have tested the updated port using elasticsearch7 only on FreeBSD 12.1 and 13.0-CURRENT and it seems to work just fine; however, I haven't tested on anything else Java-based.
I also see that the port lacks a maintainer. I don't use it for development, but if no-one else wants to support this port, I guess I can step up. Note that the patch does not contain the maintainer modification in that case.
I hope the patch is useful, but please take a look at it.
All the best,
A commit references this bug:
Date: Fri Mar 6 19:10:12 UTC 2020
New revision: 527891
- Update to 5.0.5
This avoids a dependency on version 8 of OpenJDK when building elasticsearch7.
Test built using gcc and clang.
Submitted by: Peter Laursen <firstname.lastname@example.org>
Approved by: pi
Thanks for your submission!