I tried solving bug 268252 by using JAVA_ANT_ENCODING="UTF-8" variable. This causes the cElementTree rewriter to be used instead of 3rd generation rewriter. The problem is it does not append gentoo.classpath to <java> calls, so the build fails. I tried setting JAVA_ANT_CLASSPATH_TAGS="javac java" but it did not help, the cElementTree rewriter ignores that. Moreover, since default JAVA_ANT_CLASSPATH_TAGS is "javac xjavac" I start to wonder why 3rd-gen rewriter changes <java> calls as well? Couldn't find the reason.
The state of rewriters is quite messy IMHO, there are too many of them and it makes the eclass complex. Maybe we could get rid of all pre-gen3 since the version of javatoolkit that's pulled guarantees gen3? And then define and document properly all supported JAVA_ANT_ parameters and make sure they work in the remaining rewriters...
Well I was thinking that instead of messing with the current bloated eclasses any further I should just write them better from scratch.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5186af37046684bdb34b09f4092d455789d86219 commit 5186af37046684bdb34b09f4092d455789d86219 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2024-10-02 14:38:14 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-10-08 07:09:38 +0000 java-ant-2.eclass: Mark as dead The last ebuilds using it were media-libs/opencv-{4.8.1-r2,4.9.0-r1} Bug: https://bugs.gentoo.org/268313 Bug: https://bugs.gentoo.org/318625 Bug: https://bugs.gentoo.org/539958 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38851 Signed-off-by: Florian Schmaus <flow@gentoo.org> eclass/java-ant-2.eclass | 1 + 1 file changed, 1 insertion(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28ab51fad9acb876a8fef5dd56f656afcd2776c commit f28ab51fad9acb876a8fef5dd56f656afcd2776c Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2024-11-03 09:21:35 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-11-05 10:46:51 +0000 java-ant-2.eclass: Remove dead eclass Bug: https://bugs.gentoo.org/268313 Bug: https://bugs.gentoo.org/318625 Bug: https://bugs.gentoo.org/539958 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39180 Signed-off-by: Florian Schmaus <flow@gentoo.org> eclass/java-ant-2.eclass | 440 ----------------------------------------------- 1 file changed, 440 deletions(-)
java-ant-2.eclass is gone.
Closing with reference to https://bugs.gentoo.org/942810#c1