resolve ftbfs with Java 25
This MR addresses #1108573.
Kotlin needs to be built against updated intellij-community-idea to pick up new version parsing routine. kapt depends on com.sun.tools - a new patch is added to adapt the code to the interface changes. The change is breaking and the patch is applied conditionally through the hack in d/rules - it is added or removed based on the Java major version and then the patch series is reapplied. This logic should be dropped after Java 25 default transition.
Testing:
- built in sid chroot with updated intellij-community-idea
- built in default Java 25 chroot with updated intellij-community-idea
- built in default Java 25 chroot with updated intellij-community-idea and kotlin
Edited by Vladimir Petko