Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2010 22:41:30 +0100
From:      keramida@freebsd.org (Giorgos Keramidas)
To:        Erik Cederstrand <erik@cederstrand.dk>
Cc:        Ulrich =?iso-8859-1?Q?Sp=F6rlein?= <uqs@spoerlein.net>, FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: Deterministic builds?
Message-ID:  <xeiafwv34m7p.fsf@kobe.laptop>
In-Reply-To: <0CF7C325-E7D9-4C51-8E60-9A0243D2FFFE@cederstrand.dk> (Erik Cederstrand's message of "Sun, 14 Nov 2010 21:22:53 %2B0100")
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> <C297DE8F-0842-41C2-A930-A15AA0F3B3BB@cederstrand.dk> <20101022100134.GL19295@acme.spoerlein.net> <8B6E3E35-68AF-42ED-98CF-E2A4448DAA11@cederstrand.dk> <xeia1v6q2t1h.fsf@kobe.laptop> <0CF7C325-E7D9-4C51-8E60-9A0243D2FFFE@cederstrand.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain

On Sun, 14 Nov 2010 21:22:53 +0100, Erik Cederstrand <erik@cederstrand.dk> wrote:
>Den 12/11/2010 kl. 21.20 skrev Giorgos Keramidas:
>>> Since the SVN rev. is recorded, I think a timestamp is redundant. Any
>>> ideas where I can disable the timestamps in the source?
>>
>> The timestamp is not 'redundant'.  It records _when_ you compiled the
>> sources of the kernel, which in itself is a useful bit of information.
>
> 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, so I think the rev. number is more useful.  Is the timestamp
> not just a remnant from the CVS days?

The timestamp is a remnant from much older days, but it's still a bit
useful if you build several kernels from 'almost' the same source tree.

For example, think of two kernels who are built from the same svn revision
but they are built from two different patched kernel source trees.  They
will both have a version string that says "svn 12345+" but their "+" will
refer to different patch states.

When a kernel developer is trying various iterations of this own local
patch, having the timestamp may actually be useful to differentiate between
a working and a non-working patch state.

I *like* the idea of 100% repeatable kernel builds and I'd even go as far
as suggesting it is nice to turn on by *default*, but let's think about a
way to _include_ the timestamp e.g. with an src.conf option for those cases
when it's really useful.


--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkzgV4oACgkQ1g+UGjGGA7ZC4QCePYJocjrmvVku0PghnhsJs+S7
GR0AoL8Th2lI08/Vw1tB0PcNigessqJE
=OGtg
-----END PGP SIGNATURE-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xeiafwv34m7p.fsf>