Bug 266616 - net/kafka: Java 8 deprecated in 3.0.0. Use Java 11 or 17.
Summary: net/kafka: Java 8 deprecated in 3.0.0. Use Java 11 or 17.
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: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-25 22:23 UTC by Yonas Yanfa
Modified: 2022-10-12 11:59 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (timp87)


Attachments
port patch (15.48 KB, patch)
2022-10-11 16:36 UTC, Pavel Timofeev
timp87: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yonas Yanfa 2022-09-25 22:23:52 UTC
Support for Java 8 was deprecated in 3.0.0:

https://archive.apache.org/dist/kafka/3.0.0/RELEASE_NOTES.html


Kafka supports Java 11 (since 2.1.0) and Java 17 (since 3.1.0).

Kafka should be linked against a JRE (not JDK) - either openjdk11-jre or openjdk17-jre.
Comment 1 Pavel Timofeev 2022-10-11 00:53:48 UTC
(In reply to Yonas Yanfa from comment #0)
Hello, thank you for this report.
Well, deprecation doesn't mean support drop.
Ok, I will update java version requirement to 11+ anyway.

As for jre I couldn't find a code in Mk/bsd.java.mk that may be used to refer to jre.
Comment 2 Pavel Timofeev 2022-10-11 16:36:37 UTC
Created attachment 237219 [details]
port patch

- update net/kafka to v3.3.1
- bump java version requirement to 11+ following upstream
- explicitly set java runtime requirement to JRE version (seems has no affect in Mk/bsd.java.mk)
- add some stuff to get started with KRaft mode
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2022-10-12 11:59:35 UTC
Committed,

Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-10-12 11:59:47 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=91ef273ce62b466b99abfcbcb06922148fbb450d

commit 91ef273ce62b466b99abfcbcb06922148fbb450d
Author:     Pavel Timofeev <timp87@gmail.com>
AuthorDate: 2022-10-12 08:30:18 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-10-12 11:55:44 +0000

    net/kafka: Use Java 11 or 17.

    Java 8 is deprecated in 3.0.0.

    PR:             266616
    Reported by:    yonas.yanfa@gmail.com (maintainer)
    Approved by:    timp87@gmail.com (maintainer)

 net/kafka/Makefile                   |  53 ++++++++++-------
 net/kafka/distinfo                   |   6 +-
 net/kafka/files/pkg-message.in (new) |  12 ++++
 net/kafka/pkg-plist                  | 108 ++++++++++++++++++++---------------
 4 files changed, 109 insertions(+), 70 deletions(-)