journal: Make the output of --update-catalog deterministic
authorDaniel Edgecumbe <git@esotericnonsense.com>
Thu, 5 Sep 2019 14:34:52 +0000 (15:34 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Sep 2019 13:13:54 +0000 (15:13 +0200)
commita95686bb5d615a73a14d451a25225a566f9af570
tree687e1ab31650f179cbaec2899b740a12919467dc
parentd5698dc1d9c15d6c4d516c26608b5754d1768b6f
journal: Make the output of --update-catalog deterministic

The use of an unordered hashmap means that the output of
'journalctl --update-catalog' differs between runs despite there being no
changes in the input files.

By changing all instances of Hashmap to OrderedHashmap we fix this, and now
the catalog is reproducible.

Motivation: https://reproducible-builds.org

Signed-off-by: Daniel Edgecumbe <git@esotericnonsense.com>
src/fuzz/fuzz-catalog.c
src/journal/catalog.c
src/journal/catalog.h
src/journal/test-catalog.c