From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 14 21:13:38 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 06F81106566C; Sun, 14 Nov 2010 21:13:38 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2001:470:9a47::1]) by mx1.freebsd.org (Postfix) with ESMTP id 414B18FC19; Sun, 14 Nov 2010 21:13:37 +0000 (UTC) Received: from localhost (acme.spoerlein.net [188.72.220.29]) by acme.spoerlein.net (8.14.4/8.14.4) with ESMTP id oAELDYGF012290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Nov 2010 22:13:34 +0100 (CET) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1289769214; bh=4m/QvX4SrzyghDlUxOicvvGoA5XM0GtR6iYad0kHdPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=i50gOw1RbOrdKfnDi+PL+uGJXWvshuMij8TjPrsR3oqtVd3tL46+5HGj8RZAWPfOX dIXkclPYq/1RT6BPnDXZUJKBw96/YhSM1rhJUr+D7+MrQMnTprZISqdtcfTVNQfCEG DWT4SpHiAH2H1zSMcHx6mw/vz0I7tf9gjHicr72Q= Date: Sun, 14 Nov 2010 22:13:34 +0100 From: =?utf-8?B?U3DDtnJsZWlu?= To: Erik Cederstrand Message-ID: <20101114211334.GG64243@acme.spoerlein.net> Mail-Followup-To: Erik Cederstrand , Dimitry Andric , Giorgos Keramidas , FreeBSD Hackers References: <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> <4CE04750.8060802@FreeBSD.org> <1B779A27-D8AD-4479-AC43-7F5557B720D4@cederstrand.dk> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <1B779A27-D8AD-4479-AC43-7F5557B720D4@cederstrand.dk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Giorgos Keramidas , FreeBSD Hackers , Dimitry Andric 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 21:13:38 -0000 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 14.11.2010 at 21:57:25 +0100, Erik Cederstrand wrote: >=20 > Den 14/11/2010 kl. 21.32 skrev Dimitry Andric: >=20 > > 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, > >=20 > > 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. >=20 > In this case the timestamp + rev. is not sufficient to reproduce the kern= el anyway. You'd need to store externally the non-standard contents of conf= files, local diffs etc. on all your non-standard builds. You could do all = sorts of fun stuff, even fool the rev. number or timestamp if you wanted. >=20 > I'm just saying that for the standard user on a standard GENERIC kernel (= and world for that matter) - the revision number should be sufficient for e= =2Eg. filing a PR. If you need the timestamp, there's the mtime. It might not be very easy, going from revision to timestamp. It is still very useful to know the rough timeframe when a kernel was built, as that might give you the "age" of the source tree. This is of course not a very good mapping, and the reason we have both the revision number in there, but also something a human understands. If this timestamp must be fixed, my vote would be on using the timestamp of the svn revision the build was using as a source. But it should be made clear, that this is then no longer the built timestamp, but the source repo timestamp. Uli --ew6BAiZeqk4r7MaW Content-Type: application/x-pkcs7-signature Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIIPCQYJKoZIhvcNAQcCoIIO+jCCDvYCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC DHUwggUwMIIDGKADAgECAgMInfMwDQYJKoZIhvcNAQEFBQAweTEQMA4GA1UEChMHUm9vdCBD QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNp Z25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2VydC5vcmcwHhcN MTAwNTA4MjEyNjUwWhcNMTIwNTA3MjEyNjUwWjA8MRgwFgYDVQQDFA9VbHJpY2ggU3D2cmxl aW4xIDAeBgkqhkiG9w0BCQEWEXVxc0BzcG9lcmxlaW4ubmV0MIIBIjANBgkqhkiG9w0BAQEF AAOCAQ8AMIIBCgKCAQEAueVoTQDswlZczHBpS954Fl+D3Lzv/iYroev/X5062gfN3A8IsFcM Jpc/BErc7prdFzPoDjlprvMyA60MRT1I9YYqgjFnxH7tUV95Z42XgcVvtpL6u5A8O0029Ob/ RTXFuvXywFGfVKdHsoDimkUmviqXveJxjlHqhNDLiN1/lwIpyTZ63s+wTn/jrxVznwUHK+mG Clp7KbGh4n0X9zK/hFmSfLazjsg94HDT7D8SgoWAKaddEgq0qrfUTNK/g6wqAY3egNyrxbMT ie5GqL1IA89+xeQqNxKi/WX4XGLvUGA038ptFqtjTH/0twWM8dGB2cbehgYeCK4t29Zif2Kk PwIDAQABo4H9MIH6MAwGA1UdEwEB/wQCMAAwVgYJYIZIAYb4QgENBEkWR1RvIGdldCB5b3Vy IG93biBjZXJ0aWZpY2F0ZSBmb3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