From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YEODH-0001qY-Rh for mharc-grub-devel@gnu.org; Thu, 22 Jan 2015 15:18:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEODF-0001nx-N3 for grub-devel@gnu.org; Thu, 22 Jan 2015 15:18:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEODE-0000Ng-Qm for grub-devel@gnu.org; Thu, 22 Jan 2015 15:18:45 -0500 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:43623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEODE-0000Na-Ju for grub-devel@gnu.org; Thu, 22 Jan 2015 15:18:44 -0500 Received: by mail-wi0-f173.google.com with SMTP id r20so44615829wiv.0 for ; Thu, 22 Jan 2015 12:18:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=NoR465//hQfYHCx6o3p+8GfJKa/WVp85jZGJCCH4BRQ=; b=TmnWrdOy/EeVewBo5tp4jBpPqEtXe1QnHrLU4tEf8XfRp2wxXIUVkdWMEBykBdznla SDxTCHVPjG/ATN/5J2LGN4W61cJLHBbgpB75bEQvLTQbE4ilBKfVGmxPo+4a7e4x3C3v dNCBmTBPPOYp3yRzMktVL/L9djw4noBVnSwxRmELWK2r/Q6EU+YR9ywkKW2Y5zkNC+6H qqLhWgVoD+nVU8vLYYJlHoh9LLQ4w9yOkfGwNfg/1Zw0vvm0KS4pUPdVwTkCNtYf8WhI v9LLTRLH8qZjzNGclhiirHXfoLbpuf3I65cHfwRpwIT/GInWkCakKqzCrRSDh3QYcPM6 /w4w== X-Received: by 10.180.73.241 with SMTP id o17mr3667879wiv.16.1421957923972; Thu, 22 Jan 2015 12:18:43 -0800 (PST) Received: from ?IPv6:2a02:1205:501d:9210:c6e9:2fff:fe57:96ed? ([2a02:1205:501d:9210:c6e9:2fff:fe57:96ed]) by mx.google.com with ESMTPSA id b1sm167848wiz.6.2015.01.22.12.18.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 12:18:42 -0800 (PST) Message-ID: <54C158D3.9090806@gmail.com> Date: Thu, 22 Jan 2015 21:08:51 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Deterministic grub-mkimage References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cULTjumvHeWHhK9KRavprqWMW1R06JPeG" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22d X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2015 20:18:46 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cULTjumvHeWHhK9KRavprqWMW1R06JPeG Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29.12.2014 12:08, Andrew Clausen wrote: > Hi Jonathan, >=20 > On 29 December 2014 at 06:29, Jonathan McCune wr= ote: >>> One solution would be to: >>> * build deterministically by default by using a constant timestamp, = and >> >> I think doing this by default would be a poor choice, as most of the t= ime >> during development it is very useful to easily identify which version = / >> build / experiment / etc is in use. >=20 > I agree that during development, timestamps might be useful. Although > I've never found them particularly helpful myself -- they aren't as > easy as, say, having a text file sitting in the same directory saying > which git commit it is. In fact, including the git commit somewhere > in the binary would be both more helpful and deterministic. (I am > happy to supply a patch for this.) Have you ever used time stamps? >=20 We already have modinfo.sh. It would be a good place to put commit. In fact it already includes version. The best would be to add +g[-dirty] to version when building from git. My main concern is that EFI itself might use the timestamp for some weird caching but this shouldn't be the case. Other than that I'd be ok with hardcoding it to unix time 1420070400 (Jan 1, 2015, midnight UTC) Can you prepare the patches for both things? --cULTjumvHeWHhK9KRavprqWMW1R06JPeG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iF4EAREKAAYFAlTBWNMACgkQmBXlbbo5nOsbCQD/QGAr5kxG9G6liNToPk1/uNro iJ9wl9DF4lTkGGwz0b4A/jU4pCvcUO7oByVUHrPIz0pejhpYSebE2w1QT5HXQB/q =h065 -----END PGP SIGNATURE----- --cULTjumvHeWHhK9KRavprqWMW1R06JPeG--