Skip to content

Sort input file list

Bernhard M. Wiedemann requested to merge bmwiedemann/mkfontscale:sort into master

Sort input file list so that openSUSE's installation-images builds in a reproducible way in spite of indeterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.

Unlike normal packages, installation-images is more like live-CDs - a snapshot of an installed system, which means post-install scripts have run.

Without this patch, fonts.dir and fonts.scale contained diffs like

-Raleway-Light-Italic.ttf -misc-raleway-light-i-normal--0-0-0-0-p-0-iso8859-1
-Raleway-Light-Italic.ttf -misc-raleway-light-i-normal--0-0-0-0-p-0-iso8859-10
+Raleway-Thin-Italic.ttf -misc-raleway-light-i-normal--0-0-0-0-p-0-iso8859-1
+Raleway-Thin-Italic.ttf -misc-raleway-light-i-normal--0-0-0-0-p-0-iso8859-10

-RobotoSlab-Light.ttf -misc-roboto slab-light-r-normal--0-0-0-0-p-0-iso8859-1
-RobotoSlab-Light.ttf -misc-roboto slab-light-r-normal--0-0-0-0-p-0-iso8859-10
+RobotoSlab-Thin.ttf -misc-roboto slab-light-r-normal--0-0-0-0-p-0-iso8859-1
+RobotoSlab-Thin.ttf -misc-roboto slab-light-r-normal--0-0-0-0-p-0-iso8859-10

(above diff is shortened for readability)

Merge request reports

Loading