Re: gradle reboot -- 2024W50 update




Good evening,

Here is a quick report about the (little) progress made this week.

Le 2024-12-09 12:08, sre4ever@free.fr a écrit :
Now the build fails on Kotlin issues.
And now I'm stuck on the (re)build of Kotlin 1.3.31 that currently FTBFS 
[1].
I will see this week how far I can go with this plan.
Not very far indeed, as was expected: I quickly realized that Gradle now 
depends on APIs that were introduced with Kotlin 1.3.50, not much later 
than the current Debian version. After downloading the ~4GiB Kotlin git 
repo (and running git gc --aggressive to claim back over 2 GiB) I tried 
to figure out if backporting some code from that version into Kotlin 
1.3.31 could work by copypasting the relevant parts of Kotlin sources 
into the Gradle project, just prefixing the package names as I did with 
Groovy. At some point I faced a wall: some of these parts are not in the 
repo, as they are generated during the build of Kotlin (protobuf etc).
That got me into rebuilding the Kotlin package, which I haven't achieved 
so far. I started from what's in the `master` branch with the patches of 
Vladimir Petko to rebuild with Java 21, repatched to rebuild with Java 
11 as the installed Kotlin compiler won't run with Java 21, and then got 
stuck on errors [2] that don't make sense to me, especially that one:
error: type mismatch: inferred type is org.jetbrains.org.objectweb.asm.tree.MethodNode but MethodNode! was expected
I also tried to rebuild the last published tag but it fails on the same 
error. To me, it looks like either a name clash with two different 
versions of the class (but I can't figure out what/where the other 
version could be), or a compiler bug. Unless someone here could give me 
some clue about what's going on, I will probably have to dive into some 
jdb debugging session, as IDEA won't sync/build/debug/highlight the 
project due to the outdated Gradle.
Anyway, the current plan for next week is still to fix the Kotlin build, 
or maybe decompile pregenerated classes, and try to figure out whether a 
backport of the necessary APIs is reasonably achievable.
RFS: is any DD from the Java Team willing to act as a sponsor for a few 
weeks to proceed with the reviews and uploads to experimental and 
unstable? (if not I would have to file a RFS bug)
Also would you allow me into the java group on Salsa so I can start 
working directly on some repos?
Cheers,


[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057513
[2]: http://paste.debian.net/1339720/

--
Julien Plissonneau Duquène


Reply to: