From 590adba81a22f2ec25c66b933e05c88f42ff615e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 22 May 2023 15:02:42 +0200 Subject: [PATCH] d/parse-machines: produce stable json output Enabling the "canonical" option the keys will be sorted, improving build reproducibility. Signed-off-by: Thomas Lamprecht --- debian/parse-machines.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/parse-machines.pl b/debian/parse-machines.pl index e61b649..a0f449c 100755 --- a/debian/parse-machines.pl +++ b/debian/parse-machines.pl @@ -24,4 +24,5 @@ while () { die "no QEMU machine types detected from STDIN input" if scalar (@$machines) <= 0; -print to_json($machines, { utf8 => 1 }) or die "$!\n"; +print to_json($machines, { utf8 => 1, canonical => 1 }) + or die "failed to encode detected machines as JSON - $!\n";