Bug 286985

Summary: net/kafka: Update to 3.9.1
Product: Ports & Packages Reporter: Jesse Kempf <jessekempf>
Component: Individual Port(s)Assignee: Vladimir Druzenko <vvd>
Status: Closed FIXED    
Severity: Affects Some People CC: timp87, vvd
Priority: --- Flags: bugzilla: maintainer-feedback? (timp87)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
diff that updates Kafka port from 3.7.1 to 3.9.1
none
Patch for Kafka 3.7.1 -> 3.9.1
none
Patch for Kafka 3.7.1 -> 3.9.1
none
Patch for Kafka 3.7.1 -> 3.9.1 none

Description Jesse Kempf 2025-05-21 23:57:19 UTC
Created attachment 260612 [details]
diff that updates Kafka port from 3.7.1 to 3.9.1

Hi, I've put together an update to the Kafka port, to make it for 3.9.1. It also tightens up the JDK to need at least OpenJDK 23.

Regards,
-Jesse
Comment 1 Jesse Kempf 2025-05-22 00:12:20 UTC
Created attachment 260613 [details]
Patch for Kafka 3.7.1 -> 3.9.1
Comment 2 Jesse Kempf 2025-05-22 00:14:21 UTC
Created attachment 260614 [details]
Patch for Kafka 3.7.1 -> 3.9.1
Comment 3 Jesse Kempf 2025-05-22 00:50:37 UTC
Created attachment 260616 [details]
Patch for Kafka 3.7.1 -> 3.9.1

I realize that I was thinking about things the wrong way around when I tightened the Java version constraint, so I dropped that part of the change.

This is now a straight upgrade from 3.7.1 -> 3.9.1.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-22 01:27:09 UTC
Why not 4.0.0?
Comment 5 Jesse Kempf 2025-05-22 01:37:56 UTC
(In reply to Vladimir Druzenko from comment #4)

Because 4.0 is an x.0 release.

Believe it or not, but I'd meant this to be 3.9.0. It seems that I had a brainfart yesterday when I took my first stab at this upgrade, and as luck would have it the artifacts for 3.9.1 had already landed yesterday. Apparently today is the official release date for 3.9.1. I wasn't actually meaning to hop on something as soon as it was released.

3.9.x is the end of the line for Zookeeper-based cluster metadata, so going from 3.x -> 4.x for an existing cluster entails learning how to do a KRaft upgrade. I guess my thinking is that it's at least convenient to have a 3.9.x package one could manually install, regardless of where ports is at the moment.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-22 14:17:35 UTC
(In reply to Jesse Kempf from comment #5)
Ok. Waiting maintainer (or 2 weeks timeout).
Comment 7 Pavel Timofeev 2025-05-22 23:30:45 UTC
Comment on attachment 260616 [details]
Patch for Kafka 3.7.1 -> 3.9.1

Thank you for the contribution!
Comment 8 Pavel Timofeev 2025-05-22 23:31:25 UTC
This was my approval btw
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-05-23 00:16:53 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3ce0f71deb3cf62ab5df49b5ae7d40b368e642f5

commit 3ce0f71deb3cf62ab5df49b5ae7d40b368e642f5
Author:     Jesse Kempf <jessekempf@gmail.com>
AuthorDate: 2025-05-23 00:06:47 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-23 00:06:47 +0000

    net/kafka: Update 3.7.1 => 3.9.1

    Release Notes:
    https://archive.apache.org/dist/kafka/3.7.2/RELEASE_NOTES.html
    https://archive.apache.org/dist/kafka/3.8.0/RELEASE_NOTES.html
    https://archive.apache.org/dist/kafka/3.8.1/RELEASE_NOTES.html
    https://archive.apache.org/dist/kafka/3.9.0/RELEASE_NOTES.html
    https://archive.apache.org/dist/kafka/3.9.1/RELEASE_NOTES.html

    PR:             286985
    Approved by:    Pavel Timofeev <timp87@gmail.com> (maintainer)

 net/kafka/Makefile  | 10 ++++-----
 net/kafka/distinfo  |  6 +++---
 net/kafka/pkg-plist | 62 +++++++++++++++++++++++++++--------------------------
 3 files changed, 40 insertions(+), 38 deletions(-)
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-23 00:18:03 UTC
Thanks.
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-23 00:19:33 UTC
While here replace PORTVERSION with DISTVERSION in Makefile only.