Bug 294222 - security/autofirma: depends on deprecated openjdk24
Summary: security/autofirma: depends on deprecated openjdk24
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: 2026-04-03 08:02 UTC by Ronald Klop
Modified: 2026-04-04 11:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Klop freebsd_committer freebsd_triage 2026-04-03 08:02:46 UTC
Openjdk24 is about to be deleted around 2026-06-12.
Can you modify JAVA_VERSION?
NB: Java default is 25 nowadays, so removing JAVA_VERSION might also be an option.

If needed I can commit the change for you.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2026-04-03 16:00:17 UTC
(In reply to Ronald Klop from comment #0)
Hi Ronald,

Unfortunately, the port does not work (half of it) with openjdk25(https://reviews.freebsd.org/D53807?id=166691#inline-318869)

security/autofirma is used for two purposes: 

 * digitally sign documents like PDFs and such. To that end, it behaves like a normal Java application. You select the file, the certificate and sign it. This part do work with openjdk25

 * as an applet that is loaded from certain websites to digitally sign some operations done online. This part works with openjdk24 but fails with openjdk25.

For fixing 2, we could send a patch upstream. This is unlikely to work since upstream doesn't support openjdk at all.
The other option is to download the code, patch it to support openjdk25 and rebuild it. This will need more work. Last time I checked, it did not build out-of-the-box due to some empty MANIFEST. I'm not a Java developer so this will take some more work.
Comment 2 Ronald Klop freebsd_committer freebsd_triage 2026-04-04 08:01:41 UTC
(In reply to Fernando Apesteguía from comment #1)
I understand.
Does AutoFirma work with openjdk21? Jdk21 is LTS (Long Term Support) and will be available for quite some time.
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2026-04-04 11:42:29 UTC
(In reply to Ronald Klop from comment #2)
It seem it does!
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2026-04-04 11:43:45 UTC
Committed,

Thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-04-04 11:44:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=199ea2e3b76de405735ad1a62daa23b5b0ecf096

commit 199ea2e3b76de405735ad1a62daa23b5b0ecf096
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2026-04-04 11:40:52 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2026-04-04 11:43:04 +0000

    security/autofirma: Use LTS Java 21

    PR:             294222
    Reported by:    ronald@

 security/autofirma/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)