GNU bug report logs -
#25629
Automake output non-deterministic when used with later Perls
Previous Next
Reported by: demerphq <demerphq <at> gmail.com>
Date: Mon, 6 Feb 2017 02:38:01 UTC
Severity: normal
Tags: moreinfo
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 16 Jul 2017 01:50, "Mathieu Lirzin" <mthl <at> gnu.org> wrote:
Hello Yves,
demerphq <demerphq <at> gmail.com> writes:
> Also I observe that there were previous patches to ensure most uses of
> keys() were sorted. However not all of them, including diagnostics,
> and various other places where the key order could be exposed to a
> user.
>
> Attached is a patch that I believe fixes any remaining uses of unsorted
keys.
>
> I took the policy that automake is not performance sensitive, at least
> at the level of sorting keys, and that sorting something that is not
> strictly necessary does no harm.
>
> I admit I have not been able to properly test all of these changes,
> but superficial testing does not reveal any issues.
>
> Anyway, sorry for the misleading original bug-report.
>
> Cheers,
> Yves
Can you explain what would be the benefit for Automake to have such
deterministic behavior?
Thanks for the report.
The most obvious reason is when debugging with something like diff
deterministic behaviour eliminates spurious changes. Also having a
deterministic and well understood ordering rule eliminates any concern that
order might matter, and that a bug or whatnot was due to a different order
(regardless of whether such a concern actually makes sense.) also sorting
output lists makes them more readable. I don't know how well tested
Automake is but I would assume deterministic hash order would help there
too.
Also note that Prior to hash randomization the key order would have been
consistent between multiple runs. Thus when randomization was introduced
the behaviour of Automake changed and effectively regressed. Sorting keys
effectively restores the original behaviour.
Cheers
Yves
[Message part 2 (text/html, inline)]
This bug report was last modified 1 year and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.