1 |
Hi folks, |
2 |
|
3 |
Second update: the user documentation of the Kotlin packages is now |
4 |
complete. It is available as a subpage under my user page on Gentoo |
5 |
Wiki: |
6 |
https://wiki.gentoo.org/wiki/User:Leo3418/Kotlin |
7 |
|
8 |
Thanks, |
9 |
Leo |
10 |
|
11 |
On Mon, Jul 5, 2021 at 6:30 PM Yuan Liao (Leo) <liaoyuan@×××××.com> wrote: |
12 |
> |
13 |
> Hi folks, |
14 |
> |
15 |
> The blog post discussing how I created the Kotlin library ebuilds has |
16 |
> been published at: |
17 |
> https://leo3418.github.io/2021/07/05/gentoo-build-kt-src.html |
18 |
> |
19 |
> Thanks, |
20 |
> Leo |
21 |
> |
22 |
> On Sun, Jul 4, 2021 at 10:03 PM Yuan Liao (Leo) <liaoyuan@×××××.com> wrote: |
23 |
> > |
24 |
> > Hi folks, |
25 |
> > |
26 |
> > I have been quite busy creating the ebuilds that build the Kotlin |
27 |
> > libraries from source during the past week, and I am pleased to report |
28 |
> > that the work is now complete and the ebuilds are installable and |
29 |
> > usable. Every Kotlin library listed here [1] can be built from source |
30 |
> > using those ebuilds. All ebuilds have been pushed to my fork of the |
31 |
> > Spark overlay [2]. |
32 |
> > |
33 |
> > To use the ebuilds to build the Kotlin libraries from source, binary |
34 |
> > JARs for kotlin-stdlib and kotlin-reflect pre-built by the upstream |
35 |
> > must be installed first for bootstrapping. Then, after the Kotlin |
36 |
> > compiler package -- dev-lang/kotlin-bin -- is installed, the libraries |
37 |
> > can be built from source. The exact commands to build and install the |
38 |
> > libraries from source are: |
39 |
> > |
40 |
> > env USE="binary" emerge -a1 dev-java/kotlin-stdlib dev-java/kotlin-reflect |
41 |
> > emerge --ask dev-lang/kotlin-bin |
42 |
> > emerge --ask --update --newuse --deep @world |
43 |
> > |
44 |
> > The ebuilds only use kotlinc and javac to build the Kotlin libraries. |
45 |
> > Although Gradle is used by the upstream to build Kotlin, it is not |
46 |
> > used in those ebuilds. I extracted the commands Gradle would run to |
47 |
> > build each library component to create those ebuilds. |
48 |
> > |
49 |
> > I am currently in the process of writing a blog post describing how I |
50 |
> > discovered the way to extract those commands from Gradle and |
51 |
> > surmounted various challenges in creating those ebuilds, and I have |
52 |
> > also planned to provide more documentation regarding installing and |
53 |
> > maintaining those packages. The blog post is supposed to be completed |
54 |
> > today, but I really cannot make it because there are really lots of |
55 |
> > things to talk about and my brain is slowing down as bedtime is coming |
56 |
> > closer and closer. I am sorry for the delay. Once it is published |
57 |
> > (hopefully tomorrow), I will post the link to it in a reply to this |
58 |
> > email. The link to the documentation will also be posted after it is |
59 |
> > done. |
60 |
> > |
61 |
> > Best regards, |
62 |
> > Leo |
63 |
> > |
64 |
> > [1]: https://github.com/JetBrains/kotlin/tree/v1.5.20/libraries |
65 |
> > [2]: https://github.com/Leo3418/spark-overlay/tree/master/dev-java#:~:text=kotlin-annotations-jvm |