--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2020-07-03 11:11:11.123582873 +0100 @@ -0,0 +1,40 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2020-07-03 + +--- python-peachpy-0.0~git20200303.f189ad2.orig/codegen/x86_64.py ++++ python-peachpy-0.0~git20200303.f189ad2/codegen/x86_64.py +@@ -661,9 +661,9 @@ def implicit_regs_init(code, instruction + implicit_out_regs[out_reg_id] = \ + implicit_out_regs.get(out_reg_id, 0) | out_reg_mask + if implicit_in_regs: +- code.line("self._implicit_in_regs = " + str(implicit_in_regs)) ++ code.line("self._implicit_in_regs = " + str(dict(sorted(implicit_in_regs.items())))) + if implicit_out_regs: +- code.line("self._implicit_out_regs = " + str(implicit_out_regs)) ++ code.line("self._implicit_out_regs = " + str(dict(sorted((implicit_out_regs.items()))))) + + + def in_regs_init(code, instruction_form): +@@ -929,6 +929,7 @@ def supported_forms_comment(code, instru + + form_isa_extensions_options = sorted(set(map(tuple, get_isa_extensions(instruction_forms))), + key=lambda isa_tuple: score_isa_extensions(isa_tuple)) ++ lines = [] + for isa_extensions_option in form_isa_extensions_options: + isa_description = "" + if isa_extensions_option: +@@ -937,9 +938,11 @@ def supported_forms_comment(code, instru + for form_description in format_form_descriptions(instruction_forms[0].name, get_operand_types_list(isa_forms)): + if isa_description: + padding = " " * (4 + padding_length - len(form_description)) +- code.line("* " + form_description + padding + isa_description) ++ lines.append("* " + form_description + padding + isa_description) + else: +- code.line("* " + form_description) ++ lines.append("* " + form_description) ++ for x in sorted(lines): ++ code.line(x) + + + def is_label_branch(instruction_form): --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/series 2020-07-03 11:01:02.160916491 +0100 @@ -0,0 +1 @@ +reproducible-build.patch