From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: "jar" tool and and reproducible builds - how? Date: Mon, 4 Nov 2019 22:43:34 +0100 Message-ID: References: <20191104181842.0d392ece@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c9f4e705968c358e" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58896) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRk8a-0006xu-Cj for guix-devel@gnu.org; Mon, 04 Nov 2019 16:43:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRk8Z-0000tR-6S for guix-devel@gnu.org; Mon, 04 Nov 2019 16:43:48 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:39103) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRk8Y-0000rO-Vn for guix-devel@gnu.org; Mon, 04 Nov 2019 16:43:47 -0500 Received: by mail-ed1-x52f.google.com with SMTP id l25so14394069edt.6 for ; Mon, 04 Nov 2019 13:43:46 -0800 (PST) In-Reply-To: <20191104181842.0d392ece@scratchpost.org> 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" To: Danny Milosavljevic Cc: Guix-devel --000000000000c9f4e705968c358e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Danny, Danny Milosavljevic ezt =C3=ADrta (id=C5=91pont: 2= 019. nov. 4., H, 18:18): > Hi, > > I'm trying to package nesc which has some small tools written in Java. > It compiles them using "javac" and then packs the result using "jar". > > If I want > > guix build --rounds=3D2 nesc > > to pass, how do I best proceed? > > I tried > > (substitute* "tools/Makefile.in" > ((" jar cf \\.\\./nesc.jar") > " zip -0 -X ../nesc.jar META-INF/MANIFEST.MF ")) > > but that doesn't seem to be enough. > > What diff remains there? There might be more jars or jmods inside... Most of the trickery should be in ant build system. > WIP attached. > > Furthermore, I think it would be nice to patch our "jar" tool in > icedtea:jdk > so that it provides an option to disable timestamps (not put the timestam= p > field into the generated ZIP file in the first place). I've thus unpacke= d > icedtea but I can't find where the source code to "jar" is. > I don't know right now, but have a look later. Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 --000000000000c9f4e705968c358e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Danny,

Danny Milosavljevic = <dannym@scratchpost.org>= ; ezt =C3=ADrta (id=C5=91pont: 2019. nov. 4., H, 18:18):
Hi,

I'm trying to package nesc which has some small tools written in Java.<= br> It compiles them using "javac" and then packs the result using &q= uot;jar".

If I want

=C2=A0 guix build --rounds=3D2 nesc

to pass, how do I best proceed?

I tried

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(substitute* "tools/Ma= kefile.in"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((" jar cf \\.\\./nes= c.jar")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0" zip -0 -X ../= nesc.jar META-INF/MANIFEST.MF "))

but that doesn't seem to be enough.


What diff remains there? There might b= e more jars or jmods inside...
Most of the trickery should be in = ant build system.
=C2=A0
WIP attached.

Furthermore, I think it would be nice to patch our "jar" tool in = icedtea:jdk
so that it provides an option to disable timestamps (not put the timestamp<= br> field into the generated ZIP file in the first place).=C2=A0 I've thus = unpacked
icedtea but I can't find where the source code to "jar" is.

I don't know right now,= but have a look later.

Best regards,
g_= bor
--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:= CF63:0B21
--000000000000c9f4e705968c358e--