From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] Improve ant-build-system. Date: Thu, 24 Mar 2016 12:08:03 -0400 Message-ID: <20160324160803.GA28393@jasmine> References: <20160324153341.GA27637@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj7nn-0002JT-Sn for guix-devel@gnu.org; Thu, 24 Mar 2016 12:08:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj7ni-0001Wc-O9 for guix-devel@gnu.org; Thu, 24 Mar 2016 12:08:03 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj7ni-0001WS-JJ for guix-devel@gnu.org; Thu, 24 Mar 2016 12:07:58 -0400 Content-Disposition: inline In-Reply-To: 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 On Thu, Mar 24, 2016 at 04:57:11PM +0100, Ricardo Wurmus wrote: > > Leo Famulari writes: > > > On Thu, Mar 24, 2016 at 03:50:38PM +0100, Ricardo Wurmus wrote: > >> Hi Guix, > >> > >> our ant-build-system currently throws away the jar manifest, because it > >> was difficult to control its timestamp. Without a manifest many jars > >> cannot be used, though. Oops! > >> > >> The manifest and the directory it is in always get the current time, > >> which is very annoying. Since controlling the timestamp is not possible > >> with “jar”, this patch repacks the jar archive with “zip”. The only > >> thing we need to take care of is to ensure that the manifest file > >> appears first. > > > > So, the timestamp issue is avoided by using "zip"? Just curious, I would > > want to block this change regardless. I meant to write "wouldn't". > > Correct. “jar” doesn’t just create an archive, it also sets the > timestamp of the manifest. “zip” doesn’t care about manifest timestamps > and will just take the files as they are. Since we reset timestamps of > all files in the archive this means that the manifest will have the same > timestamp as any other file in the archive. This makes the jar archive > reproducible. Cool, I'm glad we have this option! > > ~~ Ricardo