From fbe3d1e8d5bc0844070b5cfb74e870eb45920cf7 Mon Sep 17 00:00:00 2001 From: Jim MacArthur Date: Thu, 28 May 2015 16:34:41 +0000 Subject: Add java-build stratum, contaniing things necessary to build OpenJDK The use of the java-binary repo from Github goes against the policy we have defined for the Baserock reference systems, of having everything built from source code that is mirrored on git.baserock.org. However, building a Java compiler from source code super difficult so we can't really avoid this hack at present if we want to build other Java components from source using Baserock tooling. Change-Id: I9bc1892cbdbb3d3234b06d8a650b0c568254c0b5 --- strata/java/java-binary.morph | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 strata/java/java-binary.morph (limited to 'strata/java') diff --git a/strata/java/java-binary.morph b/strata/java/java-binary.morph new file mode 100644 index 00000000..c75f39b7 --- /dev/null +++ b/strata/java/java-binary.morph @@ -0,0 +1,16 @@ +name: java-binary +description: | + This is a temporary solution to the OpenJDK build problem. In the future + we expect to be able to build fully from scratch using IcedTea, but for now + we need an existing OpenJDK binary to build OpenJDK. +kind: chunk +configure-commands: [] +build-commands: +- cat j2sdk-image-jdk8build.tar.gz_* > jdk-8u20-linux-x64.tar.gz +install-commands: +- mkdir -p "$DESTDIR$PREFIX"/bin +- mkdir -p "$DESTDIR$PREFIX"/lib +- tar zxf jdk-8u20-linux-x64.tar.gz -C "$DESTDIR$PREFIX"/lib --no-same-owner +- ln -sfn "$PREFIX"/lib/j2sdk-image "$DESTDIR$PREFIX"/lib/java-8-openjdk +- ln -sfn "$PREFIX"/lib/j2sdk-image/jre/bin/java "$DESTDIR$PREFIX"/bin/ +- ln -sfn "$PREFIX"/lib/j2sdk-image/jre/bin/javac "$DESTDIR$PREFIX"/bin/ -- cgit v1.2.1