bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reproducible built files


From: Simon Josefsson
Subject: Re: reproducible built files
Date: Sat, 28 Dec 2024 19:08:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Paul Eggert <eggert@cs.ucla.edu> writes:

> On 12/28/24 04:38, Simon Josefsson via Gnulib discussion list wrote:
>> The tarball use the same
>> mtime for all files.
>> So I don't understand this concern.  What problem do you see if you
>> don't perform those steps?
>
> I must be missing something because for many tarballs it's obvious
> that one shouldn't use the same mtime for all files.
>
> The main reason I don't set all timestamps to 1 (0 doesn't work
> because some 'make' implementations incorrectly treat 0 as meaning the
> file is missing!) in distribution tarballs is that some 'make's treat
> equal timestamps as meaning the destination is out of date and needs
> to be rebuilt. (Although POSIX does not require this 'make' behavior,
> it encourages it.)

Which 'make' behave like that?  GNU make doesn't rebuild a dependency if
the mtime is the same as the source.  I think I've made some release
tarballs using --mtime and nobody complained, but maybe everyone tested
with GNU make (or its behaviour is now common).  I'm about to push out a
new release of 'libidn' and I'm inclined to try --mtime (as well as
--format=posix) to see if anyone notices.

/Simon

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]