Bug 244358 - [patch] devel/jna : Update to 5.5.0
Summary: [patch] devel/jna : Update to 5.5.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-02-24 07:45 UTC by Peter Laursen
Modified: 2020-03-06 19:11 UTC (History)
1 user (show)

See Also:


Attachments
Patch that updates devel/jna to version 5.5.0 (4.44 KB, patch)
2020-02-24 07:45 UTC, Peter Laursen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Laursen 2020-02-24 07:45:17 UTC
Created attachment 211879 [details]
Patch that updates devel/jna to version 5.5.0

Hi,
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,

Peter.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-03-06 19:10:32 UTC
A commit references this bug:

Author: hselasky
Date: Fri Mar  6 19:10:12 UTC 2020
New revision: 527891
URL: https://svnweb.freebsd.org/changeset/ports/527891

Log:
  - Update to 5.0.5

  This avoids a dependency on version 8 of OpenJDK when building elasticsearch7.
  Test built using gcc and clang.

  PR:		244358
  Submitted by:	Peter Laursen <freebsd@mosedal.net>
  Approved by:	pi

Changes:
  head/devel/jna/Makefile
  head/devel/jna/distinfo
  head/devel/jna/files/patch-native_Makefile
Comment 2 Hans Petter Selasky freebsd_committer freebsd_triage 2020-03-06 19:11:13 UTC
Thanks for your submission!

--HPS