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: Tue, 5 Nov 2019 12:53:24 +0100 Message-ID: References: <20191104181842.0d392ece@scratchpost.org> <20191105104942.519cae91@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001403df059698153b" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49931) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRxP4-00042t-Nb for guix-devel@gnu.org; Tue, 05 Nov 2019 06:53:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRxP3-0001Be-3P for guix-devel@gnu.org; Tue, 05 Nov 2019 06:53:42 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:38117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRxP2-00018t-OW for guix-devel@gnu.org; Tue, 05 Nov 2019 06:53:41 -0500 Received: by mail-ed1-x52f.google.com with SMTP id s10so915355edi.5 for ; Tue, 05 Nov 2019 03:53:37 -0800 (PST) In-Reply-To: <20191105104942.519cae91@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 --0000000000001403df059698153b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Danny Milosavljevic ezt =C3=ADrta (id=C5=91pont: 2= 019. nov. 5., K, 10:49): > Hi G=C3=A1bor, > > > What diff remains there? There might be more jars or jmods inside... > > Most of the trickery should be in ant build system. > > This package does not use ant-build-system or any other java build system > since > there are only very few Java tools in nesc (I'm thinking of disabling > those, > too). > > diffoscope states only the following, via "zipinfo -v" on > "lib/ncc/nesc.jar": > > - file last modified on (DOS date/time): 2019 Nov 4 17:10:26 > + file last modified on (DOS date/time): 2019 Nov 4 17:10:56 > This looks like a jar timestamps issue. Adding a phase similar to strip-jar-timestamps in ant-build-system should work. It extracts the jar to a temporary directory, resets file timestamps, and then repacks it, and resets the timestamp on the archive. Could you check if that works for you? > > It's repeated a lot of times. > > No other files but "lib/ncc/nesc.jar" are affected. > apply git send email > > I don't know right now, but have a look later. > > Thanks! > Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 --0000000000001403df059698153b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

<= div dir=3D"ltr" class=3D"gmail_attr">Danny Milosavljevic <dannym@scratchpost.org> ezt =C3=ADrta (i= d=C5=91pont: 2019. nov. 5., K, 10:49):
Hi G=C3=A1bor,

> What diff remains there? There might be more jars or jmods inside... > Most of the trickery should be in ant build system.

This package does not use ant-build-system or any other java build system s= ince
there are only very few Java tools in nesc (I'm thinking of disabling t= hose,
too).

diffoscope states only the following, via "zipinfo -v" on "l= ib/ncc/nesc.jar":

=C2=A0-=C2=A0 file last modified on (DOS date/time):=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 2019 Nov 4 17:10:26
=C2=A0+=C2=A0 file last modified on (DOS date/time):=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 2019 Nov 4 17:10:56

This = looks like a jar timestamps issue. Adding a phase similar to strip-jar-time= stamps in ant-build-system should work.
It extracts the jar to a = temporary directory, resets file timestamps, and then repacks it, and reset= s the timestamp on the archive.
Could you check if that works= for you?
=C2=A0

It's repeated a lot of times.

No other files but "lib/ncc/nesc.jar" are affected.
apply git send email
> I don't know right now, but have a look later.

Thanks!

Best regards,
g_b= or
--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:C= F63:0B21
--0000000000001403df059698153b--