File reproducible.patch of Package python-distorm3
https://github.com/gdabah/distorm/pull/116
From e300df86b8483f59dcd56c521eb5b8d07c9c92d9 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Mon, 5 Jun 2017 21:59:26 +0200
Subject: [PATCH] sort input files
when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would usually differ.
See https://reproducible-builds.org/ for why this matters.
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index b14ad67..e035e5b 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ def get_sources():
create the libdistorm3 library.
"""
- return glob('src/*.c')
+ return sorted(glob('src/*.c'))
class custom_build(build):