From: Ian Jackson Subject: Re: [OSSTEST PATCH] mg-debian-installer-update: produce deterministic output Date: Mon, 12 Jan 2015 12:20:49 +0000 Message-ID: <21683.48161.426135.47187@mariner.uk.xensource.com> References: <1420903137-21819-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1420903137-21819-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[OSSTEST PATCH] mg-debian-installer-update: produce deterministic output"): > Currently rerunning mg-debian-install-update when the external files > have changed still produces differences in the local files produced ^ Missing "not" ? > during post-processing. > > Avoid these differences by: > > - Using gzip -n, which avoids storing a timestamp in the gzip > header (as well as the name, which we don't need). > - Using pax -M norm, which normalises all timestamps (among other > things, such as the owner, which we don't care about) > - Using tar --mtime, with a reference within the dpkg-deb created > hierarchy (which has timestamps from the package and is therefore > dependent only on the downloaded package revision) > > With this the results of two invocations of > mg-debian-installer-update(-all) are identical (assuming no changes to > the downloaded files) as demonstrated by runnign this quick hack: Excellent. Apart from the missing word in the description, Acked-by: Ian Jackson Thanks, Ian.