Skip to content

Commit

Permalink
meson: Sort input file list (#3550)
Browse files Browse the repository at this point in the history
so that hyprland builds in a reproducible way
in spite of non-deterministic filesystem readdir order.

See https://reproducible-builds.org/ for why this is good.
This patch was done while working on reproducible builds for openSUSE.

Co-authored-by: Bernhard M. Wiedemann <bernhard+gitcommit lsmod.de>
  • Loading branch information
bmwiedemann committed Oct 11, 2023
1 parent 0cf3d5b commit 5dc7161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
globber = run_command('find', '.', '-name', '*.cpp', check: true)
globber = run_command('sh', '-c', 'find . -name "*.cpp" | sort', check: true)
src = globber.stdout().strip().split('\n')

executable('Hyprland', src,
Expand Down

0 comments on commit 5dc7161

Please sign in to comment.