Please sort output within lines, not the just between them.
Submitted by Chris Lamb
Assigned to Hans Petter Jansson @hpj
Link to original bug (#102320)
Description
Created attachment 133639 0001-update-desktop-database.c-Sort-output-within-lines-n.patch
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that desktop-file-utils produces mimeinfo.cache files that are not reproducible.
This is because it inherits the non-deterministic hash ordering of the mime_types_map data structure.
Patch attached that sorts just prior to output.
[0] https://reproducible-builds.org/
Patch 133639, "0001-update-desktop-database.c-Sort-output-within-lines-n.patch":
0001-update-desktop-database.c-Sort-output-within-lines-n.patch