sys-devel/gettext is one of the few packages that still depend on Java 8. It seems very likely that it is not ready for >11 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012105 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982526). Nevertheless there is some progress upstream. A patch is available. Reproducible: Always Expected Results: gettext builds/ runs with current LTS Java
(In reply to onkobu from comment #0) > [...] > Expected Results: > gettext builds/ runs with current LTS Java Compilation should not be the problem, at least for the split-off: https://github.com/gentoo/gentoo/pull/26163
Created attachment 864722 [details, diff] java 17 patch
from debian packages
I think 0.22 might actually work already and I just didn't update the ebuild..
(In reply to Sam James from comment #4) > I think 0.22 might actually work already and I just didn't update the > ebuild.. but why do we have to keep an old version of java that already sucks even when it's the latest
(In reply to Andrea Postiglione from comment #5) > (In reply to Sam James from comment #4) > > I think 0.22 might actually work already and I just didn't update the > > ebuild.. > > but why do we have to keep an old version of java that already sucks even > when it's the latest Sorry, to be clear, that was me noting "hm, I just need to take a look at this, gettext-0.22 might be ok once I fix it."
(In reply to Sam James from comment #6) I've been running this patch[1] for some time now without issue (specifically w/ i2p). Also, the relevant upstream bug[2] has been closed as fixed. Should be ready to just merge it. 1: https://github.com/gentoo/gentoo/pull/34854 2: https://savannah.gnu.org/bugs/index.php?63385
(In reply to Andrea Postiglione from comment #2) > Created attachment 864722 [details, diff] [details, diff] > java 17 patch Is it possible to replace "1.7" from the patch with "$(java-pkg_get-source)" and $(java-pkg_get-target) ? And using ">=virtual/jdk-1.8:*" and ">=virtual/jre-1.8:*" in the ebuild? Would it work with openjdk:21?
Sorry, I'd missed that 0.22 included it.
(In reply to Sam James from comment #9) > Sorry, I'd missed that 0.22 included it. I've tested https://github.com/gentoo/gentoo/pull/34854 and it works, both with openjdk:21 and openjdk-bin:24, i2p-2.7.0 builds fine with it, also with openjdk-bin:24.
Wait, so do we need the patch, or is the PR fine as it is? I'd rather merge the PR if it's ok then make more improvements incrementally.
(In reply to Sam James from comment #11) > Wait, so do we need the patch, or is the PR fine as it is? I'd rather merge > the PR if it's ok then make more improvements incrementally. PR is fine without any modification.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb93b6c2ac9229ef23bf157048686767434ea2a3 commit bb93b6c2ac9229ef23bf157048686767434ea2a3 Author: neeshy <neeshy@tfwno.gf> AuthorDate: 2023-11-05 23:01:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-22 17:26:48 +0000 sys-devel/gettext: build against java >=8 Closes: https://bugs.gentoo.org/888996 Signed-off-by: Nima Sadeghi <neeshy@tfwno.gf> Closes: https://github.com/gentoo/gentoo/pull/34854 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gettext/gettext-0.22.5-r1.ebuild | 203 +++++++++++++++++++++++++++++ 1 file changed, 203 insertions(+)