Gentoo Archives: gentoo-soc

From: "Yuan Liao (Leo)" <liaoyuan@×××××.com>
To: gentoo-soc@l.g.o
Subject: [gentoo-soc] Week 4 Report for Big Data Infrastructure and H2O ebuilds Project
Date: Mon, 05 Jul 2021 05:03:55
Message-Id: CACk4dkvUMmKqdXp2wcVSz8-zdozYLhFwMSykOP3+nOWR6kecbg@mail.gmail.com
1 Hi folks,
2
3 I have been quite busy creating the ebuilds that build the Kotlin
4 libraries from source during the past week, and I am pleased to report
5 that the work is now complete and the ebuilds are installable and
6 usable. Every Kotlin library listed here [1] can be built from source
7 using those ebuilds. All ebuilds have been pushed to my fork of the
8 Spark overlay [2].
9
10 To use the ebuilds to build the Kotlin libraries from source, binary
11 JARs for kotlin-stdlib and kotlin-reflect pre-built by the upstream
12 must be installed first for bootstrapping. Then, after the Kotlin
13 compiler package -- dev-lang/kotlin-bin -- is installed, the libraries
14 can be built from source. The exact commands to build and install the
15 libraries from source are:
16
17 env USE="binary" emerge -a1 dev-java/kotlin-stdlib dev-java/kotlin-reflect
18 emerge --ask dev-lang/kotlin-bin
19 emerge --ask --update --newuse --deep @world
20
21 The ebuilds only use kotlinc and javac to build the Kotlin libraries.
22 Although Gradle is used by the upstream to build Kotlin, it is not
23 used in those ebuilds. I extracted the commands Gradle would run to
24 build each library component to create those ebuilds.
25
26 I am currently in the process of writing a blog post describing how I
27 discovered the way to extract those commands from Gradle and
28 surmounted various challenges in creating those ebuilds, and I have
29 also planned to provide more documentation regarding installing and
30 maintaining those packages. The blog post is supposed to be completed
31 today, but I really cannot make it because there are really lots of
32 things to talk about and my brain is slowing down as bedtime is coming
33 closer and closer. I am sorry for the delay. Once it is published
34 (hopefully tomorrow), I will post the link to it in a reply to this
35 email. The link to the documentation will also be posted after it is
36 done.
37
38 Best regards,
39 Leo
40
41 [1]: https://github.com/JetBrains/kotlin/tree/v1.5.20/libraries
42 [2]: https://github.com/Leo3418/spark-overlay/tree/master/dev-java#:~:text=kotlin-annotations-jvm

Replies