From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: OpenJDK support Date: Mon, 08 Feb 2016 16:22:25 +0100 Message-ID: <87vb5zfcr2.fsf@gnu.org> 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]:42651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSne5-0004TH-AO for guix-devel@gnu.org; Mon, 08 Feb 2016 10:22:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSne1-0004xI-AC for guix-devel@gnu.org; Mon, 08 Feb 2016 10:22:33 -0500 In-Reply-To: (Ricardo Wurmus's message of "Mon, 8 Feb 2016 15:10:18 +0100") 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: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus skribis: > 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-lin= ux-2012-08-2 >> 4.tar.xz; >> sha256 =3D "0gla9dxrfq2w1hvgsnn8jg8a60k27im6z43a6iidi0qmwa0wah= 32"; >> } >> else if glibc.system =3D=3D "i686-linux" then >> fetchurl { >> url =3D http://tarballs.nixos.org/openjdk-bootstrap-i686-linux= -2012-08-24. >> tar.xz; >> sha256 =3D "184wq212bycwbbq4ix8cc6jwjxkrqw9b01zb86q95kqpa8zy52= 06"; >> } >> 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. And kudos to you Ricardo for doing the right thing. It=E2=80=99s much more confidence-inspiring than the above snippet. :-) Ludo=E2=80=99.