Gentoo overlay to bootstrap OpenJDK/Rust/Go
Go to file
Andrius Štikonas 09a6466d26 icedtea-3.21: fix build on musl.
For now tested on aarch64, amd64 probably needs further fixes.
2022-01-09 00:03:28 +00:00
app-arch/fastjar Add fastjar. 2022-01-03 19:03:29 +00:00
dev-java icedtea-3.21: fix build on musl. 2022-01-09 00:03:28 +00:00
dev-lang Add new rust versions. 2021-11-14 18:02:57 +00:00
metadata Add openjdk:9 and openjdk:10 ebuilds for bootstrapping openjdk:11 2019-11-03 15:41:49 +00:00
profiles Change repository name to comply with PMS. 2020-06-04 21:45:47 +01:00
virtual Add new rust versions. 2021-11-14 18:02:57 +00:00
README.md Fix README. 2021-12-18 12:06:41 +00:00
bootstrap.conf rename the repo to gentoo-bootstrap. 2020-05-03 20:32:54 +01:00

README.md

Bootstrapping OpenJDK 8

# If you are on arm64, you first need to unmask app-arch/fastjar
sudo emerge -a1v =dev-java/icedtea-3.7.0
sudo emerge -av dev-java/openjdk:8
sudo emerge -a --depclean # Remove old software that was used for bootstrapping

Note: you need to do it in two steps as currently ant-core:bootstrap is not co-installable with ant-core:0 from the Gentoo tree.

Bootstrapping OpenJDK 11

sudo emerge -a1v =dev-java/openjdk-11.0.9_p11

At this point you can remove this overlay and install OpenJDK from main tree:

sudo emerge -a dev-java/openjdk:11

Bootstrapping story

We first compile fastjar and jikes java compiler both of which are written in C++. This is enough to compile an old version of GNU Classpath 0.93. Then we compile an old version of JamVM 1.5.1. This serves as our initial Java Runtime Environment.

We use this to compile ant 1.8.1 which then allows us to build ecj-3.2. This allows us to compile GNU Classpath 0.99 which comes with more java tools (e.g. javah). Then we compile JamVM 2.0.0. This serves as our second Java environment.

Finally, we compile git snapshot of GNU Classpath which has a much better support for Java 1.6. Then we compile a slightly patched ecj-4.2. Together with JamVM 2.0.0 this will serve as Java environment that can bootstrap Icedtea 2 (Java 7). Then we use it to build Icedtea 3 and subsequent OpenJDK versions.