From 5dc7161b1da7c9ad97122458c94c833b69eb5769 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 11 Oct 2023 20:49:42 +0200 Subject: [PATCH] meson: Sort input file list (#3550) 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 --- src/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 2065c6f5..0af864b9 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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,