Bug 264748 - java/sqlitejdbc build requires java 8
Summary: java/sqlitejdbc build requires java 8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-18 09:04 UTC by Patrick Mackinlay
Modified: 2022-07-07 12:37 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Mackinlay 2022-06-18 09:04:26 UTC
Version 056 of the java/sqlitejdbc will not build with java version 11+. It requires java 8. Adding

JAVA_VERSION=   8

Fixes the build
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2022-06-26 16:42:50 UTC
(In reply to Patrick Mackinlay from comment #0)
It builds fine for me in amd64:

===>   sqlitejdbc-056_2 depends on file: /usr/local/openjdk8/bin/java - found

Also, there are no pkg-fallout messages for this port and amd64. Are you referring to arm64 as in https://lists.freebsd.org/archives/freebsd-pkg-fallout/2022-June/226406.html maybe?
Comment 2 Patrick Mackinlay 2022-06-26 17:11:05 UTC
My machine is amd64, if you build the port without any java jdk's installed it will work fine (it will install openjdk8). I have many jdk's on my machine, but I had deleted version openjdk8 and when I tried to build this port it failed because it picked openjdk11.
To reproduce the problem install openjdk11, remove all jdk's less than 11 and then try the build.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-07-07 12:32:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0276f6d332dc6cea04c3e1da35f71297fdb453b5

commit 0276f6d332dc6cea04c3e1da35f71297fdb453b5
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-07-07 12:30:52 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-07-07 12:30:52 +0000

    java/sqlitejdbc: this old port requires specific (8th) version of JDK

    It should be fairly easy to make it compatible against Java 8~11, but
    that's the task for another day.  While here, bump the source/target
    version to 1.6 and get rid of bogus `post-patch' target: LOCALBASE is
    already passed on the MAKE_ENV.

    PR:     264748

 java/sqlitejdbc/Makefile             |  7 ++-----
 java/sqlitejdbc/files/patch-Makefile | 21 +++++++++++++++------
 2 files changed, 17 insertions(+), 11 deletions(-)
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2022-07-07 12:37:06 UTC
The port does not currently build with 11th OpenJDK indeed.  While bumping the source/target version to 1.6 delays the failure, it still complains about the absence of javah(1) later.