Bug 282214

Summary: devel/ocaml-camljava: Update to 0.5
Product: Ports & Packages Reporter: Benjamin Jacobs <freebsd>
Component: Individual Port(s)Assignee: Li-Wen Hsu <lwhsu>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
0001-devel-ocaml-camljava-Update-to-0.5-improve-port.patch freebsd: maintainer-approval+

Description Benjamin Jacobs 2024-10-19 23:00:33 UTC
Created attachment 254376 [details]
0001-devel-ocaml-camljava-Update-to-0.5-improve-port.patch

Hello,

This patche updates devel/ocaml-java to version 0.5 and improves the port in the following aspects:

- Set MAKE_ARGS to -e, and add to MAKE_ENV the upstream Makefile variables which need to be configured, instead of REINPLACE_CMD them in post-patch.

- Set the rpath in function of the JAVA_PORT_VERSION, to restore support for JDK8.

- Drop patch to jnistubs.c, as it is essentially included upstream now.

Make test passes using JAVA_VERSION 8, 11, 17, 18, 19, 20 and 21.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-10-21 11:24:10 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2546696f9bd2acb0ae9ce313973d7f812944bb52

commit 2546696f9bd2acb0ae9ce313973d7f812944bb52
Author:     Benjamin Jacobs <freebsd@dev.thsi.be>
AuthorDate: 2024-10-19 22:32:18 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-10-21 11:21:22 +0000

    devel/ocaml-camljava: Update to 0.5, improve port

    - Set MAKE_ARGS to -e, and add to MAKE_ENV the upstream Makefile
      variables which need to be configured, instead of REINPLACE_CMD them
      in post-patch.

    - Set the rpath in function of the JAVA_PORT_VERSION, to restore support
      for JDK8.

    - Drop patch to jnistubs.c, as it is essentially included upstream now.

    PR:             282214

 devel/ocaml-camljava/Makefile                      |  31 +-
 devel/ocaml-camljava/distinfo                      |   6 +-
 .../files/patch-lib_jnistubs.c (gone)              | 353 ---------------------
 3 files changed, 22 insertions(+), 368 deletions(-)