From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 14 20:32:09 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2321106566C for ; Sun, 14 Nov 2010 20:32:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 99B628FC12 for ; Sun, 14 Nov 2010 20:32:09 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:20d4:5ad4:8ef9:2ce4] (unknown [IPv6:2001:7b8:3a7:0:20d4:5ad4:8ef9:2ce4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ACFDC5C43; Sun, 14 Nov 2010 21:32:08 +0100 (CET) Message-ID: <4CE04750.8060802@FreeBSD.org> Date: Sun, 14 Nov 2010 21:32:16 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13pre) Gecko/20101113 Lanikai/3.1.7pre MIME-Version: 1.0 To: Erik Cederstrand References: <718D8E86-EA2E-4D07-BAFF-5D8D093FD296@cederstrand.dk> <20101011084733.GM2392@deviant.kiev.zoral.com.ua> <95F3B27C-42E6-4267-9965-AC3219310C35@cederstrand.dk> <20101021175748.GD19295@acme.spoerlein.net> <20101022100134.GL19295@acme.spoerlein.net> <8B6E3E35-68AF-42ED-98CF-E2A4448DAA11@cederstrand.dk> <0CF7C325-E7D9-4C51-8E60-9A0243D2FFFE@cederstrand.dk> In-Reply-To: <0CF7C325-E7D9-4C51-8E60-9A0243D2FFFE@cederstrand.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Giorgos Keramidas , =?ISO-8859-1?Q?Sp=F6rlein?= , FreeBSD Hackers , =?ISO-8859-1?Q?Ulrich_?= Subject: Re: Deterministic builds? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 20:32:10 -0000 On 2010-11-14 21:22, Erik Cederstrand wrote: > I'm curious as to why this might be useful? Would the mtime of the > file not be be sufficient? I can only think of debugging purposes, but > apart from the timestamp, two kernels with the same rev. would be > bitwise identical, This does not have to be the case. For example, if you have have local modifications, or use different settings in make.conf or src.conf. Similarly, the host on which something is built can be interesting metadata, because not all hosts are equal. > If it is useful, why not brand all binaries with a rev. number and a timestamp? There are compilers that automatically brand every binary with a "built on" timestamp. If you want to 'compare' such binaries, you simply need a tool that disregards the timestamps.