From: Peter Korsgaard Date: Sun, 03 Jan 2016 21:50:46 +0100 Subject: [Buildroot] [PATCH] support/download: generate reproducible Hg archives In-Reply-To: <1451734549-27492-1-git-send-email-yann.morin.1998@free.fr> (Yann E. MORIN's message of "Sat, 2 Jan 2016 12:35:49 +0100") References: <1451734549-27492-1-git-send-email-yann.morin.1998@free.fr> Message-ID: <87bn92o09l.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Yann" == Yann E MORIN writes: > When hg directly creates the output file, the hash for that file changes > everytime. > However, if we just tell hg to output the archive on stdout and we do > the redirect to the file, then the archive is reproducible. > (The reason is that in the first case, a temporary file is created and > then compressed, and gzip is adding the filename and its timestamp in > the gzip header, while in the second case, there is no temporary file, > and thus no timestamp and thus it is reproducible.) > Signed-off-by: "Yann E. MORIN" > Cc: Yegor Yefremov > --- > Note: Yegor, you'll now be able to use the 'hg' method to download > reproducible archives! Hehe! ;-) Committed, thanks. -- Bye, Peter Korsgaard