Summary: | net-wireless/unifi-7.5.176 does not start on Java 17: Unable to make private java.time.Instant(long,int) accessible | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jyrki Launonen <codez_iccd_99> |
Component: | Current packages | Assignee: | Conrad Kostecki <conikost> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | drserge, joakim.tjernlund, world.root |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://community.ui.com/releases/UniFi-Network-Application-7-5-176/0a224764-0603-4a8b-a038-1a7d59c6615c#comment/93964db1-3ca3-4d8a-a909-583bde71e446 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/usr/bin/unifi patch
Patch for unifi-7.5.176.ebuild |
Description
Jyrki Launonen
2023-10-03 17:51:04 UTC
I confirm! Same issue with: * dev-java/openjdk-17.0.6_p10 * net-wireless/unifi-7.5.176 I haven't tried the fix, but it makes sense indeed. Created attachment 872190 [details, diff]
/usr/bin/unifi patch
Successfully started unifi 7.5.176 with =dev-java/openjdk-jre-bin-17.0.6_p10 after adding:
--add-opens java.base/java.time=ALL-UNNAMED
to gjl_java_args in /usr/bin/unifi
Created attachment 872221 [details, diff]
Patch for unifi-7.5.176.ebuild
Works great! This can be fixed in the build itself (patch attached).
However please note that --add-opens is not supported yet in JDK 8, as far as I know.
(In reply to Joël from comment #3) > Created attachment 872221 [details, diff] [details, diff] > Patch for unifi-7.5.176.ebuild > > Works great! This can be fixed in the build itself (patch attached). > > However please note that --add-opens is not supported yet in JDK 8, as far > as I know. Java 17 is a requirement for Unifi 7.5.176 AFAIK. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3cf91a73f24a075c2320e1cb744dbff27ff17ab commit e3cf91a73f24a075c2320e1cb744dbff27ff17ab Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2023-10-09 21:58:44 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2023-10-09 21:59:40 +0000 net-wireless/unifi: add needed java opts Closes: https://bugs.gentoo.org/915126 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> .../unifi/{unifi-7.5.176.ebuild => unifi-7.5.176-r1.ebuild} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Well done, thank you! |