From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: OpenJDK support Date: Mon, 8 Feb 2016 15:10:18 +0100 Message-ID: References: <20160208135740.GA27375@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSmWT-0004gv-91 for guix-devel@gnu.org; Mon, 08 Feb 2016 09:10:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSmWO-0003Lh-5P for guix-devel@gnu.org; Mon, 08 Feb 2016 09:10:37 -0500 Received: from sinope.bbbm.mdc-berlin.de ([141.80.25.23]:55595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSmWN-0003LP-SC for guix-devel@gnu.org; Mon, 08 Feb 2016 09:10:32 -0500 In-Reply-To: <20160208135740.GA27375@thebird.nl> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Pjotr Prins Cc: guix-devel@gnu.org Pjotr Prins writes: > To support the JVM we'll need to add the openjdk. > > Having a look at it I think it is doable. Only problem is that the > java compiler needs to be bootstrapped with itself.=20 > > In Nix they create a binary blob to bootstrap: > > let > # !!! These should be on nixos.org > src =3D if glibc.system =3D=3D "x86_64-linux" then > fetchurl { > url =3D http://tarballs.nixos.org/openjdk-bootstrap-x86_64-li= nux-2012-08-2 > 4.tar.xz; > sha256 =3D "0gla9dxrfq2w1hvgsnn8jg8a60k27im6z43a6iidi0qmwa0wa= h32"; > } > else if glibc.system =3D=3D "i686-linux" then > fetchurl { > url =3D http://tarballs.nixos.org/openjdk-bootstrap-i686-linu= x-2012-08-24. > tar.xz; > sha256 =3D "184wq212bycwbbq4ix8cc6jwjxkrqw9b01zb86q95kqpa8zy5= 206"; > } > else throw "No bootstrap for system"; > in > > How do we go about this one? We already have a JDK provided by the =E2=80=9Cjdk=E2=80=9D output of the= =E2=80=9Cicedtea=E2=80=9D packages. =E2=80=9CIcedTea=E2=80=9D is the name of the project that prov= ides a heavily patched framework allowing us to build the (patched) OpenJDK sources with free software only. Building the vanilla OpenJDK appparently isn=E2= =80=99t that easy =E2=80=93 and not really necessary since we have the IcedTea-if= ied version. We are bootstrapping with GCJ. ~~ Ricardo