Bug 297263 - databases/mariadb-java-client: Update to 3.5.10
Summary: databases/mariadb-java-client: Update to 3.5.10
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-04 07:52 UTC by Dan
Modified: 2026-08-12 14:32 UTC (History)
1 user (show)

See Also:


Attachments
patch against main mariadb java client to 3.5.10 (3.03 KB, patch)
2026-08-04 07:52 UTC, Dan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2026-08-04 07:52:11 UTC
Created attachment 273435 [details]
patch against main mariadb java client to 3.5.10

Here is the patch against main for the precompiled mariadb java client jar.

I've changed a few things (nothing that major):

- now the .jar file is created without linking, without the filename having the version appended. This is to help those who just load whole directories of java classes, and the version installed is in the pkg anyway, so it's redundant to have it in the filename

- I have updated the pkg description to quote verbatim from the download site, but added "may work with other versions of java > 8"
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2026-08-05 17:38:32 UTC
(In reply to Dan from comment #0)
Java Version(s): Java 25, Java 21, Java 17, Java 11, Java 8
Recommended MariaDB Connector/J Release Series: MariaDB Connector/J 3.5, 3.4, 3.3[1]
JDBC Version: JDBC 4.5

https://mariadb.com/docs/connectors/mariadb-connector-j/about-mariadb-connector-j#java-compatibility
Comment 2 Dan 2026-08-06 06:49:05 UTC
(In reply to Vladimir Druzenko from comment #1)

Do you want me to do or change anything?
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2026-08-06 08:53:30 UTC
(In reply to Dan from comment #2)
In new version of the pkg-descr:
> This version of MariaDB Connector/J is for Java 8, Java 11, Java 17 and Java 21.

You are the maintainer and it is your right to change the pkg-descr, but the current information is more complete and correct than the new version (IMHO).
Comment 4 Dan 2026-08-06 13:12:37 UTC
(In reply to Vladimir Druzenko from comment #3)

I'm just quoting directly from https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector which is the only reason I changed it, since I expect that the source of the .jar itself is supposedly correct.

I'm happy changing it, unless you're very unhappy?
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2026-08-10 00:27:54 UTC
I think the information on this link is more up-to-date, since it mentions a newer version of Java:
https://mariadb.com/docs/connectors/mariadb-connector-j/about-mariadb-connector-j#java-compatibility

I don't want to confuse users about which versions of Java are officially supported by upstream.
Comment 6 Dan 2026-08-10 08:28:05 UTC
(In reply to Vladimir Druzenko from comment #5)

Okay, that's a good point.

Should I produce a new patch or can you patch the patch?

I trust you to change it if you can, if that's simpler?
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2026-08-10 22:50:54 UTC
(In reply to Dan from comment #6)
I wouldn't change the pkg-descr.
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-08-12 14:30:18 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=959a9eca0741686d2d1979a2a857fd845b31ca60

commit 959a9eca0741686d2d1979a2a857fd845b31ca60
Author:     Dan <dmayoss@gmail.com>
AuthorDate: 2026-08-12 14:05:13 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-08-12 14:13:55 +0000

    databases/mariadb-java-client: Update 3.5.8 => 3.5.10

    Release Notes:
    https://mariadb.com/docs/release-notes/connectors/java/3.5/3.5.9
    https://mariadb.com/docs/release-notes/connectors/java/3.5/3.5.10

    - Now the .jar file is created without linking, without the filename
      having the version appended. This is to help those who just load whole
      directories of java classes, and the version installed is in the pkg
      anyway, so it's redundant to have it in the filename.
    - Add EXTRACT_ONLY= to prevent the .jar file from being unzipped.

    PR:             297263
    Sponsored by:   UNIS Labs
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>

 databases/mariadb-java-client/Makefile | 12 +++++-------
 databases/mariadb-java-client/distinfo |  6 +++---
 2 files changed, 8 insertions(+), 10 deletions(-)
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2026-08-12 14:32:35 UTC
Thanks.